sgivw.h 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682
  1. /*
  2. * linux/drivers/video/sgivw.h -- SGI DBE frame buffer device header
  3. *
  4. * Copyright (C) 1999 Silicon Graphics, Inc.
  5. * Jeffrey Newquist, newquist@engr.sgi.som
  6. *
  7. * This file is subject to the terms and conditions of the GNU General Public
  8. * License. See the file COPYING in the main directory of this archive for
  9. * more details.
  10. */
  11. #ifndef __SGIVWFB_H__
  12. #define __SGIVWFB_H__
  13. #define DBE_GETREG(reg, dest) ((dest) = DBE_REG_BASE->reg)
  14. #define DBE_SETREG(reg, src) DBE_REG_BASE->reg = (src)
  15. #define DBE_IGETREG(reg, idx, dest) ((dest) = DBE_REG_BASE->reg[idx])
  16. #define DBE_ISETREG(reg, idx, src) (DBE_REG_BASE->reg[idx] = (src))
  17. #define MASK(msb, lsb) ( (((u32)1<<((msb)-(lsb)+1))-1) << (lsb) )
  18. #define GET(v, msb, lsb) ( ((u32)(v) & MASK(msb,lsb)) >> (lsb) )
  19. #define SET(v, f, msb, lsb) ( (v) = ((v)&~MASK(msb,lsb)) | (( (u32)(f)<<(lsb) ) & MASK(msb,lsb)) )
  20. #define GET_DBE_FIELD(reg, field, v) GET((v), DBE_##reg##_##field##_MSB, DBE_##reg##_##field##_LSB)
  21. #define SET_DBE_FIELD(reg, field, v, f) SET((v), (f), DBE_##reg##_##field##_MSB, DBE_##reg##_##field##_LSB)
  22. /* NOTE: All loads/stores must be 32 bits and uncached */
  23. #define DBE_REG_PHYS 0xd0000000
  24. #define DBE_REG_SIZE 0x01000000
  25. struct asregs {
  26. volatile u32 ctrlstat; /* 0x000000 general control */
  27. volatile u32 dotclock; /* 0x000004 dot clock PLL control */
  28. volatile u32 i2c; /* 0x000008 crt I2C control */
  29. volatile u32 sysclk; /* 0x00000c system clock PLL control */
  30. volatile u32 i2cfp; /* 0x000010 flat panel I2C control */
  31. volatile u32 id; /* 0x000014 device id/chip revision */
  32. volatile u32 config; /* 0x000018 power on configuration */
  33. volatile u32 bist; /* 0x00001c internal bist status */
  34. char _pad0[ 0x010000 - 0x000020 ];
  35. volatile u32 vt_xy; /* 0x010000 current dot coords */
  36. volatile u32 vt_xymax; /* 0x010004 maximum dot coords */
  37. volatile u32 vt_vsync; /* 0x010008 vsync on/off */
  38. volatile u32 vt_hsync; /* 0x01000c hsync on/off */
  39. volatile u32 vt_vblank; /* 0x010010 vblank on/off */
  40. volatile u32 vt_hblank; /* 0x010014 hblank on/off */
  41. volatile u32 vt_flags; /* 0x010018 polarity of vt signals */
  42. volatile u32 vt_f2rf_lock; /* 0x01001c f2rf & framelck y coord */
  43. volatile u32 vt_intr01; /* 0x010020 intr 0,1 y coords */
  44. volatile u32 vt_intr23; /* 0x010024 intr 2,3 y coords */
  45. volatile u32 fp_hdrv; /* 0x010028 flat panel hdrv on/off */
  46. volatile u32 fp_vdrv; /* 0x01002c flat panel vdrv on/off */
  47. volatile u32 fp_de; /* 0x010030 flat panel de on/off */
  48. volatile u32 vt_hpixen; /* 0x010034 intrnl horiz pixel on/off*/
  49. volatile u32 vt_vpixen; /* 0x010038 intrnl vert pixel on/off */
  50. volatile u32 vt_hcmap; /* 0x01003c cmap write (horiz) */
  51. volatile u32 vt_vcmap; /* 0x010040 cmap write (vert) */
  52. volatile u32 did_start_xy; /* 0x010044 eol/f did/xy reset val */
  53. volatile u32 crs_start_xy; /* 0x010048 eol/f crs/xy reset val */
  54. volatile u32 vc_start_xy; /* 0x01004c eol/f vc/xy reset val */
  55. char _pad1[ 0x020000 - 0x010050 ];
  56. volatile u32 ovr_width_tile; /* 0x020000 overlay plane ctrl 0 */
  57. volatile u32 ovr_inhwctrl; /* 0x020004 overlay plane ctrl 1 */
  58. volatile u32 ovr_control; /* 0x020008 overlay plane ctrl 1 */
  59. char _pad2[ 0x030000 - 0x02000C ];
  60. volatile u32 frm_size_tile; /* 0x030000 normal plane ctrl 0 */
  61. volatile u32 frm_size_pixel; /* 0x030004 normal plane ctrl 1 */
  62. volatile u32 frm_inhwctrl; /* 0x030008 normal plane ctrl 2 */
  63. volatile u32 frm_control; /* 0x03000C normal plane ctrl 3 */
  64. char _pad3[ 0x040000 - 0x030010 ];
  65. volatile u32 did_inhwctrl; /* 0x040000 DID control */
  66. volatile u32 did_control; /* 0x040004 DID shadow */
  67. char _pad4[ 0x048000 - 0x040008 ];
  68. volatile u32 mode_regs[32]; /* 0x048000 - 0x04807c WID table */
  69. char _pad5[ 0x050000 - 0x048080 ];
  70. volatile u32 cmap[6144]; /* 0x050000 - 0x055ffc color map */
  71. char _pad6[ 0x058000 - 0x056000 ];
  72. volatile u32 cm_fifo; /* 0x058000 color map fifo status */
  73. char _pad7[ 0x060000 - 0x058004 ];
  74. volatile u32 gmap[256]; /* 0x060000 - 0x0603fc gamma map */
  75. char _pad8[ 0x068000 - 0x060400 ];
  76. volatile u32 gmap10[1024]; /* 0x068000 - 0x068ffc gamma map */
  77. char _pad9[ 0x070000 - 0x069000 ];
  78. volatile u32 crs_pos; /* 0x070000 cusror control 0 */
  79. volatile u32 crs_ctl; /* 0x070004 cusror control 1 */
  80. volatile u32 crs_cmap[3]; /* 0x070008 - 0x070010 crs cmap */
  81. char _pad10[ 0x078000 - 0x070014 ];
  82. volatile u32 crs_glyph[64]; /* 0x078000 - 0x0780fc crs glyph */
  83. char _pad11[ 0x080000 - 0x078100 ];
  84. volatile u32 vc_0; /* 0x080000 video capture crtl 0 */
  85. volatile u32 vc_1; /* 0x080004 video capture crtl 1 */
  86. volatile u32 vc_2; /* 0x080008 video capture crtl 2 */
  87. volatile u32 vc_3; /* 0x08000c video capture crtl 3 */
  88. volatile u32 vc_4; /* 0x080010 video capture crtl 3 */
  89. volatile u32 vc_5; /* 0x080014 video capture crtl 3 */
  90. volatile u32 vc_6; /* 0x080018 video capture crtl 3 */
  91. volatile u32 vc_7; /* 0x08001c video capture crtl 3 */
  92. volatile u32 vc_8; /* 0x08000c video capture crtl 3 */
  93. };
  94. /* Bit mask information */
  95. #define DBE_CTRLSTAT_CHIPID_MSB 3
  96. #define DBE_CTRLSTAT_CHIPID_LSB 0
  97. #define DBE_CTRLSTAT_SENSE_N_MSB 4
  98. #define DBE_CTRLSTAT_SENSE_N_LSB 4
  99. #define DBE_CTRLSTAT_PCLKSEL_MSB 29
  100. #define DBE_CTRLSTAT_PCLKSEL_LSB 28
  101. #define DBE_DOTCLK_M_MSB 7
  102. #define DBE_DOTCLK_M_LSB 0
  103. #define DBE_DOTCLK_N_MSB 13
  104. #define DBE_DOTCLK_N_LSB 8
  105. #define DBE_DOTCLK_P_MSB 15
  106. #define DBE_DOTCLK_P_LSB 14
  107. #define DBE_DOTCLK_RUN_MSB 20
  108. #define DBE_DOTCLK_RUN_LSB 20
  109. #define DBE_VT_XY_VT_FREEZE_MSB 31
  110. #define DBE_VT_XY_VT_FREEZE_LSB 31
  111. #define DBE_FP_VDRV_FP_VDRV_ON_MSB 23
  112. #define DBE_FP_VDRV_FP_VDRV_ON_LSB 12
  113. #define DBE_FP_VDRV_FP_VDRV_OFF_MSB 11
  114. #define DBE_FP_VDRV_FP_VDRV_OFF_LSB 0
  115. #define DBE_FP_HDRV_FP_HDRV_ON_MSB 23
  116. #define DBE_FP_HDRV_FP_HDRV_ON_LSB 12
  117. #define DBE_FP_HDRV_FP_HDRV_OFF_MSB 11
  118. #define DBE_FP_HDRV_FP_HDRV_OFF_LSB 0
  119. #define DBE_FP_DE_FP_DE_ON_MSB 23
  120. #define DBE_FP_DE_FP_DE_ON_LSB 12
  121. #define DBE_FP_DE_FP_DE_OFF_MSB 11
  122. #define DBE_FP_DE_FP_DE_OFF_LSB 0
  123. #define DBE_VT_VSYNC_VT_VSYNC_ON_MSB 23
  124. #define DBE_VT_VSYNC_VT_VSYNC_ON_LSB 12
  125. #define DBE_VT_VSYNC_VT_VSYNC_OFF_MSB 11
  126. #define DBE_VT_VSYNC_VT_VSYNC_OFF_LSB 0
  127. #define DBE_VT_HSYNC_VT_HSYNC_ON_MSB 23
  128. #define DBE_VT_HSYNC_VT_HSYNC_ON_LSB 12
  129. #define DBE_VT_HSYNC_VT_HSYNC_OFF_MSB 11
  130. #define DBE_VT_HSYNC_VT_HSYNC_OFF_LSB 0
  131. #define DBE_VT_VBLANK_VT_VBLANK_ON_MSB 23
  132. #define DBE_VT_VBLANK_VT_VBLANK_ON_LSB 12
  133. #define DBE_VT_VBLANK_VT_VBLANK_OFF_MSB 11
  134. #define DBE_VT_VBLANK_VT_VBLANK_OFF_LSB 0
  135. #define DBE_VT_HBLANK_VT_HBLANK_ON_MSB 23
  136. #define DBE_VT_HBLANK_VT_HBLANK_ON_LSB 12
  137. #define DBE_VT_HBLANK_VT_HBLANK_OFF_MSB 11
  138. #define DBE_VT_HBLANK_VT_HBLANK_OFF_LSB 0
  139. #define DBE_VT_FLAGS_VDRV_INVERT_MSB 0
  140. #define DBE_VT_FLAGS_VDRV_INVERT_LSB 0
  141. #define DBE_VT_FLAGS_HDRV_INVERT_MSB 2
  142. #define DBE_VT_FLAGS_HDRV_INVERT_LSB 2
  143. #define DBE_VT_VCMAP_VT_VCMAP_ON_MSB 23
  144. #define DBE_VT_VCMAP_VT_VCMAP_ON_LSB 12
  145. #define DBE_VT_VCMAP_VT_VCMAP_OFF_MSB 11
  146. #define DBE_VT_VCMAP_VT_VCMAP_OFF_LSB 0
  147. #define DBE_VT_HCMAP_VT_HCMAP_ON_MSB 23
  148. #define DBE_VT_HCMAP_VT_HCMAP_ON_LSB 12
  149. #define DBE_VT_HCMAP_VT_HCMAP_OFF_MSB 11
  150. #define DBE_VT_HCMAP_VT_HCMAP_OFF_LSB 0
  151. #define DBE_VT_XYMAX_VT_MAXX_MSB 11
  152. #define DBE_VT_XYMAX_VT_MAXX_LSB 0
  153. #define DBE_VT_XYMAX_VT_MAXY_MSB 23
  154. #define DBE_VT_XYMAX_VT_MAXY_LSB 12
  155. #define DBE_VT_HPIXEN_VT_HPIXEN_ON_MSB 23
  156. #define DBE_VT_HPIXEN_VT_HPIXEN_ON_LSB 12
  157. #define DBE_VT_HPIXEN_VT_HPIXEN_OFF_MSB 11
  158. #define DBE_VT_HPIXEN_VT_HPIXEN_OFF_LSB 0
  159. #define DBE_VT_VPIXEN_VT_VPIXEN_ON_MSB 23
  160. #define DBE_VT_VPIXEN_VT_VPIXEN_ON_LSB 12
  161. #define DBE_VT_VPIXEN_VT_VPIXEN_OFF_MSB 11
  162. #define DBE_VT_VPIXEN_VT_VPIXEN_OFF_LSB 0
  163. #define DBE_OVR_CONTROL_OVR_DMA_ENABLE_MSB 0
  164. #define DBE_OVR_CONTROL_OVR_DMA_ENABLE_LSB 0
  165. #define DBE_OVR_INHWCTRL_OVR_DMA_ENABLE_MSB 0
  166. #define DBE_OVR_INHWCTRL_OVR_DMA_ENABLE_LSB 0
  167. #define DBE_OVR_WIDTH_TILE_OVR_FIFO_RESET_MSB 13
  168. #define DBE_OVR_WIDTH_TILE_OVR_FIFO_RESET_LSB 13
  169. #define DBE_FRM_CONTROL_FRM_DMA_ENABLE_MSB 0
  170. #define DBE_FRM_CONTROL_FRM_DMA_ENABLE_LSB 0
  171. #define DBE_FRM_CONTROL_FRM_TILE_PTR_MSB 31
  172. #define DBE_FRM_CONTROL_FRM_TILE_PTR_LSB 9
  173. #define DBE_FRM_CONTROL_FRM_LINEAR_MSB 1
  174. #define DBE_FRM_CONTROL_FRM_LINEAR_LSB 1
  175. #define DBE_FRM_INHWCTRL_FRM_DMA_ENABLE_MSB 0
  176. #define DBE_FRM_INHWCTRL_FRM_DMA_ENABLE_LSB 0
  177. #define DBE_FRM_SIZE_TILE_FRM_WIDTH_TILE_MSB 12
  178. #define DBE_FRM_SIZE_TILE_FRM_WIDTH_TILE_LSB 5
  179. #define DBE_FRM_SIZE_TILE_FRM_RHS_MSB 4
  180. #define DBE_FRM_SIZE_TILE_FRM_RHS_LSB 0
  181. #define DBE_FRM_SIZE_TILE_FRM_DEPTH_MSB 14
  182. #define DBE_FRM_SIZE_TILE_FRM_DEPTH_LSB 13
  183. #define DBE_FRM_SIZE_TILE_FRM_FIFO_RESET_MSB 15
  184. #define DBE_FRM_SIZE_TILE_FRM_FIFO_RESET_LSB 15
  185. #define DBE_FRM_SIZE_PIXEL_FB_HEIGHT_PIX_MSB 31
  186. #define DBE_FRM_SIZE_PIXEL_FB_HEIGHT_PIX_LSB 16
  187. #define DBE_DID_CONTROL_DID_DMA_ENABLE_MSB 0
  188. #define DBE_DID_CONTROL_DID_DMA_ENABLE_LSB 0
  189. #define DBE_DID_INHWCTRL_DID_DMA_ENABLE_MSB 0
  190. #define DBE_DID_INHWCTRL_DID_DMA_ENABLE_LSB 0
  191. #define DBE_DID_START_XY_DID_STARTY_MSB 23
  192. #define DBE_DID_START_XY_DID_STARTY_LSB 12
  193. #define DBE_DID_START_XY_DID_STARTX_MSB 11
  194. #define DBE_DID_START_XY_DID_STARTX_LSB 0
  195. #define DBE_CRS_START_XY_CRS_STARTY_MSB 23
  196. #define DBE_CRS_START_XY_CRS_STARTY_LSB 12
  197. #define DBE_CRS_START_XY_CRS_STARTX_MSB 11
  198. #define DBE_CRS_START_XY_CRS_STARTX_LSB 0
  199. #define DBE_WID_TYP_MSB 4
  200. #define DBE_WID_TYP_LSB 2
  201. #define DBE_WID_BUF_MSB 1
  202. #define DBE_WID_BUF_LSB 0
  203. #define DBE_VC_START_XY_VC_STARTY_MSB 23
  204. #define DBE_VC_START_XY_VC_STARTY_LSB 12
  205. #define DBE_VC_START_XY_VC_STARTX_MSB 11
  206. #define DBE_VC_START_XY_VC_STARTX_LSB 0
  207. /* Constants */
  208. #define DBE_FRM_DEPTH_8 0
  209. #define DBE_FRM_DEPTH_16 1
  210. #define DBE_FRM_DEPTH_32 2
  211. #define DBE_CMODE_I8 0
  212. #define DBE_CMODE_I12 1
  213. #define DBE_CMODE_RG3B2 2
  214. #define DBE_CMODE_RGB4 3
  215. #define DBE_CMODE_ARGB5 4
  216. #define DBE_CMODE_RGB8 5
  217. #define DBE_CMODE_RGBA5 6
  218. #define DBE_CMODE_RGB10 7
  219. #define DBE_BMODE_BOTH 3
  220. #define DBE_CRS_MAGIC 54
  221. #define DBE_CLOCK_REF_KHZ 27000
  222. /* Config Register (DBE Only) Definitions */
  223. #define DBE_CONFIG_VDAC_ENABLE 0x00000001
  224. #define DBE_CONFIG_VDAC_GSYNC 0x00000002
  225. #define DBE_CONFIG_VDAC_PBLANK 0x00000004
  226. #define DBE_CONFIG_FPENABLE 0x00000008
  227. #define DBE_CONFIG_LENDIAN 0x00000020
  228. #define DBE_CONFIG_TILEHIST 0x00000040
  229. #define DBE_CONFIG_EXT_ADDR 0x00000080
  230. #define DBE_CONFIG_FBDEV ( DBE_CONFIG_VDAC_ENABLE | \
  231. DBE_CONFIG_VDAC_GSYNC | \
  232. DBE_CONFIG_VDAC_PBLANK | \
  233. DBE_CONFIG_LENDIAN | \
  234. DBE_CONFIG_EXT_ADDR )
  235. /*
  236. * Available Video Timings and Corresponding Indices
  237. */
  238. typedef enum {
  239. DBE_VT_640_480_60,
  240. DBE_VT_800_600_60,
  241. DBE_VT_800_600_75,
  242. DBE_VT_800_600_120,
  243. DBE_VT_1024_768_50,
  244. DBE_VT_1024_768_60,
  245. DBE_VT_1024_768_75,
  246. DBE_VT_1024_768_85,
  247. DBE_VT_1024_768_120,
  248. DBE_VT_1280_1024_50,
  249. DBE_VT_1280_1024_60,
  250. DBE_VT_1280_1024_75,
  251. DBE_VT_1280_1024_85,
  252. DBE_VT_1600_1024_53,
  253. DBE_VT_1600_1024_60,
  254. DBE_VT_1600_1200_50,
  255. DBE_VT_1600_1200_60,
  256. DBE_VT_1600_1200_75,
  257. DBE_VT_1920_1080_50,
  258. DBE_VT_1920_1080_60,
  259. DBE_VT_1920_1080_72,
  260. DBE_VT_1920_1200_50,
  261. DBE_VT_1920_1200_60,
  262. DBE_VT_1920_1200_66,
  263. DBE_VT_UNKNOWN
  264. } dbe_timing_t;
  265. /*
  266. * Crime Video Timing Data Structure
  267. */
  268. struct dbe_timing_info
  269. {
  270. dbe_timing_t type;
  271. int flags;
  272. short width; /* Monitor resolution */
  273. short height;
  274. int fields_sec; /* fields/sec (Hz -3 dec. places */
  275. int cfreq; /* pixel clock frequency (MHz -3 dec. places) */
  276. short htotal; /* Horizontal total pixels */
  277. short hblank_start; /* Horizontal blank start */
  278. short hblank_end; /* Horizontal blank end */
  279. short hsync_start; /* Horizontal sync start */
  280. short hsync_end; /* Horizontal sync end */
  281. short vtotal; /* Vertical total lines */
  282. short vblank_start; /* Vertical blank start */
  283. short vblank_end; /* Vertical blank end */
  284. short vsync_start; /* Vertical sync start */
  285. short vsync_end; /* Vertical sync end */
  286. short pll_m; /* PLL M parameter */
  287. short pll_n; /* PLL P parameter */
  288. short pll_p; /* PLL N parameter */
  289. };
  290. /* Defines for dbe_vof_info_t flags */
  291. #define DBE_VOF_UNKNOWNMON 1
  292. #define DBE_VOF_STEREO 2
  293. #define DBE_VOF_DO_GENSYNC 4 /* enable incoming sync */
  294. #define DBE_VOF_SYNC_ON_GREEN 8 /* sync on green */
  295. #define DBE_VOF_FLATPANEL 0x1000 /* FLATPANEL Timing */
  296. #define DBE_VOF_MAGICKEY 0x2000 /* Backdoor key */
  297. /*
  298. * DBE Timing Tables
  299. */
  300. #ifdef INCLUDE_TIMING_TABLE_DATA
  301. struct dbe_timing_info dbeVTimings[] = {
  302. {
  303. DBE_VT_640_480_60,
  304. /* flags, width, height, fields_sec, cfreq */
  305. 0, 640, 480, 59940, 25175,
  306. /* htotal, hblank_start, hblank_end, hsync_start, hsync_end */
  307. 800, 640, 800, 656, 752,
  308. /* vtotal, vblank_start, vblank_end, vsync_start, vsync_end */
  309. 525, 480, 525, 490, 492,
  310. /* pll_m, pll_n, pll_p */
  311. 15, 2, 3
  312. },
  313. {
  314. DBE_VT_800_600_60,
  315. /* flags, width, height, fields_sec, cfreq */
  316. 0, 800, 600, 60317, 40000,
  317. /* htotal, hblank_start, hblank_end, hsync_start, hsync_end */
  318. 1056, 800, 1056, 840, 968,
  319. /* vtotal, vblank_start, vblank_end, vsync_start, vsync_end */
  320. 628, 600, 628, 601, 605,
  321. /* pll_m, pll_n, pll_p */
  322. 3, 1, 1
  323. },
  324. {
  325. DBE_VT_800_600_75,
  326. /* flags, width, height, fields_sec, cfreq */
  327. 0, 800, 600, 75000, 49500,
  328. /* htotal, hblank_start, hblank_end, hsync_start, hsync_end */
  329. 1056, 800, 1056, 816, 896,
  330. /* vtotal, vblank_start, vblank_end, vsync_start, vsync_end */
  331. 625, 600, 625, 601, 604,
  332. /* pll_m, pll_n, pll_p */
  333. 11, 3, 1
  334. },
  335. {
  336. DBE_VT_800_600_120,
  337. /* flags, width, height, fields_sec, cfreq */
  338. DBE_VOF_STEREO, 800, 600, 119800, 82978,
  339. /* htotal, hblank_start, hblank_end, hsync_start, hsync_end */
  340. 1040, 800, 1040, 856, 976,
  341. /* vtotal, vblank_start, vblank_end, vsync_start, vsync_end */
  342. 666, 600, 666, 637, 643,
  343. /* pll_m, pll_n, pll_p */
  344. 31, 5, 1
  345. },
  346. {
  347. DBE_VT_1024_768_50,
  348. /* flags, width, height, fields_sec, cfreq */
  349. 0, 1024, 768, 50000, 54163,
  350. /* htotal, hblank_start, hblank_end, hsync_start, hsync_end */
  351. 1344, 1024, 1344, 1048, 1184,
  352. /* vtotal, vblank_start, vblank_end, vsync_start, vsync_end */
  353. 806, 768, 806, 771, 777,
  354. /* pll_m, pll_n, pll_p */
  355. 4, 1, 1
  356. },
  357. {
  358. DBE_VT_1024_768_60,
  359. /* flags, width, height, fields_sec, cfreq */
  360. 0, 1024, 768, 60004, 65000,
  361. /* htotal, hblank_start, hblank_end, hsync_start, hsync_end */
  362. 1344, 1024, 1344, 1048, 1184,
  363. /* vtotal, vblank_start, vblank_end, vsync_start, vsync_end */
  364. 806, 768, 806, 771, 777,
  365. /* pll_m, pll_n, pll_p */
  366. 12, 5, 0
  367. },
  368. {
  369. DBE_VT_1024_768_75,
  370. /* flags, width, height, fields_sec, cfreq */
  371. 0, 1024, 768, 75029, 78750,
  372. /* htotal, hblank_start, hblank_end, hsync_start, hsync_end */
  373. 1312, 1024, 1312, 1040, 1136,
  374. /* vtotal, vblank_start, vblank_end, vsync_start, vsync_end */
  375. 800, 768, 800, 769, 772,
  376. /* pll_m, pll_n, pll_p */
  377. 29, 5, 1
  378. },
  379. {
  380. DBE_VT_1024_768_85,
  381. /* flags, width, height, fields_sec, cfreq */
  382. 0, 1024, 768, 84997, 94500,
  383. /* htotal, hblank_start, hblank_end, hsync_start, hsync_end */
  384. 1376, 1024, 1376, 1072, 1168,
  385. /* vtotal, vblank_start, vblank_end, vsync_start, vsync_end */
  386. 808, 768, 808, 769, 772,
  387. /* pll_m, pll_n, pll_p */
  388. 7, 2, 0
  389. },
  390. {
  391. DBE_VT_1024_768_120,
  392. /* flags, width, height, fields_sec, cfreq */
  393. DBE_VOF_STEREO, 1024, 768, 119800, 133195,
  394. /* htotal, hblank_start, hblank_end, hsync_start, hsync_end */
  395. 1376, 1024, 1376, 1072, 1168,
  396. /* vtotal, vblank_start, vblank_end, vsync_start, vsync_end */
  397. 808, 768, 808, 769, 772,
  398. /* pll_m, pll_n, pll_p */
  399. 5, 1, 0
  400. },
  401. {
  402. DBE_VT_1280_1024_50,
  403. /* flags, width, height, fields_sec, cfreq */
  404. 0, 1280, 1024, 50000, 89460,
  405. /* htotal, hblank_start, hblank_end, hsync_start, hsync_end */
  406. 1680, 1280, 1680, 1360, 1480,
  407. /* vtotal, vblank_start, vblank_end, vsync_start, vsync_end */
  408. 1065, 1024, 1065, 1027, 1030,
  409. /* pll_m, pll_n, pll_p */
  410. 10, 3, 0
  411. },
  412. {
  413. DBE_VT_1280_1024_60,
  414. /* flags, width, height, fields_sec, cfreq */
  415. 0, 1280, 1024, 60020, 108000,
  416. /* htotal, hblank_start, hblank_end, hsync_start, hsync_end */
  417. 1688, 1280, 1688, 1328, 1440,
  418. /* vtotal, vblank_start, vblank_end, vsync_start, vsync_end */
  419. 1066, 1024, 1066, 1025, 1028,
  420. /* pll_m, pll_n, pll_p */
  421. 4, 1, 0
  422. },
  423. {
  424. DBE_VT_1280_1024_75,
  425. /* flags, width, height, fields_sec, cfreq */
  426. 0, 1280, 1024, 75025, 135000,
  427. /* htotal, hblank_start, hblank_end, hsync_start, hsync_end */
  428. 1688, 1280, 1688, 1296, 1440,
  429. /* vtotal, vblank_start, vblank_end, vsync_start, vsync_end */
  430. 1066, 1024, 1066, 1025, 1028,
  431. /* pll_m, pll_n, pll_p */
  432. 5, 1, 0
  433. },
  434. {
  435. DBE_VT_1280_1024_85,
  436. /* flags, width, height, fields_sec, cfreq */
  437. 0, 1280, 1024, 85024, 157500,
  438. /* htotal, hblank_start, hblank_end, hsync_start, hsync_end */
  439. 1728, 1280, 1728, 1344, 1504,
  440. /* vtotal, vblank_start, vblank_end, vsync_start, vsync_end */
  441. 1072, 1024, 1072, 1025, 1028,
  442. /* pll_m, pll_n, pll_p */
  443. 29, 5, 0
  444. },
  445. {
  446. DBE_VT_1600_1024_53,
  447. /* flags, width, height, fields_sec, cfreq */
  448. DBE_VOF_FLATPANEL | DBE_VOF_MAGICKEY,
  449. 1600, 1024, 53000, 107447,
  450. /* htotal, hblank_start, hblank_end, hsync_start, hsync_end */
  451. 1900, 1600, 1900, 1630, 1730,
  452. /* vtotal, vblank_start, vblank_end, vsync_start, vsync_end */
  453. 1067, 1024, 1067, 1027, 1030,
  454. /* pll_m, pll_n, pll_p */
  455. 4, 1, 0
  456. },
  457. {
  458. DBE_VT_1600_1024_60,
  459. /* flags, width, height, fields_sec, cfreq */
  460. DBE_VOF_FLATPANEL, 1600, 1024, 60000, 106913,
  461. /* htotal, hblank_start, hblank_end, hsync_start, hsync_end */
  462. 1670, 1600, 1670, 1630, 1650,
  463. /* vtotal, vblank_start, vblank_end, vsync_start, vsync_end */
  464. 1067, 1024, 1067, 1027, 1030,
  465. /* pll_m, pll_n, pll_p */
  466. 4, 1, 0
  467. },
  468. {
  469. DBE_VT_1600_1200_50,
  470. /* flags, width, height, fields_sec, cfreq */
  471. 0, 1600, 1200, 50000, 130500,
  472. /* htotal, hblank_start, hblank_end, hsync_start, hsync_end */
  473. 2088, 1600, 2088, 1644, 1764,
  474. /* vtotal, vblank_start, vblank_end, vsync_start, vsync_end */
  475. 1250, 1200, 1250, 1205, 1211,
  476. /* pll_m, pll_n, pll_p */
  477. 24, 5, 0
  478. },
  479. {
  480. DBE_VT_1600_1200_60,
  481. /* flags, width, height, fields_sec, cfreq */
  482. 0, 1600, 1200, 59940, 162000,
  483. /* htotal, hblank_start, hblank_end, hsync_start, hsync_end */
  484. 2160, 1600, 2160, 1644, 1856,
  485. /* vtotal, vblank_start, vblank_end, vsync_start, vsync_end */
  486. 1250, 1200, 1250, 1201, 1204,
  487. /* pll_m, pll_n, pll_p */
  488. 6, 1, 0
  489. },
  490. {
  491. DBE_VT_1600_1200_75,
  492. /* flags, width, height, fields_sec, cfreq */
  493. 0, 1600, 1200, 75000, 202500,
  494. /* htotal, hblank_start, hblank_end, hsync_start, hsync_end */
  495. 2160, 1600, 2160, 1644, 1856,
  496. /* vtotal, vblank_start, vblank_end, vsync_start, vsync_end */
  497. 1250, 1200, 1250, 1201, 1204,
  498. /* pll_m, pll_n, pll_p */
  499. 15, 2, 0
  500. },
  501. {
  502. DBE_VT_1920_1080_50,
  503. /* flags, width, height, fields_sec, cfreq */
  504. 0, 1920, 1080, 50000, 133200,
  505. /* htotal, hblank_start, hblank_end, hsync_start, hsync_end */
  506. 2368, 1920, 2368, 1952, 2096,
  507. /* vtotal, vblank_start, vblank_end, vsync_start, vsync_end */
  508. 1125, 1080, 1125, 1083, 1086,
  509. /* pll_m, pll_n, pll_p */
  510. 5, 1, 0
  511. },
  512. {
  513. DBE_VT_1920_1080_60,
  514. /* flags, width, height, fields_sec, cfreq */
  515. 0, 1920, 1080, 59940, 159840,
  516. /* htotal, hblank_start, hblank_end, hsync_start, hsync_end */
  517. 2368, 1920, 2368, 1952, 2096,
  518. /* vtotal, vblank_start, vblank_end, vsync_start, vsync_end */
  519. 1125, 1080, 1125, 1083, 1086,
  520. /* pll_m, pll_n, pll_p */
  521. 6, 1, 0
  522. },
  523. {
  524. DBE_VT_1920_1080_72,
  525. /* flags, width, height, fields_sec, cfreq */
  526. 0, 1920, 1080, 72000, 216023,
  527. /* htotal, hblank_start, hblank_end, hsync_start, hsync_end */
  528. 2560, 1920, 2560, 1968, 2184,
  529. /* vtotal, vblank_start, vblank_end, vsync_start, vsync_end */
  530. 1172, 1080, 1172, 1083, 1086,
  531. /* pll_m, pll_n, pll_p */
  532. 8, 1, 0
  533. },
  534. {
  535. DBE_VT_1920_1200_50,
  536. /* flags, width, height, fields_sec, cfreq */
  537. 0, 1920, 1200, 50000, 161500,
  538. /* htotal, hblank_start, hblank_end, hsync_start, hsync_end */
  539. 2584, 1920, 2584, 1984, 2240,
  540. /* vtotal, vblank_start, vblank_end, vsync_start, vsync_end */
  541. 1250, 1200, 1250, 1203, 1206,
  542. /* pll_m, pll_n, pll_p */
  543. 6, 1, 0
  544. },
  545. {
  546. DBE_VT_1920_1200_60,
  547. /* flags, width, height, fields_sec, cfreq */
  548. 0, 1920, 1200, 59940, 193800,
  549. /* htotal, hblank_start, hblank_end, hsync_start, hsync_end */
  550. 2584, 1920, 2584, 1984, 2240,
  551. /* vtotal, vblank_start, vblank_end, vsync_start, vsync_end */
  552. 1250, 1200, 1250, 1203, 1206,
  553. /* pll_m, pll_n, pll_p */
  554. 29, 4, 0
  555. },
  556. {
  557. DBE_VT_1920_1200_66,
  558. /* flags, width, height, fields_sec, cfreq */
  559. 0, 1920, 1200, 66000, 213180,
  560. /* htotal, hblank_start, hblank_end, hsync_start, hsync_end */
  561. 2584, 1920, 2584, 1984, 2240,
  562. /* vtotal, vblank_start, vblank_end, vsync_start, vsync_end */
  563. 1250, 1200, 1250, 1203, 1206,
  564. /* pll_m, pll_n, pll_p */
  565. 8, 1, 0
  566. }
  567. };
  568. #endif // INCLUDE_TIMING_TABLE_DATA
  569. #endif // ! __SGIVWFB_H__