linux-omap 2.6.37: sync with OE .dev
[glsdk/meta-ti-glsdk.git] / recipes-bsp / linux / linux-omap / media / 0037-v4l-Add-missing-12-bits-bayer-media-bus-formats.patch
1 From 6585f70cdd7cbe63e6618d06a10819d31c7009fe Mon Sep 17 00:00:00 2001
2 From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
3 Date: Thu, 23 Dec 2010 15:14:49 +0100
4 Subject: [PATCH 37/43] v4l: Add missing 12 bits bayer media bus formats
6 Add codes and documentation for the following media bus formats:
8 - V4L2_MBUS_FMT_SGBRG12_1X12
9 - V4L2_MBUS_FMT_SGRBG12_1X12
10 - V4L2_MBUS_FMT_SRGGB12_1X12
12 Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
13 ---
14  Documentation/DocBook/v4l/subdev-formats.xml |   51 ++++++++++++++++++++++++++
15  include/linux/v4l2-mediabus.h                |    5 ++-
16  2 files changed, 55 insertions(+), 1 deletions(-)
18 diff --git a/Documentation/DocBook/v4l/subdev-formats.xml b/Documentation/DocBook/v4l/subdev-formats.xml
19 index 0cae572..2fed9be 100644
20 --- a/Documentation/DocBook/v4l/subdev-formats.xml
21 +++ b/Documentation/DocBook/v4l/subdev-formats.xml
22 @@ -490,6 +490,57 @@
23               <entry>b<subscript>1</subscript></entry>
24               <entry>b<subscript>0</subscript></entry>
25             </row>
26 +           <row id="V4L2-MBUS-FMT-SGBRG12-1X12">
27 +             <entry>V4L2_MBUS_FMT_SGBRG12_1X12</entry>
28 +             <entry>0x3010</entry>
29 +             <entry></entry>
30 +             <entry>g<subscript>11</subscript></entry>
31 +             <entry>g<subscript>10</subscript></entry>
32 +             <entry>g<subscript>9</subscript></entry>
33 +             <entry>g<subscript>8</subscript></entry>
34 +             <entry>g<subscript>7</subscript></entry>
35 +             <entry>g<subscript>6</subscript></entry>
36 +             <entry>g<subscript>5</subscript></entry>
37 +             <entry>g<subscript>4</subscript></entry>
38 +             <entry>g<subscript>3</subscript></entry>
39 +             <entry>g<subscript>2</subscript></entry>
40 +             <entry>g<subscript>1</subscript></entry>
41 +             <entry>g<subscript>0</subscript></entry>
42 +           </row>
43 +           <row id="V4L2-MBUS-FMT-SGRBG12-1X12">
44 +             <entry>V4L2_MBUS_FMT_SGRBG12_1X12</entry>
45 +             <entry>0x3011</entry>
46 +             <entry></entry>
47 +             <entry>g<subscript>11</subscript></entry>
48 +             <entry>g<subscript>10</subscript></entry>
49 +             <entry>g<subscript>9</subscript></entry>
50 +             <entry>g<subscript>8</subscript></entry>
51 +             <entry>g<subscript>7</subscript></entry>
52 +             <entry>g<subscript>6</subscript></entry>
53 +             <entry>g<subscript>5</subscript></entry>
54 +             <entry>g<subscript>4</subscript></entry>
55 +             <entry>g<subscript>3</subscript></entry>
56 +             <entry>g<subscript>2</subscript></entry>
57 +             <entry>g<subscript>1</subscript></entry>
58 +             <entry>g<subscript>0</subscript></entry>
59 +           </row>
60 +           <row id="V4L2-MBUS-FMT-SRGGB12-1X12">
61 +             <entry>V4L2_MBUS_FMT_SRGGB12_1X12</entry>
62 +             <entry>0x3012</entry>
63 +             <entry></entry>
64 +             <entry>r<subscript>11</subscript></entry>
65 +             <entry>r<subscript>10</subscript></entry>
66 +             <entry>r<subscript>9</subscript></entry>
67 +             <entry>r<subscript>8</subscript></entry>
68 +             <entry>r<subscript>7</subscript></entry>
69 +             <entry>r<subscript>6</subscript></entry>
70 +             <entry>r<subscript>5</subscript></entry>
71 +             <entry>r<subscript>4</subscript></entry>
72 +             <entry>r<subscript>3</subscript></entry>
73 +             <entry>r<subscript>2</subscript></entry>
74 +             <entry>r<subscript>1</subscript></entry>
75 +             <entry>r<subscript>0</subscript></entry>
76 +           </row>
77             <row id="V4L2-MBUS-FMT-SGBRG10-DPCM8-1X8">
78               <entry>V4L2_MBUS_FMT_SGBRG10_DPCM8_1X8</entry>
79               <entry>0x300c</entry>
80 diff --git a/include/linux/v4l2-mediabus.h b/include/linux/v4l2-mediabus.h
81 index 5c64924..7054a7a 100644
82 --- a/include/linux/v4l2-mediabus.h
83 +++ b/include/linux/v4l2-mediabus.h
84 @@ -67,7 +67,7 @@ enum v4l2_mbus_pixelcode {
85         V4L2_MBUS_FMT_YUYV10_1X20 = 0x200d,
86         V4L2_MBUS_FMT_YVYU10_1X20 = 0x200e,
87  
88 -       /* Bayer - next is 0x3010 */
89 +       /* Bayer - next is 0x3013 */
90         V4L2_MBUS_FMT_SBGGR8_1X8 = 0x3001,
91         V4L2_MBUS_FMT_SGRBG8_1X8 = 0x3002,
92         V4L2_MBUS_FMT_SBGGR10_DPCM8_1X8 = 0x300b,
93 @@ -83,6 +83,9 @@ enum v4l2_mbus_pixelcode {
94         V4L2_MBUS_FMT_SGRBG10_1X10 = 0x300a,
95         V4L2_MBUS_FMT_SRGGB10_1X10 = 0x300f,
96         V4L2_MBUS_FMT_SBGGR12_1X12 = 0x3008,
97 +       V4L2_MBUS_FMT_SGBRG12_1X12 = 0x3010,
98 +       V4L2_MBUS_FMT_SGRBG12_1X12 = 0x3011,
99 +       V4L2_MBUS_FMT_SRGGB12_1X12 = 0x3012,
100  };
101  
102  /**
103 -- 
104 1.6.6.1