v4l2-dv-timings.h 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937
  1. /*
  2. * V4L2 DV timings header.
  3. *
  4. * Copyright (C) 2012 Hans Verkuil <hans.verkuil@cisco.com>
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * version 2 as published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  18. * 02110-1301 USA
  19. */
  20. #ifndef _V4L2_DV_TIMINGS_H
  21. #define _V4L2_DV_TIMINGS_H
  22. #if __GNUC__ < 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ < 6))
  23. /* Sadly gcc versions older than 4.6 have a bug in how they initialize
  24. anonymous unions where they require additional curly brackets.
  25. This violates the C1x standard. This workaround adds the curly brackets
  26. if needed. */
  27. #define V4L2_INIT_BT_TIMINGS(_width, args...) \
  28. { .bt = { _width , ## args } }
  29. #else
  30. #define V4L2_INIT_BT_TIMINGS(_width, args...) \
  31. .bt = { _width , ## args }
  32. #endif
  33. /* CEA-861-E timings (i.e. standard HDTV timings) */
  34. #define V4L2_DV_BT_CEA_640X480P59_94 { \
  35. .type = V4L2_DV_BT_656_1120, \
  36. V4L2_INIT_BT_TIMINGS(640, 480, 0, 0, \
  37. 25175000, 16, 96, 48, 10, 2, 33, 0, 0, 0, \
  38. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CEA861, 0) \
  39. }
  40. /* Note: these are the nominal timings, for HDMI links this format is typically
  41. * double-clocked to meet the minimum pixelclock requirements. */
  42. #define V4L2_DV_BT_CEA_720X480I59_94 { \
  43. .type = V4L2_DV_BT_656_1120, \
  44. V4L2_INIT_BT_TIMINGS(720, 480, 1, 0, \
  45. 13500000, 19, 62, 57, 4, 3, 15, 4, 3, 16, \
  46. V4L2_DV_BT_STD_CEA861, \
  47. V4L2_DV_FL_HALF_LINE | V4L2_DV_FL_IS_CE_VIDEO) \
  48. }
  49. #define V4L2_DV_BT_CEA_720X480P59_94 { \
  50. .type = V4L2_DV_BT_656_1120, \
  51. V4L2_INIT_BT_TIMINGS(720, 480, 0, 0, \
  52. 27000000, 16, 62, 60, 9, 6, 30, 0, 0, 0, \
  53. V4L2_DV_BT_STD_CEA861, V4L2_DV_FL_IS_CE_VIDEO) \
  54. }
  55. /* Note: these are the nominal timings, for HDMI links this format is typically
  56. * double-clocked to meet the minimum pixelclock requirements. */
  57. #define V4L2_DV_BT_CEA_720X576I50 { \
  58. .type = V4L2_DV_BT_656_1120, \
  59. V4L2_INIT_BT_TIMINGS(720, 576, 1, 0, \
  60. 13500000, 12, 63, 69, 2, 3, 19, 2, 3, 20, \
  61. V4L2_DV_BT_STD_CEA861, \
  62. V4L2_DV_FL_HALF_LINE | V4L2_DV_FL_IS_CE_VIDEO) \
  63. }
  64. #define V4L2_DV_BT_CEA_720X576P50 { \
  65. .type = V4L2_DV_BT_656_1120, \
  66. V4L2_INIT_BT_TIMINGS(720, 576, 0, 0, \
  67. 27000000, 12, 64, 68, 5, 5, 39, 0, 0, 0, \
  68. V4L2_DV_BT_STD_CEA861, V4L2_DV_FL_IS_CE_VIDEO) \
  69. }
  70. #define V4L2_DV_BT_CEA_1280X720P24 { \
  71. .type = V4L2_DV_BT_656_1120, \
  72. V4L2_INIT_BT_TIMINGS(1280, 720, 0, \
  73. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  74. 59400000, 1760, 40, 220, 5, 5, 20, 0, 0, 0, \
  75. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CEA861, \
  76. V4L2_DV_FL_CAN_REDUCE_FPS) \
  77. }
  78. #define V4L2_DV_BT_CEA_1280X720P25 { \
  79. .type = V4L2_DV_BT_656_1120, \
  80. V4L2_INIT_BT_TIMINGS(1280, 720, 0, \
  81. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  82. 74250000, 2420, 40, 220, 5, 5, 20, 0, 0, 0, \
  83. V4L2_DV_BT_STD_CEA861, V4L2_DV_FL_IS_CE_VIDEO) \
  84. }
  85. #define V4L2_DV_BT_CEA_1280X720P30 { \
  86. .type = V4L2_DV_BT_656_1120, \
  87. V4L2_INIT_BT_TIMINGS(1280, 720, 0, \
  88. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  89. 74250000, 1760, 40, 220, 5, 5, 20, 0, 0, 0, \
  90. V4L2_DV_BT_STD_CEA861, \
  91. V4L2_DV_FL_CAN_REDUCE_FPS | V4L2_DV_FL_IS_CE_VIDEO) \
  92. }
  93. #define V4L2_DV_BT_CEA_1280X720P50 { \
  94. .type = V4L2_DV_BT_656_1120, \
  95. V4L2_INIT_BT_TIMINGS(1280, 720, 0, \
  96. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  97. 74250000, 440, 40, 220, 5, 5, 20, 0, 0, 0, \
  98. V4L2_DV_BT_STD_CEA861, V4L2_DV_FL_IS_CE_VIDEO) \
  99. }
  100. #define V4L2_DV_BT_CEA_1280X720P60 { \
  101. .type = V4L2_DV_BT_656_1120, \
  102. V4L2_INIT_BT_TIMINGS(1280, 720, 0, \
  103. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  104. 74250000, 110, 40, 220, 5, 5, 20, 0, 0, 0, \
  105. V4L2_DV_BT_STD_CEA861, \
  106. V4L2_DV_FL_CAN_REDUCE_FPS | V4L2_DV_FL_IS_CE_VIDEO) \
  107. }
  108. #define V4L2_DV_BT_CEA_1920X1080P24 { \
  109. .type = V4L2_DV_BT_656_1120, \
  110. V4L2_INIT_BT_TIMINGS(1920, 1080, 0, \
  111. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  112. 74250000, 638, 44, 148, 4, 5, 36, 0, 0, 0, \
  113. V4L2_DV_BT_STD_CEA861, \
  114. V4L2_DV_FL_CAN_REDUCE_FPS | V4L2_DV_FL_IS_CE_VIDEO) \
  115. }
  116. #define V4L2_DV_BT_CEA_1920X1080P25 { \
  117. .type = V4L2_DV_BT_656_1120, \
  118. V4L2_INIT_BT_TIMINGS(1920, 1080, 0, \
  119. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  120. 74250000, 528, 44, 148, 4, 5, 36, 0, 0, 0, \
  121. V4L2_DV_BT_STD_CEA861, V4L2_DV_FL_IS_CE_VIDEO) \
  122. }
  123. #define V4L2_DV_BT_CEA_1920X1080P30 { \
  124. .type = V4L2_DV_BT_656_1120, \
  125. V4L2_INIT_BT_TIMINGS(1920, 1080, 0, \
  126. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  127. 74250000, 88, 44, 148, 4, 5, 36, 0, 0, 0, \
  128. V4L2_DV_BT_STD_CEA861, \
  129. V4L2_DV_FL_CAN_REDUCE_FPS | V4L2_DV_FL_IS_CE_VIDEO) \
  130. }
  131. #define V4L2_DV_BT_CEA_1920X1080I50 { \
  132. .type = V4L2_DV_BT_656_1120, \
  133. V4L2_INIT_BT_TIMINGS(1920, 1080, 1, \
  134. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  135. 74250000, 528, 44, 148, 2, 5, 15, 2, 5, 16, \
  136. V4L2_DV_BT_STD_CEA861, \
  137. V4L2_DV_FL_HALF_LINE | V4L2_DV_FL_IS_CE_VIDEO) \
  138. }
  139. #define V4L2_DV_BT_CEA_1920X1080P50 { \
  140. .type = V4L2_DV_BT_656_1120, \
  141. V4L2_INIT_BT_TIMINGS(1920, 1080, 0, \
  142. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  143. 148500000, 528, 44, 148, 4, 5, 36, 0, 0, 0, \
  144. V4L2_DV_BT_STD_CEA861, V4L2_DV_FL_IS_CE_VIDEO) \
  145. }
  146. #define V4L2_DV_BT_CEA_1920X1080I60 { \
  147. .type = V4L2_DV_BT_656_1120, \
  148. V4L2_INIT_BT_TIMINGS(1920, 1080, 1, \
  149. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  150. 74250000, 88, 44, 148, 2, 5, 15, 2, 5, 16, \
  151. V4L2_DV_BT_STD_CEA861, \
  152. V4L2_DV_FL_CAN_REDUCE_FPS | \
  153. V4L2_DV_FL_HALF_LINE | V4L2_DV_FL_IS_CE_VIDEO) \
  154. }
  155. #define V4L2_DV_BT_CEA_1920X1080P60 { \
  156. .type = V4L2_DV_BT_656_1120, \
  157. V4L2_INIT_BT_TIMINGS(1920, 1080, 0, \
  158. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  159. 148500000, 88, 44, 148, 4, 5, 36, 0, 0, 0, \
  160. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CEA861, \
  161. V4L2_DV_FL_CAN_REDUCE_FPS | V4L2_DV_FL_IS_CE_VIDEO) \
  162. }
  163. #define V4L2_DV_BT_CEA_3840X2160P24 { \
  164. .type = V4L2_DV_BT_656_1120, \
  165. V4L2_INIT_BT_TIMINGS(3840, 2160, 0, \
  166. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  167. 297000000, 1276, 88, 296, 8, 10, 72, 0, 0, 0, \
  168. V4L2_DV_BT_STD_CEA861, \
  169. V4L2_DV_FL_CAN_REDUCE_FPS | V4L2_DV_FL_IS_CE_VIDEO) \
  170. }
  171. #define V4L2_DV_BT_CEA_3840X2160P25 { \
  172. .type = V4L2_DV_BT_656_1120, \
  173. V4L2_INIT_BT_TIMINGS(3840, 2160, 0, \
  174. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  175. 297000000, 1056, 88, 296, 8, 10, 72, 0, 0, 0, \
  176. V4L2_DV_BT_STD_CEA861, V4L2_DV_FL_IS_CE_VIDEO) \
  177. }
  178. #define V4L2_DV_BT_CEA_3840X2160P30 { \
  179. .type = V4L2_DV_BT_656_1120, \
  180. V4L2_INIT_BT_TIMINGS(3840, 2160, 0, \
  181. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  182. 297000000, 176, 88, 296, 8, 10, 72, 0, 0, 0, \
  183. V4L2_DV_BT_STD_CEA861, \
  184. V4L2_DV_FL_CAN_REDUCE_FPS | V4L2_DV_FL_IS_CE_VIDEO) \
  185. }
  186. #define V4L2_DV_BT_CEA_3840X2160P50 { \
  187. .type = V4L2_DV_BT_656_1120, \
  188. V4L2_INIT_BT_TIMINGS(3840, 2160, 0, \
  189. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  190. 594000000, 1056, 88, 296, 8, 10, 72, 0, 0, 0, \
  191. V4L2_DV_BT_STD_CEA861, V4L2_DV_FL_IS_CE_VIDEO) \
  192. }
  193. #define V4L2_DV_BT_CEA_3840X2160P60 { \
  194. .type = V4L2_DV_BT_656_1120, \
  195. V4L2_INIT_BT_TIMINGS(3840, 2160, 0, \
  196. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  197. 594000000, 176, 88, 296, 8, 10, 72, 0, 0, 0, \
  198. V4L2_DV_BT_STD_CEA861, \
  199. V4L2_DV_FL_CAN_REDUCE_FPS | V4L2_DV_FL_IS_CE_VIDEO) \
  200. }
  201. #define V4L2_DV_BT_CEA_4096X2160P24 { \
  202. .type = V4L2_DV_BT_656_1120, \
  203. V4L2_INIT_BT_TIMINGS(4096, 2160, 0, \
  204. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  205. 297000000, 1020, 88, 296, 8, 10, 72, 0, 0, 0, \
  206. V4L2_DV_BT_STD_CEA861, \
  207. V4L2_DV_FL_CAN_REDUCE_FPS | V4L2_DV_FL_IS_CE_VIDEO) \
  208. }
  209. #define V4L2_DV_BT_CEA_4096X2160P25 { \
  210. .type = V4L2_DV_BT_656_1120, \
  211. V4L2_INIT_BT_TIMINGS(4096, 2160, 0, \
  212. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  213. 297000000, 968, 88, 128, 8, 10, 72, 0, 0, 0, \
  214. V4L2_DV_BT_STD_CEA861, V4L2_DV_FL_IS_CE_VIDEO) \
  215. }
  216. #define V4L2_DV_BT_CEA_4096X2160P30 { \
  217. .type = V4L2_DV_BT_656_1120, \
  218. V4L2_INIT_BT_TIMINGS(4096, 2160, 0, \
  219. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  220. 297000000, 88, 88, 128, 8, 10, 72, 0, 0, 0, \
  221. V4L2_DV_BT_STD_CEA861, \
  222. V4L2_DV_FL_CAN_REDUCE_FPS | V4L2_DV_FL_IS_CE_VIDEO) \
  223. }
  224. #define V4L2_DV_BT_CEA_4096X2160P50 { \
  225. .type = V4L2_DV_BT_656_1120, \
  226. V4L2_INIT_BT_TIMINGS(4096, 2160, 0, \
  227. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  228. 594000000, 968, 88, 128, 8, 10, 72, 0, 0, 0, \
  229. V4L2_DV_BT_STD_CEA861, V4L2_DV_FL_IS_CE_VIDEO) \
  230. }
  231. #define V4L2_DV_BT_CEA_4096X2160P60 { \
  232. .type = V4L2_DV_BT_656_1120, \
  233. V4L2_INIT_BT_TIMINGS(4096, 2160, 0, \
  234. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  235. 594000000, 88, 88, 128, 8, 10, 72, 0, 0, 0, \
  236. V4L2_DV_BT_STD_CEA861, \
  237. V4L2_DV_FL_CAN_REDUCE_FPS | V4L2_DV_FL_IS_CE_VIDEO) \
  238. }
  239. /* VESA Discrete Monitor Timings as per version 1.0, revision 12 */
  240. #define V4L2_DV_BT_DMT_640X350P85 { \
  241. .type = V4L2_DV_BT_656_1120, \
  242. V4L2_INIT_BT_TIMINGS(640, 350, 0, V4L2_DV_HSYNC_POS_POL, \
  243. 31500000, 32, 64, 96, 32, 3, 60, 0, 0, 0, \
  244. V4L2_DV_BT_STD_DMT, 0) \
  245. }
  246. #define V4L2_DV_BT_DMT_640X400P85 { \
  247. .type = V4L2_DV_BT_656_1120, \
  248. V4L2_INIT_BT_TIMINGS(640, 400, 0, V4L2_DV_VSYNC_POS_POL, \
  249. 31500000, 32, 64, 96, 1, 3, 41, 0, 0, 0, \
  250. V4L2_DV_BT_STD_DMT, 0) \
  251. }
  252. #define V4L2_DV_BT_DMT_720X400P85 { \
  253. .type = V4L2_DV_BT_656_1120, \
  254. V4L2_INIT_BT_TIMINGS(720, 400, 0, V4L2_DV_VSYNC_POS_POL, \
  255. 35500000, 36, 72, 108, 1, 3, 42, 0, 0, 0, \
  256. V4L2_DV_BT_STD_DMT, 0) \
  257. }
  258. /* VGA resolutions */
  259. #define V4L2_DV_BT_DMT_640X480P60 V4L2_DV_BT_CEA_640X480P59_94
  260. #define V4L2_DV_BT_DMT_640X480P72 { \
  261. .type = V4L2_DV_BT_656_1120, \
  262. V4L2_INIT_BT_TIMINGS(640, 480, 0, 0, \
  263. 31500000, 24, 40, 128, 9, 3, 28, 0, 0, 0, \
  264. V4L2_DV_BT_STD_DMT, 0) \
  265. }
  266. #define V4L2_DV_BT_DMT_640X480P75 { \
  267. .type = V4L2_DV_BT_656_1120, \
  268. V4L2_INIT_BT_TIMINGS(640, 480, 0, 0, \
  269. 31500000, 16, 64, 120, 1, 3, 16, 0, 0, 0, \
  270. V4L2_DV_BT_STD_DMT, 0) \
  271. }
  272. #define V4L2_DV_BT_DMT_640X480P85 { \
  273. .type = V4L2_DV_BT_656_1120, \
  274. V4L2_INIT_BT_TIMINGS(640, 480, 0, 0, \
  275. 36000000, 56, 56, 80, 1, 3, 25, 0, 0, 0, \
  276. V4L2_DV_BT_STD_DMT, 0) \
  277. }
  278. /* SVGA resolutions */
  279. #define V4L2_DV_BT_DMT_800X600P56 { \
  280. .type = V4L2_DV_BT_656_1120, \
  281. V4L2_INIT_BT_TIMINGS(800, 600, 0, \
  282. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  283. 36000000, 24, 72, 128, 1, 2, 22, 0, 0, 0, \
  284. V4L2_DV_BT_STD_DMT, 0) \
  285. }
  286. #define V4L2_DV_BT_DMT_800X600P60 { \
  287. .type = V4L2_DV_BT_656_1120, \
  288. V4L2_INIT_BT_TIMINGS(800, 600, 0, \
  289. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  290. 40000000, 40, 128, 88, 1, 4, 23, 0, 0, 0, \
  291. V4L2_DV_BT_STD_DMT, 0) \
  292. }
  293. #define V4L2_DV_BT_DMT_800X600P72 { \
  294. .type = V4L2_DV_BT_656_1120, \
  295. V4L2_INIT_BT_TIMINGS(800, 600, 0, \
  296. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  297. 50000000, 56, 120, 64, 37, 6, 23, 0, 0, 0, \
  298. V4L2_DV_BT_STD_DMT, 0) \
  299. }
  300. #define V4L2_DV_BT_DMT_800X600P75 { \
  301. .type = V4L2_DV_BT_656_1120, \
  302. V4L2_INIT_BT_TIMINGS(800, 600, 0, \
  303. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  304. 49500000, 16, 80, 160, 1, 3, 21, 0, 0, 0, \
  305. V4L2_DV_BT_STD_DMT, 0) \
  306. }
  307. #define V4L2_DV_BT_DMT_800X600P85 { \
  308. .type = V4L2_DV_BT_656_1120, \
  309. V4L2_INIT_BT_TIMINGS(800, 600, 0, \
  310. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  311. 56250000, 32, 64, 152, 1, 3, 27, 0, 0, 0, \
  312. V4L2_DV_BT_STD_DMT, 0) \
  313. }
  314. #define V4L2_DV_BT_DMT_800X600P120_RB { \
  315. .type = V4L2_DV_BT_656_1120, \
  316. V4L2_INIT_BT_TIMINGS(800, 600, 0, V4L2_DV_HSYNC_POS_POL, \
  317. 73250000, 48, 32, 80, 3, 4, 29, 0, 0, 0, \
  318. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  319. V4L2_DV_FL_REDUCED_BLANKING) \
  320. }
  321. #define V4L2_DV_BT_DMT_848X480P60 { \
  322. .type = V4L2_DV_BT_656_1120, \
  323. V4L2_INIT_BT_TIMINGS(848, 480, 0, \
  324. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  325. 33750000, 16, 112, 112, 6, 8, 23, 0, 0, 0, \
  326. V4L2_DV_BT_STD_DMT, 0) \
  327. }
  328. #define V4L2_DV_BT_DMT_1024X768I43 { \
  329. .type = V4L2_DV_BT_656_1120, \
  330. V4L2_INIT_BT_TIMINGS(1024, 768, 1, \
  331. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  332. 44900000, 8, 176, 56, 0, 4, 20, 0, 4, 21, \
  333. V4L2_DV_BT_STD_DMT, 0) \
  334. }
  335. /* XGA resolutions */
  336. #define V4L2_DV_BT_DMT_1024X768P60 { \
  337. .type = V4L2_DV_BT_656_1120, \
  338. V4L2_INIT_BT_TIMINGS(1024, 768, 0, 0, \
  339. 65000000, 24, 136, 160, 3, 6, 29, 0, 0, 0, \
  340. V4L2_DV_BT_STD_DMT, 0) \
  341. }
  342. #define V4L2_DV_BT_DMT_1024X768P70 { \
  343. .type = V4L2_DV_BT_656_1120, \
  344. V4L2_INIT_BT_TIMINGS(1024, 768, 0, 0, \
  345. 75000000, 24, 136, 144, 3, 6, 29, 0, 0, 0, \
  346. V4L2_DV_BT_STD_DMT, 0) \
  347. }
  348. #define V4L2_DV_BT_DMT_1024X768P75 { \
  349. .type = V4L2_DV_BT_656_1120, \
  350. V4L2_INIT_BT_TIMINGS(1024, 768, 0, \
  351. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  352. 78750000, 16, 96, 176, 1, 3, 28, 0, 0, 0, \
  353. V4L2_DV_BT_STD_DMT, 0) \
  354. }
  355. #define V4L2_DV_BT_DMT_1024X768P85 { \
  356. .type = V4L2_DV_BT_656_1120, \
  357. V4L2_INIT_BT_TIMINGS(1024, 768, 0, \
  358. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  359. 94500000, 48, 96, 208, 1, 3, 36, 0, 0, 0, \
  360. V4L2_DV_BT_STD_DMT, 0) \
  361. }
  362. #define V4L2_DV_BT_DMT_1024X768P120_RB { \
  363. .type = V4L2_DV_BT_656_1120, \
  364. V4L2_INIT_BT_TIMINGS(1024, 768, 0, V4L2_DV_HSYNC_POS_POL, \
  365. 115500000, 48, 32, 80, 3, 4, 38, 0, 0, 0, \
  366. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  367. V4L2_DV_FL_REDUCED_BLANKING) \
  368. }
  369. /* XGA+ resolution */
  370. #define V4L2_DV_BT_DMT_1152X864P75 { \
  371. .type = V4L2_DV_BT_656_1120, \
  372. V4L2_INIT_BT_TIMINGS(1152, 864, 0, \
  373. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  374. 108000000, 64, 128, 256, 1, 3, 32, 0, 0, 0, \
  375. V4L2_DV_BT_STD_DMT, 0) \
  376. }
  377. #define V4L2_DV_BT_DMT_1280X720P60 V4L2_DV_BT_CEA_1280X720P60
  378. /* WXGA resolutions */
  379. #define V4L2_DV_BT_DMT_1280X768P60_RB { \
  380. .type = V4L2_DV_BT_656_1120, \
  381. V4L2_INIT_BT_TIMINGS(1280, 768, 0, V4L2_DV_HSYNC_POS_POL, \
  382. 68250000, 48, 32, 80, 3, 7, 12, 0, 0, 0, \
  383. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  384. V4L2_DV_FL_REDUCED_BLANKING) \
  385. }
  386. #define V4L2_DV_BT_DMT_1280X768P60 { \
  387. .type = V4L2_DV_BT_656_1120, \
  388. V4L2_INIT_BT_TIMINGS(1280, 768, 0, V4L2_DV_VSYNC_POS_POL, \
  389. 79500000, 64, 128, 192, 3, 7, 20, 0, 0, 0, \
  390. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  391. }
  392. #define V4L2_DV_BT_DMT_1280X768P75 { \
  393. .type = V4L2_DV_BT_656_1120, \
  394. V4L2_INIT_BT_TIMINGS(1280, 768, 0, V4L2_DV_VSYNC_POS_POL, \
  395. 102250000, 80, 128, 208, 3, 7, 27, 0, 0, 0, \
  396. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  397. }
  398. #define V4L2_DV_BT_DMT_1280X768P85 { \
  399. .type = V4L2_DV_BT_656_1120, \
  400. V4L2_INIT_BT_TIMINGS(1280, 768, 0, V4L2_DV_VSYNC_POS_POL, \
  401. 117500000, 80, 136, 216, 3, 7, 31, 0, 0, 0, \
  402. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  403. }
  404. #define V4L2_DV_BT_DMT_1280X768P120_RB { \
  405. .type = V4L2_DV_BT_656_1120, \
  406. V4L2_INIT_BT_TIMINGS(1280, 768, 0, V4L2_DV_HSYNC_POS_POL, \
  407. 140250000, 48, 32, 80, 3, 7, 35, 0, 0, 0, \
  408. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  409. V4L2_DV_FL_REDUCED_BLANKING) \
  410. }
  411. #define V4L2_DV_BT_DMT_1280X800P60_RB { \
  412. .type = V4L2_DV_BT_656_1120, \
  413. V4L2_INIT_BT_TIMINGS(1280, 800, 0, V4L2_DV_HSYNC_POS_POL, \
  414. 71000000, 48, 32, 80, 3, 6, 14, 0, 0, 0, \
  415. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  416. V4L2_DV_FL_REDUCED_BLANKING) \
  417. }
  418. #define V4L2_DV_BT_DMT_1280X800P60 { \
  419. .type = V4L2_DV_BT_656_1120, \
  420. V4L2_INIT_BT_TIMINGS(1280, 800, 0, V4L2_DV_VSYNC_POS_POL, \
  421. 83500000, 72, 128, 200, 3, 6, 22, 0, 0, 0, \
  422. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  423. }
  424. #define V4L2_DV_BT_DMT_1280X800P75 { \
  425. .type = V4L2_DV_BT_656_1120, \
  426. V4L2_INIT_BT_TIMINGS(1280, 800, 0, V4L2_DV_VSYNC_POS_POL, \
  427. 106500000, 80, 128, 208, 3, 6, 29, 0, 0, 0, \
  428. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  429. }
  430. #define V4L2_DV_BT_DMT_1280X800P85 { \
  431. .type = V4L2_DV_BT_656_1120, \
  432. V4L2_INIT_BT_TIMINGS(1280, 800, 0, V4L2_DV_VSYNC_POS_POL, \
  433. 122500000, 80, 136, 216, 3, 6, 34, 0, 0, 0, \
  434. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  435. }
  436. #define V4L2_DV_BT_DMT_1280X800P120_RB { \
  437. .type = V4L2_DV_BT_656_1120, \
  438. V4L2_INIT_BT_TIMINGS(1280, 800, 0, V4L2_DV_HSYNC_POS_POL, \
  439. 146250000, 48, 32, 80, 3, 6, 38, 0, 0, 0, \
  440. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  441. V4L2_DV_FL_REDUCED_BLANKING) \
  442. }
  443. #define V4L2_DV_BT_DMT_1280X960P60 { \
  444. .type = V4L2_DV_BT_656_1120, \
  445. V4L2_INIT_BT_TIMINGS(1280, 960, 0, \
  446. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  447. 108000000, 96, 112, 312, 1, 3, 36, 0, 0, 0, \
  448. V4L2_DV_BT_STD_DMT, 0) \
  449. }
  450. #define V4L2_DV_BT_DMT_1280X960P85 { \
  451. .type = V4L2_DV_BT_656_1120, \
  452. V4L2_INIT_BT_TIMINGS(1280, 960, 0, \
  453. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  454. 148500000, 64, 160, 224, 1, 3, 47, 0, 0, 0, \
  455. V4L2_DV_BT_STD_DMT, 0) \
  456. }
  457. #define V4L2_DV_BT_DMT_1280X960P120_RB { \
  458. .type = V4L2_DV_BT_656_1120, \
  459. V4L2_INIT_BT_TIMINGS(1280, 960, 0, V4L2_DV_HSYNC_POS_POL, \
  460. 175500000, 48, 32, 80, 3, 4, 50, 0, 0, 0, \
  461. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  462. V4L2_DV_FL_REDUCED_BLANKING) \
  463. }
  464. /* SXGA resolutions */
  465. #define V4L2_DV_BT_DMT_1280X1024P60 { \
  466. .type = V4L2_DV_BT_656_1120, \
  467. V4L2_INIT_BT_TIMINGS(1280, 1024, 0, \
  468. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  469. 108000000, 48, 112, 248, 1, 3, 38, 0, 0, 0, \
  470. V4L2_DV_BT_STD_DMT, 0) \
  471. }
  472. #define V4L2_DV_BT_DMT_1280X1024P75 { \
  473. .type = V4L2_DV_BT_656_1120, \
  474. V4L2_INIT_BT_TIMINGS(1280, 1024, 0, \
  475. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  476. 135000000, 16, 144, 248, 1, 3, 38, 0, 0, 0, \
  477. V4L2_DV_BT_STD_DMT, 0) \
  478. }
  479. #define V4L2_DV_BT_DMT_1280X1024P85 { \
  480. .type = V4L2_DV_BT_656_1120, \
  481. V4L2_INIT_BT_TIMINGS(1280, 1024, 0, \
  482. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  483. 157500000, 64, 160, 224, 1, 3, 44, 0, 0, 0, \
  484. V4L2_DV_BT_STD_DMT, 0) \
  485. }
  486. #define V4L2_DV_BT_DMT_1280X1024P120_RB { \
  487. .type = V4L2_DV_BT_656_1120, \
  488. V4L2_INIT_BT_TIMINGS(1280, 1024, 0, V4L2_DV_HSYNC_POS_POL, \
  489. 187250000, 48, 32, 80, 3, 7, 50, 0, 0, 0, \
  490. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  491. V4L2_DV_FL_REDUCED_BLANKING) \
  492. }
  493. #define V4L2_DV_BT_DMT_1360X768P60 { \
  494. .type = V4L2_DV_BT_656_1120, \
  495. V4L2_INIT_BT_TIMINGS(1360, 768, 0, \
  496. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  497. 85500000, 64, 112, 256, 3, 6, 18, 0, 0, 0, \
  498. V4L2_DV_BT_STD_DMT, 0) \
  499. }
  500. #define V4L2_DV_BT_DMT_1360X768P120_RB { \
  501. .type = V4L2_DV_BT_656_1120, \
  502. V4L2_INIT_BT_TIMINGS(1360, 768, 0, V4L2_DV_HSYNC_POS_POL, \
  503. 148250000, 48, 32, 80, 3, 5, 37, 0, 0, 0, \
  504. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  505. V4L2_DV_FL_REDUCED_BLANKING) \
  506. }
  507. #define V4L2_DV_BT_DMT_1366X768P60 { \
  508. .type = V4L2_DV_BT_656_1120, \
  509. V4L2_INIT_BT_TIMINGS(1366, 768, 0, \
  510. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  511. 85500000, 70, 143, 213, 3, 3, 24, 0, 0, 0, \
  512. V4L2_DV_BT_STD_DMT, 0) \
  513. }
  514. #define V4L2_DV_BT_DMT_1366X768P60_RB { \
  515. .type = V4L2_DV_BT_656_1120, \
  516. V4L2_INIT_BT_TIMINGS(1366, 768, 0, \
  517. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  518. 72000000, 14, 56, 64, 1, 3, 28, 0, 0, 0, \
  519. V4L2_DV_BT_STD_DMT, V4L2_DV_FL_REDUCED_BLANKING) \
  520. }
  521. /* SXGA+ resolutions */
  522. #define V4L2_DV_BT_DMT_1400X1050P60_RB { \
  523. .type = V4L2_DV_BT_656_1120, \
  524. V4L2_INIT_BT_TIMINGS(1400, 1050, 0, V4L2_DV_HSYNC_POS_POL, \
  525. 101000000, 48, 32, 80, 3, 4, 23, 0, 0, 0, \
  526. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  527. V4L2_DV_FL_REDUCED_BLANKING) \
  528. }
  529. #define V4L2_DV_BT_DMT_1400X1050P60 { \
  530. .type = V4L2_DV_BT_656_1120, \
  531. V4L2_INIT_BT_TIMINGS(1400, 1050, 0, V4L2_DV_VSYNC_POS_POL, \
  532. 121750000, 88, 144, 232, 3, 4, 32, 0, 0, 0, \
  533. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  534. }
  535. #define V4L2_DV_BT_DMT_1400X1050P75 { \
  536. .type = V4L2_DV_BT_656_1120, \
  537. V4L2_INIT_BT_TIMINGS(1400, 1050, 0, V4L2_DV_VSYNC_POS_POL, \
  538. 156000000, 104, 144, 248, 3, 4, 42, 0, 0, 0, \
  539. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  540. }
  541. #define V4L2_DV_BT_DMT_1400X1050P85 { \
  542. .type = V4L2_DV_BT_656_1120, \
  543. V4L2_INIT_BT_TIMINGS(1400, 1050, 0, V4L2_DV_VSYNC_POS_POL, \
  544. 179500000, 104, 152, 256, 3, 4, 48, 0, 0, 0, \
  545. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  546. }
  547. #define V4L2_DV_BT_DMT_1400X1050P120_RB { \
  548. .type = V4L2_DV_BT_656_1120, \
  549. V4L2_INIT_BT_TIMINGS(1400, 1050, 0, V4L2_DV_HSYNC_POS_POL, \
  550. 208000000, 48, 32, 80, 3, 4, 55, 0, 0, 0, \
  551. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  552. V4L2_DV_FL_REDUCED_BLANKING) \
  553. }
  554. /* WXGA+ resolutions */
  555. #define V4L2_DV_BT_DMT_1440X900P60_RB { \
  556. .type = V4L2_DV_BT_656_1120, \
  557. V4L2_INIT_BT_TIMINGS(1440, 900, 0, V4L2_DV_HSYNC_POS_POL, \
  558. 88750000, 48, 32, 80, 3, 6, 17, 0, 0, 0, \
  559. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  560. V4L2_DV_FL_REDUCED_BLANKING) \
  561. }
  562. #define V4L2_DV_BT_DMT_1440X900P60 { \
  563. .type = V4L2_DV_BT_656_1120, \
  564. V4L2_INIT_BT_TIMINGS(1440, 900, 0, V4L2_DV_VSYNC_POS_POL, \
  565. 106500000, 80, 152, 232, 3, 6, 25, 0, 0, 0, \
  566. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  567. }
  568. #define V4L2_DV_BT_DMT_1440X900P75 { \
  569. .type = V4L2_DV_BT_656_1120, \
  570. V4L2_INIT_BT_TIMINGS(1440, 900, 0, V4L2_DV_VSYNC_POS_POL, \
  571. 136750000, 96, 152, 248, 3, 6, 33, 0, 0, 0, \
  572. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  573. }
  574. #define V4L2_DV_BT_DMT_1440X900P85 { \
  575. .type = V4L2_DV_BT_656_1120, \
  576. V4L2_INIT_BT_TIMINGS(1440, 900, 0, V4L2_DV_VSYNC_POS_POL, \
  577. 157000000, 104, 152, 256, 3, 6, 39, 0, 0, 0, \
  578. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  579. }
  580. #define V4L2_DV_BT_DMT_1440X900P120_RB { \
  581. .type = V4L2_DV_BT_656_1120, \
  582. V4L2_INIT_BT_TIMINGS(1440, 900, 0, V4L2_DV_HSYNC_POS_POL, \
  583. 182750000, 48, 32, 80, 3, 6, 44, 0, 0, 0, \
  584. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  585. V4L2_DV_FL_REDUCED_BLANKING) \
  586. }
  587. #define V4L2_DV_BT_DMT_1600X900P60_RB { \
  588. .type = V4L2_DV_BT_656_1120, \
  589. V4L2_INIT_BT_TIMINGS(1600, 900, 0, \
  590. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  591. 108000000, 24, 80, 96, 1, 3, 96, 0, 0, 0, \
  592. V4L2_DV_BT_STD_DMT, V4L2_DV_FL_REDUCED_BLANKING) \
  593. }
  594. /* UXGA resolutions */
  595. #define V4L2_DV_BT_DMT_1600X1200P60 { \
  596. .type = V4L2_DV_BT_656_1120, \
  597. V4L2_INIT_BT_TIMINGS(1600, 1200, 0, \
  598. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  599. 162000000, 64, 192, 304, 1, 3, 46, 0, 0, 0, \
  600. V4L2_DV_BT_STD_DMT, 0) \
  601. }
  602. #define V4L2_DV_BT_DMT_1600X1200P65 { \
  603. .type = V4L2_DV_BT_656_1120, \
  604. V4L2_INIT_BT_TIMINGS(1600, 1200, 0, \
  605. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  606. 175500000, 64, 192, 304, 1, 3, 46, 0, 0, 0, \
  607. V4L2_DV_BT_STD_DMT, 0) \
  608. }
  609. #define V4L2_DV_BT_DMT_1600X1200P70 { \
  610. .type = V4L2_DV_BT_656_1120, \
  611. V4L2_INIT_BT_TIMINGS(1600, 1200, 0, \
  612. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  613. 189000000, 64, 192, 304, 1, 3, 46, 0, 0, 0, \
  614. V4L2_DV_BT_STD_DMT, 0) \
  615. }
  616. #define V4L2_DV_BT_DMT_1600X1200P75 { \
  617. .type = V4L2_DV_BT_656_1120, \
  618. V4L2_INIT_BT_TIMINGS(1600, 1200, 0, \
  619. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  620. 202500000, 64, 192, 304, 1, 3, 46, 0, 0, 0, \
  621. V4L2_DV_BT_STD_DMT, 0) \
  622. }
  623. #define V4L2_DV_BT_DMT_1600X1200P85 { \
  624. .type = V4L2_DV_BT_656_1120, \
  625. V4L2_INIT_BT_TIMINGS(1600, 1200, 0, \
  626. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  627. 229500000, 64, 192, 304, 1, 3, 46, 0, 0, 0, \
  628. V4L2_DV_BT_STD_DMT, 0) \
  629. }
  630. #define V4L2_DV_BT_DMT_1600X1200P120_RB { \
  631. .type = V4L2_DV_BT_656_1120, \
  632. V4L2_INIT_BT_TIMINGS(1600, 1200, 0, V4L2_DV_HSYNC_POS_POL, \
  633. 268250000, 48, 32, 80, 3, 4, 64, 0, 0, 0, \
  634. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  635. V4L2_DV_FL_REDUCED_BLANKING) \
  636. }
  637. /* WSXGA+ resolutions */
  638. #define V4L2_DV_BT_DMT_1680X1050P60_RB { \
  639. .type = V4L2_DV_BT_656_1120, \
  640. V4L2_INIT_BT_TIMINGS(1680, 1050, 0, V4L2_DV_HSYNC_POS_POL, \
  641. 119000000, 48, 32, 80, 3, 6, 21, 0, 0, 0, \
  642. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  643. V4L2_DV_FL_REDUCED_BLANKING) \
  644. }
  645. #define V4L2_DV_BT_DMT_1680X1050P60 { \
  646. .type = V4L2_DV_BT_656_1120, \
  647. V4L2_INIT_BT_TIMINGS(1680, 1050, 0, V4L2_DV_VSYNC_POS_POL, \
  648. 146250000, 104, 176, 280, 3, 6, 30, 0, 0, 0, \
  649. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  650. }
  651. #define V4L2_DV_BT_DMT_1680X1050P75 { \
  652. .type = V4L2_DV_BT_656_1120, \
  653. V4L2_INIT_BT_TIMINGS(1680, 1050, 0, V4L2_DV_VSYNC_POS_POL, \
  654. 187000000, 120, 176, 296, 3, 6, 40, 0, 0, 0, \
  655. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  656. }
  657. #define V4L2_DV_BT_DMT_1680X1050P85 { \
  658. .type = V4L2_DV_BT_656_1120, \
  659. V4L2_INIT_BT_TIMINGS(1680, 1050, 0, V4L2_DV_VSYNC_POS_POL, \
  660. 214750000, 128, 176, 304, 3, 6, 46, 0, 0, 0, \
  661. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  662. }
  663. #define V4L2_DV_BT_DMT_1680X1050P120_RB { \
  664. .type = V4L2_DV_BT_656_1120, \
  665. V4L2_INIT_BT_TIMINGS(1680, 1050, 0, V4L2_DV_HSYNC_POS_POL, \
  666. 245500000, 48, 32, 80, 3, 6, 53, 0, 0, 0, \
  667. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  668. V4L2_DV_FL_REDUCED_BLANKING) \
  669. }
  670. #define V4L2_DV_BT_DMT_1792X1344P60 { \
  671. .type = V4L2_DV_BT_656_1120, \
  672. V4L2_INIT_BT_TIMINGS(1792, 1344, 0, V4L2_DV_VSYNC_POS_POL, \
  673. 204750000, 128, 200, 328, 1, 3, 46, 0, 0, 0, \
  674. V4L2_DV_BT_STD_DMT, 0) \
  675. }
  676. #define V4L2_DV_BT_DMT_1792X1344P75 { \
  677. .type = V4L2_DV_BT_656_1120, \
  678. V4L2_INIT_BT_TIMINGS(1792, 1344, 0, V4L2_DV_VSYNC_POS_POL, \
  679. 261000000, 96, 216, 352, 1, 3, 69, 0, 0, 0, \
  680. V4L2_DV_BT_STD_DMT, 0) \
  681. }
  682. #define V4L2_DV_BT_DMT_1792X1344P120_RB { \
  683. .type = V4L2_DV_BT_656_1120, \
  684. V4L2_INIT_BT_TIMINGS(1792, 1344, 0, V4L2_DV_HSYNC_POS_POL, \
  685. 333250000, 48, 32, 80, 3, 4, 72, 0, 0, 0, \
  686. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  687. V4L2_DV_FL_REDUCED_BLANKING) \
  688. }
  689. #define V4L2_DV_BT_DMT_1856X1392P60 { \
  690. .type = V4L2_DV_BT_656_1120, \
  691. V4L2_INIT_BT_TIMINGS(1856, 1392, 0, V4L2_DV_VSYNC_POS_POL, \
  692. 218250000, 96, 224, 352, 1, 3, 43, 0, 0, 0, \
  693. V4L2_DV_BT_STD_DMT, 0) \
  694. }
  695. #define V4L2_DV_BT_DMT_1856X1392P75 { \
  696. .type = V4L2_DV_BT_656_1120, \
  697. V4L2_INIT_BT_TIMINGS(1856, 1392, 0, V4L2_DV_VSYNC_POS_POL, \
  698. 288000000, 128, 224, 352, 1, 3, 104, 0, 0, 0, \
  699. V4L2_DV_BT_STD_DMT, 0) \
  700. }
  701. #define V4L2_DV_BT_DMT_1856X1392P120_RB { \
  702. .type = V4L2_DV_BT_656_1120, \
  703. V4L2_INIT_BT_TIMINGS(1856, 1392, 0, V4L2_DV_HSYNC_POS_POL, \
  704. 356500000, 48, 32, 80, 3, 4, 75, 0, 0, 0, \
  705. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  706. V4L2_DV_FL_REDUCED_BLANKING) \
  707. }
  708. #define V4L2_DV_BT_DMT_1920X1080P60 V4L2_DV_BT_CEA_1920X1080P60
  709. /* WUXGA resolutions */
  710. #define V4L2_DV_BT_DMT_1920X1200P60_RB { \
  711. .type = V4L2_DV_BT_656_1120, \
  712. V4L2_INIT_BT_TIMINGS(1920, 1200, 0, V4L2_DV_HSYNC_POS_POL, \
  713. 154000000, 48, 32, 80, 3, 6, 26, 0, 0, 0, \
  714. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  715. V4L2_DV_FL_REDUCED_BLANKING) \
  716. }
  717. #define V4L2_DV_BT_DMT_1920X1200P60 { \
  718. .type = V4L2_DV_BT_656_1120, \
  719. V4L2_INIT_BT_TIMINGS(1920, 1200, 0, V4L2_DV_VSYNC_POS_POL, \
  720. 193250000, 136, 200, 336, 3, 6, 36, 0, 0, 0, \
  721. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  722. }
  723. #define V4L2_DV_BT_DMT_1920X1200P75 { \
  724. .type = V4L2_DV_BT_656_1120, \
  725. V4L2_INIT_BT_TIMINGS(1920, 1200, 0, V4L2_DV_VSYNC_POS_POL, \
  726. 245250000, 136, 208, 344, 3, 6, 46, 0, 0, 0, \
  727. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  728. }
  729. #define V4L2_DV_BT_DMT_1920X1200P85 { \
  730. .type = V4L2_DV_BT_656_1120, \
  731. V4L2_INIT_BT_TIMINGS(1920, 1200, 0, V4L2_DV_VSYNC_POS_POL, \
  732. 281250000, 144, 208, 352, 3, 6, 53, 0, 0, 0, \
  733. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  734. }
  735. #define V4L2_DV_BT_DMT_1920X1200P120_RB { \
  736. .type = V4L2_DV_BT_656_1120, \
  737. V4L2_INIT_BT_TIMINGS(1920, 1200, 0, V4L2_DV_HSYNC_POS_POL, \
  738. 317000000, 48, 32, 80, 3, 6, 62, 0, 0, 0, \
  739. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  740. V4L2_DV_FL_REDUCED_BLANKING) \
  741. }
  742. #define V4L2_DV_BT_DMT_1920X1440P60 { \
  743. .type = V4L2_DV_BT_656_1120, \
  744. V4L2_INIT_BT_TIMINGS(1920, 1440, 0, V4L2_DV_VSYNC_POS_POL, \
  745. 234000000, 128, 208, 344, 1, 3, 56, 0, 0, 0, \
  746. V4L2_DV_BT_STD_DMT, 0) \
  747. }
  748. #define V4L2_DV_BT_DMT_1920X1440P75 { \
  749. .type = V4L2_DV_BT_656_1120, \
  750. V4L2_INIT_BT_TIMINGS(1920, 1440, 0, V4L2_DV_VSYNC_POS_POL, \
  751. 297000000, 144, 224, 352, 1, 3, 56, 0, 0, 0, \
  752. V4L2_DV_BT_STD_DMT, 0) \
  753. }
  754. #define V4L2_DV_BT_DMT_1920X1440P120_RB { \
  755. .type = V4L2_DV_BT_656_1120, \
  756. V4L2_INIT_BT_TIMINGS(1920, 1440, 0, V4L2_DV_HSYNC_POS_POL, \
  757. 380500000, 48, 32, 80, 3, 4, 78, 0, 0, 0, \
  758. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  759. V4L2_DV_FL_REDUCED_BLANKING) \
  760. }
  761. #define V4L2_DV_BT_DMT_2048X1152P60_RB { \
  762. .type = V4L2_DV_BT_656_1120, \
  763. V4L2_INIT_BT_TIMINGS(2048, 1152, 0, \
  764. V4L2_DV_HSYNC_POS_POL | V4L2_DV_VSYNC_POS_POL, \
  765. 162000000, 26, 80, 96, 1, 3, 44, 0, 0, 0, \
  766. V4L2_DV_BT_STD_DMT, V4L2_DV_FL_REDUCED_BLANKING) \
  767. }
  768. /* WQXGA resolutions */
  769. #define V4L2_DV_BT_DMT_2560X1600P60_RB { \
  770. .type = V4L2_DV_BT_656_1120, \
  771. V4L2_INIT_BT_TIMINGS(2560, 1600, 0, V4L2_DV_HSYNC_POS_POL, \
  772. 268500000, 48, 32, 80, 3, 6, 37, 0, 0, 0, \
  773. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  774. V4L2_DV_FL_REDUCED_BLANKING) \
  775. }
  776. #define V4L2_DV_BT_DMT_2560X1600P60 { \
  777. .type = V4L2_DV_BT_656_1120, \
  778. V4L2_INIT_BT_TIMINGS(2560, 1600, 0, V4L2_DV_VSYNC_POS_POL, \
  779. 348500000, 192, 280, 472, 3, 6, 49, 0, 0, 0, \
  780. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  781. }
  782. #define V4L2_DV_BT_DMT_2560X1600P75 { \
  783. .type = V4L2_DV_BT_656_1120, \
  784. V4L2_INIT_BT_TIMINGS(2560, 1600, 0, V4L2_DV_VSYNC_POS_POL, \
  785. 443250000, 208, 280, 488, 3, 6, 63, 0, 0, 0, \
  786. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  787. }
  788. #define V4L2_DV_BT_DMT_2560X1600P85 { \
  789. .type = V4L2_DV_BT_656_1120, \
  790. V4L2_INIT_BT_TIMINGS(2560, 1600, 0, V4L2_DV_VSYNC_POS_POL, \
  791. 505250000, 208, 280, 488, 3, 6, 73, 0, 0, 0, \
  792. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, 0) \
  793. }
  794. #define V4L2_DV_BT_DMT_2560X1600P120_RB { \
  795. .type = V4L2_DV_BT_656_1120, \
  796. V4L2_INIT_BT_TIMINGS(2560, 1600, 0, V4L2_DV_HSYNC_POS_POL, \
  797. 552750000, 48, 32, 80, 3, 6, 85, 0, 0, 0, \
  798. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  799. V4L2_DV_FL_REDUCED_BLANKING) \
  800. }
  801. /* 4K resolutions */
  802. #define V4L2_DV_BT_DMT_4096X2160P60_RB { \
  803. .type = V4L2_DV_BT_656_1120, \
  804. V4L2_INIT_BT_TIMINGS(4096, 2160, 0, V4L2_DV_HSYNC_POS_POL, \
  805. 556744000, 8, 32, 40, 48, 8, 6, 0, 0, 0, \
  806. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  807. V4L2_DV_FL_REDUCED_BLANKING) \
  808. }
  809. #define V4L2_DV_BT_DMT_4096X2160P59_94_RB { \
  810. .type = V4L2_DV_BT_656_1120, \
  811. V4L2_INIT_BT_TIMINGS(4096, 2160, 0, V4L2_DV_HSYNC_POS_POL, \
  812. 556188000, 8, 32, 40, 48, 8, 6, 0, 0, 0, \
  813. V4L2_DV_BT_STD_DMT | V4L2_DV_BT_STD_CVT, \
  814. V4L2_DV_FL_REDUCED_BLANKING) \
  815. }
  816. #endif