cslr_lcdc.h 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663
  1. /*
  2. * cslr_lcdc.h
  3. *
  4. * This file contains the macros for Register Chip Support Library (CSL) which
  5. * can be used for operations on the respective underlying hardware/peripheral
  6. *
  7. * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/
  8. *
  9. *
  10. * Redistribution and use in source and binary forms, with or without
  11. * modification, are permitted provided that the following conditions
  12. * are met:
  13. *
  14. * Redistributions of source code must retain the above copyright
  15. * notice, this list of conditions and the following disclaimer.
  16. *
  17. * Redistributions in binary form must reproduce the above copyright
  18. * notice, this list of conditions and the following disclaimer in the
  19. * documentation and/or other materials provided with the
  20. * distribution.
  21. *
  22. * Neither the name of Texas Instruments Incorporated nor the names of
  23. * its contributors may be used to endorse or promote products derived
  24. * from this software without specific prior written permission.
  25. *
  26. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  27. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  28. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  29. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  30. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  31. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  32. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  33. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  34. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  35. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  36. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  37. *
  38. */
  39. /** ============================================================================
  40. * @file cslr_lcd.h
  41. *
  42. * @path $(CSLPATH)\inc
  43. *
  44. * @desc This file contains the Register Desciptions for LCD
  45. * ============================================================================
  46. */
  47. #ifndef CSLR_LCDC_H_
  48. #define CSLR_LCDC_H_
  49. #ifdef __cplusplus
  50. extern "C" {
  51. #endif
  52. #include <ti/csl/cslr.h>
  53. #include <ti/csl/tistdtypes.h>
  54. /* Minimum unit = 1 byte */
  55. /**************************************************************************\
  56. * Register Overlay Structure
  57. \**************************************************************************/
  58. typedef struct {
  59. volatile Uint32 REV;
  60. volatile Uint32 LCD_CTRL;
  61. volatile Uint32 LCD_STAT;
  62. volatile Uint32 LIDD_CTRL;
  63. volatile Uint32 LIDD_CS0_CONF;
  64. volatile Uint32 LIDD_CS0_ADDR;
  65. volatile Uint32 LIDD_CS0_DATA;
  66. volatile Uint32 LIDD_CS1_CONF;
  67. volatile Uint32 LIDD_CS1_ADDR;
  68. volatile Uint32 LIDD_CS1_DATA;
  69. volatile Uint32 RASTER_CTRL;
  70. volatile Uint32 RASTER_TIMING_0;
  71. volatile Uint32 RASTER_TIMING_1;
  72. volatile Uint32 RASTER_TIMING_2;
  73. volatile Uint32 RASTER_SUBPANEL;
  74. volatile Uint32 RSVD0;
  75. volatile Uint32 LCDDMA_CTRL;
  76. volatile Uint32 LCDDMA_FB0_BASE;
  77. volatile Uint32 LCDDMA_FB0_CEILING;
  78. volatile Uint32 LCDDMA_FB1_BASE;
  79. volatile Uint32 LCDDMA_FB1_CEILING;
  80. } CSL_LcdcRegs;
  81. /**************************************************************************\
  82. * Overlay structure typedef definition
  83. \**************************************************************************/
  84. typedef volatile CSL_LcdcRegs * CSL_LcdcRegsOvly;
  85. /**************************************************************************\
  86. * Field Definition Macros
  87. \**************************************************************************/
  88. /* LCD_REV */
  89. #define CSL_LCDC_REVID_REV_MASK (0xFFFFFFFFu)
  90. #define CSL_LCDC_REVID_REV_SHIFT (0x00000000u)
  91. #define CSL_LCDC_REVID_REV_RESETVAL (0x4C100100u)
  92. #define CSL_LCDC_REVID_RESETVAL (0x4C100100u)
  93. /* LCD_CTRL */
  94. #define CSL_LCDC_LCD_CTRL_CLKDIV_MASK (0x0000FF00u)
  95. #define CSL_LCDC_LCD_CTRL_CLKDIV_SHIFT (0x00000008u)
  96. #define CSL_LCDC_LCD_CTRL_CLKDIV_RESETVAL (0x00000000u)
  97. #define CSL_LCDC_LCD_CTRL_MODESEL_MASK (0x00000001u)
  98. #define CSL_LCDC_LCD_CTRL_MODESEL_SHIFT (0x00000000u)
  99. #define CSL_LCDC_LCD_CTRL_MODESEL_RESETVAL (0x00000000u)
  100. /*----MODESEL Tokens----*/
  101. #define CSL_LCDC_LCD_CTRL_MODESEL_LIDD (0x00000000u)
  102. #define CSL_LCDC_LCD_CTRL_MODESEL_RASTER (0x00000001u)
  103. #define CSL_LCDC_LCD_CTRL_RESETVAL (0x00000000u)
  104. /* LCD_STAT */
  105. #define CSL_LCDC_LCD_STAT_EOF1_MASK (0x00000200u)
  106. #define CSL_LCDC_LCD_STAT_EOF1_SHIFT (0x00000009u)
  107. #define CSL_LCDC_LCD_STAT_EOF1_RESETVAL (0x00000000u)
  108. /*----EOF1 Tokens----*/
  109. #define CSL_LCDC_LCD_STAT_EOF1_EOF1_NO_DETECT (0x00000000u)
  110. #define CSL_LCDC_LCD_STAT_EOF1_EOF1_DETECT (0x00000001u)
  111. #define CSL_LCDC_LCD_STAT_EOF0_MASK (0x00000100u)
  112. #define CSL_LCDC_LCD_STAT_EOF0_SHIFT (0x00000008u)
  113. #define CSL_LCDC_LCD_STAT_EOF0_RESETVAL (0x00000000u)
  114. /*----EOF0 Tokens----*/
  115. #define CSL_LCDC_LCD_STAT_EOF0_EOF0_NO_DETECT (0x00000000u)
  116. #define CSL_LCDC_LCD_STAT_EOF0_EOF0_DETECT (0x00000001u)
  117. #define CSL_LCDC_LCD_STAT_PL_MASK (0x00000040u)
  118. #define CSL_LCDC_LCD_STAT_PL_SHIFT (0x00000006u)
  119. #define CSL_LCDC_LCD_STAT_PL_RESETVAL (0x00000000u)
  120. /*----PL Tokens----*/
  121. #define CSL_LCDC_LCD_STAT_PL_NO (0x00000000u)
  122. #define CSL_LCDC_LCD_STAT_PL_YES (0x00000001u)
  123. #define CSL_LCDC_LCD_STAT_FUF_MASK (0x00000020u)
  124. #define CSL_LCDC_LCD_STAT_FUF_SHIFT (0x00000005u)
  125. #define CSL_LCDC_LCD_STAT_FUF_RESETVAL (0x00000000u)
  126. /*----FUF Tokens----*/
  127. #define CSL_LCDC_LCD_STAT_FUF_NO (0x00000000u)
  128. #define CSL_LCDC_LCD_STAT_FUF_YES (0x00000001u)
  129. #define CSL_LCDC_LCD_STAT_ABC_MASK (0x00000008u)
  130. #define CSL_LCDC_LCD_STAT_ABC_SHIFT (0x00000003u)
  131. #define CSL_LCDC_LCD_STAT_ABC_RESETVAL (0x00000000u)
  132. /*----ABC Tokens----*/
  133. #define CSL_LCDC_LCD_STAT_ABC_NOT_ZERO (0x00000000u)
  134. #define CSL_LCDC_LCD_STAT_ABC_ZERO (0x00000001u)
  135. #define CSL_LCDC_LCD_STAT_SYNC_MASK (0x00000004u)
  136. #define CSL_LCDC_LCD_STAT_SYNC_SHIFT (0x00000002u)
  137. #define CSL_LCDC_LCD_STAT_SYNC_RESETVAL (0x00000000u)
  138. /*----SYNC Tokens----*/
  139. #define CSL_LCDC_LCD_STAT_SYNC_NORMAL (0x00000000u)
  140. #define CSL_LCDC_LCD_STAT_SYNC_SYNC_LOST (0x00000001u)
  141. #define CSL_LCDC_LCD_STAT_DONE_MASK (0x00000001u)
  142. #define CSL_LCDC_LCD_STAT_DONE_SHIFT (0x00000000u)
  143. #define CSL_LCDC_LCD_STAT_DONE_RESETVAL (0x00000000u)
  144. /*----DONE Tokens----*/
  145. #define CSL_LCDC_LCD_STAT_DONE_ENABLE (0x00000000u)
  146. #define CSL_LCDC_LCD_STAT_DONE_DISABLE (0x00000001u)
  147. #define CSL_LCDC_LCD_STAT_RESETVAL (0x00000000u)
  148. /* LIDD_CTRL */
  149. #define CSL_LCDC_LIDD_CTRL_DONE_INT_EN_MASK (0x00000400u)
  150. #define CSL_LCDC_LIDD_CTRL_DONE_INT_EN_SHIFT (0x0000000Au)
  151. #define CSL_LCDC_LIDD_CTRL_DONE_INT_EN_RESETVAL (0x00000000u)
  152. /*----DONE_INT_EN Tokens----*/
  153. #define CSL_LCDC_LIDD_CTRL_DONE_INT_EN_DISABLE (0x00000000u)
  154. #define CSL_LCDC_LIDD_CTRL_DONE_INT_EN_ENABLE (0x00000001u)
  155. #define CSL_LCDC_LIDD_CTRL_DMA_CS0_CS1_MASK (0x00000200u)
  156. #define CSL_LCDC_LIDD_CTRL_DMA_CS0_CS1_SHIFT (0x00000009u)
  157. #define CSL_LCDC_LIDD_CTRL_DMA_CS0_CS1_RESETVAL (0x00000000u)
  158. /*----DMA_CS0_CS1 Tokens----*/
  159. #define CSL_LCDC_LIDD_CTRL_DMA_CS0_CS1_DMA_TO_CS0 (0x00000000u)
  160. #define CSL_LCDC_LIDD_CTRL_DMA_CS0_CS1_DMA_TO_CS1 (0x00000001u)
  161. #define CSL_LCDC_LIDD_CTRL_LIDD_DMA_EN_MASK (0x00000100u)
  162. #define CSL_LCDC_LIDD_CTRL_LIDD_DMA_EN_SHIFT (0x00000008u)
  163. #define CSL_LCDC_LIDD_CTRL_LIDD_DMA_EN_RESETVAL (0x00000000u)
  164. /*----LIDD_DMA_EN Tokens----*/
  165. #define CSL_LCDC_LIDD_CTRL_LIDD_DMA_EN_DEACTIVATE_DMA (0x00000000u)
  166. #define CSL_LCDC_LIDD_CTRL_LIDD_DMA_EN_ACTIVATE_DMA (0x00000001u)
  167. #define CSL_LCDC_LIDD_CTRL_CS1_E1_POL_MASK (0x00000080u)
  168. #define CSL_LCDC_LIDD_CTRL_CS1_E1_POL_SHIFT (0x00000007u)
  169. #define CSL_LCDC_LIDD_CTRL_CS1_E1_POL_RESETVAL (0x00000000u)
  170. /*----CS1_E1_POL Tokens----*/
  171. #define CSL_LCDC_LIDD_CTRL_CS1_E1_POL_DONOT_INVERT (0x00000000u)
  172. #define CSL_LCDC_LIDD_CTRL_CS1_E1_POL_INVERT (0x00000001u)
  173. #define CSL_LCDC_LIDD_CTRL_CS0_E0_POL_MASK (0x00000040u)
  174. #define CSL_LCDC_LIDD_CTRL_CS0_E0_POL_SHIFT (0x00000006u)
  175. #define CSL_LCDC_LIDD_CTRL_CS0_E0_POL_RESETVAL (0x00000000u)
  176. /*----CS0_E0_POL Tokens----*/
  177. #define CSL_LCDC_LIDD_CTRL_CS0_E0_POL_DONOT_INVERT (0x00000000u)
  178. #define CSL_LCDC_LIDD_CTRL_CS0_E0_POL_INVERT (0x00000001u)
  179. #define CSL_LCDC_LIDD_CTRL_WS_DIR_POL_MASK (0x00000020u)
  180. #define CSL_LCDC_LIDD_CTRL_WS_DIR_POL_SHIFT (0x00000005u)
  181. #define CSL_LCDC_LIDD_CTRL_WS_DIR_POL_RESETVAL (0x00000000u)
  182. /*----WS_DIR_POL Tokens----*/
  183. #define CSL_LCDC_LIDD_CTRL_WS_DIR_POL_DONOT_INVERT (0x00000000u)
  184. #define CSL_LCDC_LIDD_CTRL_WS_DIR_POL_INVERT (0x00000001u)
  185. #define CSL_LCDC_LIDD_CTRL_RS_EN_POL_MASK (0x00000010u)
  186. #define CSL_LCDC_LIDD_CTRL_RS_EN_POL_SHIFT (0x00000004u)
  187. #define CSL_LCDC_LIDD_CTRL_RS_EN_POL_RESETVAL (0x00000000u)
  188. /*----RS_EN_POL Tokens----*/
  189. #define CSL_LCDC_LIDD_CTRL_RS_EN_POL_DONOT_INVERT (0x00000000u)
  190. #define CSL_LCDC_LIDD_CTRL_RS_EN_POL_INVERT (0x00000001u)
  191. #define CSL_LCDC_LIDD_CTRL_ALEPOL_MASK (0x00000008u)
  192. #define CSL_LCDC_LIDD_CTRL_ALEPOL_SHIFT (0x00000003u)
  193. #define CSL_LCDC_LIDD_CTRL_ALEPOL_RESETVAL (0x00000000u)
  194. /*----ALEPOL Tokens----*/
  195. #define CSL_LCDC_LIDD_CTRL_ALEPOL_DONOT_INVERT (0x00000000u)
  196. #define CSL_LCDC_LIDD_CTRL_ALEPOL_INVERT (0x00000001u)
  197. #define CSL_LCDC_LIDD_CTRL_LIDD_MODE_SEL_MASK (0x00000007u)
  198. #define CSL_LCDC_LIDD_CTRL_LIDD_MODE_SEL_SHIFT (0x00000000u)
  199. #define CSL_LCDC_LIDD_CTRL_LIDD_MODE_SEL_RESETVAL (0x00000000u)
  200. /*----LIDD_MODE_SEL Tokens----*/
  201. #define CSL_LCDC_LIDD_CTRL_LIDD_MODE_SEL_SYNC_MPU68 (0x00000000u)
  202. #define CSL_LCDC_LIDD_CTRL_LIDD_MODE_SEL_ASYNC_MPU68 (0x00000001u)
  203. #define CSL_LCDC_LIDD_CTRL_LIDD_MODE_SEL_SYNC_MPU80 (0x00000002u)
  204. #define CSL_LCDC_LIDD_CTRL_LIDD_MODE_SEL_ASYNC_MPU80 (0x00000003u)
  205. #define CSL_LCDC_LIDD_CTRL_LIDD_MODE_SEL_HITACHI (0x00000004u)
  206. #define CSL_LCDC_LIDD_CTRL_RESETVAL (0x00000000u)
  207. /* LIDD_CS0_CONF */
  208. #define CSL_LCDC_LIDD_CS0_CONF_W_SU_MASK (0xF8000000u)
  209. #define CSL_LCDC_LIDD_CS0_CONF_W_SU_SHIFT (0x0000001Bu)
  210. #define CSL_LCDC_LIDD_CS0_CONF_W_SU_RESETVAL (0x00000000u)
  211. #define CSL_LCDC_LIDD_CS0_CONF_W_STROBE_MASK (0x07E00000u)
  212. #define CSL_LCDC_LIDD_CS0_CONF_W_STROBE_SHIFT (0x00000015u)
  213. #define CSL_LCDC_LIDD_CS0_CONF_W_STROBE_RESETVAL (0x00000001u)
  214. #define CSL_LCDC_LIDD_CS0_CONF_W_HOLD_MASK (0x001E0000u)
  215. #define CSL_LCDC_LIDD_CS0_CONF_W_HOLD_SHIFT (0x00000011u)
  216. #define CSL_LCDC_LIDD_CS0_CONF_W_HOLD_RESETVAL (0x00000001u)
  217. #define CSL_LCDC_LIDD_CS0_CONF_R_SU_MASK (0x0001F000u)
  218. #define CSL_LCDC_LIDD_CS0_CONF_R_SU_SHIFT (0x0000000Cu)
  219. #define CSL_LCDC_LIDD_CS0_CONF_R_SU_RESETVAL (0x00000000u)
  220. #define CSL_LCDC_LIDD_CS0_CONF_R_STROBE_MASK (0x00000FC0u)
  221. #define CSL_LCDC_LIDD_CS0_CONF_R_STROBE_SHIFT (0x00000006u)
  222. #define CSL_LCDC_LIDD_CS0_CONF_R_STROBE_RESETVAL (0x00000001u)
  223. #define CSL_LCDC_LIDD_CS0_CONF_R_HOLD_MASK (0x0000003Cu)
  224. #define CSL_LCDC_LIDD_CS0_CONF_R_HOLD_SHIFT (0x00000002u)
  225. #define CSL_LCDC_LIDD_CS0_CONF_R_HOLD_RESETVAL (0x00000001u)
  226. #define CSL_LCDC_LIDD_CS0_CONF_TA_MASK (0x00000003u)
  227. #define CSL_LCDC_LIDD_CS0_CONF_TA_SHIFT (0x00000000u)
  228. #define CSL_LCDC_LIDD_CS0_CONF_TA_RESETVAL (0x00000000u)
  229. #define CSL_LCDC_LIDD_CS0_CONF_RESETVAL (0x00220044u)
  230. /* LIDD_CS0_ADDR */
  231. #define CSL_LCDC_LIDD_CS0_ADDR_ADR_INDX_MASK (0x0000FFFFu)
  232. #define CSL_LCDC_LIDD_CS0_ADDR_ADR_INDX_SHIFT (0x00000000u)
  233. #define CSL_LCDC_LIDD_CS0_ADDR_ADR_INDX_RESETVAL (0x00000000u)
  234. #define CSL_LCDC_LIDD_CS0_ADDR_RESETVAL (0x00000000u)
  235. /* LIDD_CS0_DATA */
  236. #define CSL_LCDC_LIDD_CS0_DATA_DATA_MASK (0x0000FFFFu)
  237. #define CSL_LCDC_LIDD_CS0_DATA_DATA_SHIFT (0x00000000u)
  238. #define CSL_LCDC_LIDD_CS0_DATA_DATA_RESETVAL (0x00000000u)
  239. #define CSL_LCDC_LIDD_CS0_DATA_RESETVAL (0x00000000u)
  240. /* LIDD_CS1_CONF */
  241. #define CSL_LCDC_LIDD_CS1_CONF_W_SU_MASK (0xF8000000u)
  242. #define CSL_LCDC_LIDD_CS1_CONF_W_SU_SHIFT (0x0000001Bu)
  243. #define CSL_LCDC_LIDD_CS1_CONF_W_SU_RESETVAL (0x00000000u)
  244. #define CSL_LCDC_LIDD_CS1_CONF_W_STROBE_MASK (0x07E00000u)
  245. #define CSL_LCDC_LIDD_CS1_CONF_W_STROBE_SHIFT (0x00000015u)
  246. #define CSL_LCDC_LIDD_CS1_CONF_W_STROBE_RESETVAL (0x00000001u)
  247. #define CSL_LCDC_LIDD_CS1_CONF_W_HOLD_MASK (0x001E0000u)
  248. #define CSL_LCDC_LIDD_CS1_CONF_W_HOLD_SHIFT (0x00000011u)
  249. #define CSL_LCDC_LIDD_CS1_CONF_W_HOLD_RESETVAL (0x00000001u)
  250. #define CSL_LCDC_LIDD_CS1_CONF_R_SU_MASK (0x0001F000u)
  251. #define CSL_LCDC_LIDD_CS1_CONF_R_SU_SHIFT (0x0000000Cu)
  252. #define CSL_LCDC_LIDD_CS1_CONF_R_SU_RESETVAL (0x00000000u)
  253. #define CSL_LCDC_LIDD_CS1_CONF_R_STROBE_MASK (0x00000FC0u)
  254. #define CSL_LCDC_LIDD_CS1_CONF_R_STROBE_SHIFT (0x00000006u)
  255. #define CSL_LCDC_LIDD_CS1_CONF_R_STROBE_RESETVAL (0x00000001u)
  256. #define CSL_LCDC_LIDD_CS1_CONF_R_HOLD_MASK (0x0000003Cu)
  257. #define CSL_LCDC_LIDD_CS1_CONF_R_HOLD_SHIFT (0x00000002u)
  258. #define CSL_LCDC_LIDD_CS1_CONF_R_HOLD_RESETVAL (0x00000001u)
  259. #define CSL_LCDC_LIDD_CS1_CONF_TA_MASK (0x00000003u)
  260. #define CSL_LCDC_LIDD_CS1_CONF_TA_SHIFT (0x00000000u)
  261. #define CSL_LCDC_LIDD_CS1_CONF_TA_RESETVAL (0x00000000u)
  262. #define CSL_LCDC_LIDD_CS1_CONF_RESETVAL (0x00220044u)
  263. /* LIDD_CS1_ADDR */
  264. #define CSL_LCDC_LIDD_CS1_ADDR_ADR_INDX_MASK (0x0000FFFFu)
  265. #define CSL_LCDC_LIDD_CS1_ADDR_ADR_INDX_SHIFT (0x00000000u)
  266. #define CSL_LCDC_LIDD_CS1_ADDR_ADR_INDX_RESETVAL (0x00000000u)
  267. #define CSL_LCDC_LIDD_CS1_ADDR_RESETVAL (0x00000000u)
  268. /* LIDD_CS1_DATA */
  269. #define CSL_LCDC_LIDD_CS1_DATA_DATA_MASK (0x0000FFFFu)
  270. #define CSL_LCDC_LIDD_CS1_DATA_DATA_SHIFT (0x00000000u)
  271. #define CSL_LCDC_LIDD_CS1_DATA_DATA_RESETVAL (0x00000000u)
  272. #define CSL_LCDC_LIDD_CS1_DATA_RESETVAL (0x00000000u)
  273. /* RASTER_CTRL */
  274. #define CSL_LCDC_RASTER_CTRL_STN_565_MASK (0x01000000u)
  275. #define CSL_LCDC_RASTER_CTRL_STN_565_SHIFT (0x00000018u)
  276. #define CSL_LCDC_RASTER_CTRL_STN_565_RESETVAL (0x00000000u)
  277. /*----STN_565 Tokens----*/
  278. #define CSL_LCDC_RASTER_CTRL_STN_565_DISABLE (0x00000000u)
  279. #define CSL_LCDC_RASTER_CTRL_STN_565_ENABLE (0x00000001u)
  280. #define CSL_LCDC_RASTER_CTRL_TFT_ALT_MAP_MASK (0x00800000u)
  281. #define CSL_LCDC_RASTER_CTRL_TFT_ALT_MAP_SHIFT (0x00000017u)
  282. #define CSL_LCDC_RASTER_CTRL_TFT_ALT_MAP_RESETVAL (0x00000000u)
  283. /*----TFT_ALT_MAP Tokens----*/
  284. #define CSL_LCDC_RASTER_CTRL_TFT_ALT_MAP_444_DATA (0x00000000u)
  285. #define CSL_LCDC_RASTER_CTRL_TFT_ALT_MAP_565_DATA (0x00000001u)
  286. #define CSL_LCDC_RASTER_CTRL_NIB_MODE_MASK (0x00400000u)
  287. #define CSL_LCDC_RASTER_CTRL_NIB_MODE_SHIFT (0x00000016u)
  288. #define CSL_LCDC_RASTER_CTRL_NIB_MODE_RESETVAL (0x00000000u)
  289. /*----NIB_MODE Tokens----*/
  290. #define CSL_LCDC_RASTER_CTRL_NIB_MODE_DISABLE (0x00000000u)
  291. #define CSL_LCDC_RASTER_CTRL_NIB_MODE_ENABLE (0x00000001u)
  292. #define CSL_LCDC_RASTER_CTRL_PLM_MASK (0x00300000u)
  293. #define CSL_LCDC_RASTER_CTRL_PLM_SHIFT (0x00000014u)
  294. #define CSL_LCDC_RASTER_CTRL_PLM_RESETVAL (0x00000000u)
  295. /*----PLM Tokens----*/
  296. #define CSL_LCDC_RASTER_CTRL_PLM_PALETTE_DATA (0x00000000u)
  297. #define CSL_LCDC_RASTER_CTRL_PLM_PALETTE (0x00000001u)
  298. #define CSL_LCDC_RASTER_CTRL_PLM_DATA (0x00000002u)
  299. #define CSL_LCDC_RASTER_CTRL_PLM_DONOT_USE (0x00000003u)
  300. #define CSL_LCDC_RASTER_CTRL_FIFO_DMA_DELAY_MASK (0x000FF000u)
  301. #define CSL_LCDC_RASTER_CTRL_FIFO_DMA_DELAY_SHIFT (0x0000000Cu)
  302. #define CSL_LCDC_RASTER_CTRL_FIFO_DMA_DELAY_RESETVAL (0x00000000u)
  303. #define CSL_LCDC_RASTER_CTRL_MONO8B_MASK (0x00000200u)
  304. #define CSL_LCDC_RASTER_CTRL_MONO8B_SHIFT (0x00000009u)
  305. #define CSL_LCDC_RASTER_CTRL_MONO8B_RESETVAL (0x00000000u)
  306. /*----MONO8B Tokens----*/
  307. #define CSL_LCDC_RASTER_CTRL_MONO8B_4DATA_PIN (0x00000000u)
  308. #define CSL_LCDC_RASTER_CTRL_MONO8B_8DATA_PIN (0x00000001u)
  309. #define CSL_LCDC_RASTER_CTRL_RD_ORDER_MASK (0x00000100u)
  310. #define CSL_LCDC_RASTER_CTRL_RD_ORDER_SHIFT (0x00000008u)
  311. #define CSL_LCDC_RASTER_CTRL_RD_ORDER_RESETVAL (0x00000000u)
  312. /*----RD_ORDER Tokens----*/
  313. #define CSL_LCDC_RASTER_CTRL_RD_ORDER_LSBTOMSB (0x00000000u)
  314. #define CSL_LCDC_RASTER_CTRL_RD_ORDER_MSBTOLSB (0x00000001u)
  315. #define CSL_LCDC_RASTER_CTRL_TFT_STN_MASK (0x00000080u)
  316. #define CSL_LCDC_RASTER_CTRL_TFT_STN_SHIFT (0x00000007u)
  317. #define CSL_LCDC_RASTER_CTRL_TFT_STN_RESETVAL (0x00000000u)
  318. /*----TFT_STN Tokens----*/
  319. #define CSL_LCDC_RASTER_CTRL_TFT_STN_STN (0x00000000u)
  320. #define CSL_LCDC_RASTER_CTRL_TFT_STN_TFT (0x00000001u)
  321. #define CSL_LCDC_RASTER_CTRL_FUF_EN_MASK (0x00000040u)
  322. #define CSL_LCDC_RASTER_CTRL_FUF_EN_SHIFT (0x00000006u)
  323. #define CSL_LCDC_RASTER_CTRL_FUF_EN_RESETVAL (0x00000000u)
  324. /*----FUF_EN Tokens----*/
  325. #define CSL_LCDC_RASTER_CTRL_FUF_EN_DISABLE (0x00000000u)
  326. #define CSL_LCDC_RASTER_CTRL_FUF_EN_ENABLE (0x00000001u)
  327. #define CSL_LCDC_RASTER_CTRL_SL_EN_MASK (0x00000020u)
  328. #define CSL_LCDC_RASTER_CTRL_SL_EN_SHIFT (0x00000005u)
  329. #define CSL_LCDC_RASTER_CTRL_SL_EN_RESETVAL (0x00000000u)
  330. /*----SL_EN Tokens----*/
  331. #define CSL_LCDC_RASTER_CTRL_SL_EN_DISABLE (0x00000000u)
  332. #define CSL_LCDC_RASTER_CTRL_SL_EN_ENABLE (0x00000001u)
  333. #define CSL_LCDC_RASTER_CTRL_PL_EN_MASK (0x00000010u)
  334. #define CSL_LCDC_RASTER_CTRL_PL_EN_SHIFT (0x00000004u)
  335. #define CSL_LCDC_RASTER_CTRL_PL_EN_RESETVAL (0x00000000u)
  336. /*----PL_EN Tokens----*/
  337. #define CSL_LCDC_RASTER_CTRL_PL_EN_DISABLE (0x00000000u)
  338. #define CSL_LCDC_RASTER_CTRL_PL_EN_ENABLE (0x00000001u)
  339. #define CSL_LCDC_RASTER_CTRL_DONE_EN_MASK (0x00000008u)
  340. #define CSL_LCDC_RASTER_CTRL_DONE_EN_SHIFT (0x00000003u)
  341. #define CSL_LCDC_RASTER_CTRL_DONE_EN_RESETVAL (0x00000000u)
  342. /*----DONE_EN Tokens----*/
  343. #define CSL_LCDC_RASTER_CTRL_DONE_EN_DISABLE (0x00000000u)
  344. #define CSL_LCDC_RASTER_CTRL_DONE_EN_ENABLE (0x00000001u)
  345. #define CSL_LCDC_RASTER_CTRL_AC_EN_MASK (0x00000004u)
  346. #define CSL_LCDC_RASTER_CTRL_AC_EN_SHIFT (0x00000002u)
  347. #define CSL_LCDC_RASTER_CTRL_AC_EN_RESETVAL (0x00000000u)
  348. /*----AC_EN Tokens----*/
  349. #define CSL_LCDC_RASTER_CTRL_AC_EN_DISABLE (0x00000000u)
  350. #define CSL_LCDC_RASTER_CTRL_AC_EN_ENABLE (0x00000001u)
  351. #define CSL_LCDC_RASTER_CTRL_MONO_COLOR_MASK (0x00000002u)
  352. #define CSL_LCDC_RASTER_CTRL_MONO_COLOR_SHIFT (0x00000001u)
  353. #define CSL_LCDC_RASTER_CTRL_MONO_COLOR_RESETVAL (0x00000000u)
  354. /*----MONO_COLOR Tokens----*/
  355. #define CSL_LCDC_RASTER_CTRL_MONO_COLOR_COLOR (0x00000000u)
  356. #define CSL_LCDC_RASTER_CTRL_MONO_COLOR_MONOCHROME (0x00000001u)
  357. #define CSL_LCDC_RASTER_CTRL_RASTER_EN_MASK (0x00000001u)
  358. #define CSL_LCDC_RASTER_CTRL_RASTER_EN_SHIFT (0x00000000u)
  359. #define CSL_LCDC_RASTER_CTRL_RASTER_EN_RESETVAL (0x00000000u)
  360. /*----RASTER_EN Tokens----*/
  361. #define CSL_LCDC_RASTER_CTRL_RASTER_EN_DISABLE (0x00000000u)
  362. #define CSL_LCDC_RASTER_CTRL_RASTER_EN_ENABLE (0x00000001u)
  363. #define CSL_LCDC_RASTER_CTRL_RESETVAL (0x00000000u)
  364. /* RASTER_TIMING_0 */
  365. #define CSL_LCDC_RASTER_TIMING_0_HBP_MASK (0xFF000000u)
  366. #define CSL_LCDC_RASTER_TIMING_0_HBP_SHIFT (0x00000018u)
  367. #define CSL_LCDC_RASTER_TIMING_0_HBP_RESETVAL (0x00000000u)
  368. #define CSL_LCDC_RASTER_TIMING_0_HFP_MASK (0x00FF0000u)
  369. #define CSL_LCDC_RASTER_TIMING_0_HFP_SHIFT (0x00000010u)
  370. #define CSL_LCDC_RASTER_TIMING_0_HFP_RESETVAL (0x00000000u)
  371. #define CSL_LCDC_RASTER_TIMING_0_HSW_MASK (0x0000FC00u)
  372. #define CSL_LCDC_RASTER_TIMING_0_HSW_SHIFT (0x0000000Au)
  373. #define CSL_LCDC_RASTER_TIMING_0_HSW_RESETVAL (0x00000000u)
  374. #define CSL_LCDC_RASTER_TIMING_0_PPL_MASK (0x000003F0u)
  375. #define CSL_LCDC_RASTER_TIMING_0_PPL_SHIFT (0x00000004u)
  376. #define CSL_LCDC_RASTER_TIMING_0_PPL_RESETVAL (0x00000000u)
  377. #define CSL_LCDC_RASTER_TIMING_0_RESETVAL (0x00000000u)
  378. /* RASTER_TIMING_1 */
  379. #define CSL_LCDC_RASTER_TIMING_1_VBP_MASK (0xFF000000u)
  380. #define CSL_LCDC_RASTER_TIMING_1_VBP_SHIFT (0x00000018u)
  381. #define CSL_LCDC_RASTER_TIMING_1_VBP_RESETVAL (0x00000000u)
  382. #define CSL_LCDC_RASTER_TIMING_1_VFP_MASK (0x00FF0000u)
  383. #define CSL_LCDC_RASTER_TIMING_1_VFP_SHIFT (0x00000010u)
  384. #define CSL_LCDC_RASTER_TIMING_1_VFP_RESETVAL (0x00000000u)
  385. #define CSL_LCDC_RASTER_TIMING_1_VSW_MASK (0x0000FC00u)
  386. #define CSL_LCDC_RASTER_TIMING_1_VSW_SHIFT (0x0000000Au)
  387. #define CSL_LCDC_RASTER_TIMING_1_VSW_RESETVAL (0x00000000u)
  388. #define CSL_LCDC_RASTER_TIMING_1_LPP_MASK (0x000003FFu)
  389. #define CSL_LCDC_RASTER_TIMING_1_LPP_SHIFT (0x00000000u)
  390. #define CSL_LCDC_RASTER_TIMING_1_LPP_RESETVAL (0x00000000u)
  391. #define CSL_LCDC_RASTER_TIMING_1_RESETVAL (0x00000000u)
  392. /* RASTER_TIMING_2 */
  393. #define CSL_LCDC_RASTER_TIMING_2_SYNC_CTRL_MASK (0x02000000u)
  394. #define CSL_LCDC_RASTER_TIMING_2_SYNC_CTRL_SHIFT (0x00000019u)
  395. #define CSL_LCDC_RASTER_TIMING_2_SYNC_CTRL_RESETVAL (0x00000000u)
  396. /*----SYNC_CTRL Tokens----*/
  397. #define CSL_LCDC_RASTER_TIMING_2_SYNC_CTRL_INACTIVE (0x00000000u)
  398. #define CSL_LCDC_RASTER_TIMING_2_SYNC_CTRL_ACTIVE (0x00000001u)
  399. #define CSL_LCDC_RASTER_TIMING_2_SYNC_EDGE_MASK (0x01000000u)
  400. #define CSL_LCDC_RASTER_TIMING_2_SYNC_EDGE_SHIFT (0x00000018u)
  401. #define CSL_LCDC_RASTER_TIMING_2_SYNC_EDGE_RESETVAL (0x00000000u)
  402. /*----SYNC_EDGE Tokens----*/
  403. #define CSL_LCDC_RASTER_TIMING_2_SYNC_EDGE_RISING (0x00000000u)
  404. #define CSL_LCDC_RASTER_TIMING_2_SYNC_EDGE_FALLING (0x00000001u)
  405. #define CSL_LCDC_RASTER_TIMING_2_BIAS_MASK (0x00800000u)
  406. #define CSL_LCDC_RASTER_TIMING_2_BIAS_SHIFT (0x00000017u)
  407. #define CSL_LCDC_RASTER_TIMING_2_BIAS_RESETVAL (0x00000000u)
  408. /*----BIAS Tokens----*/
  409. #define CSL_LCDC_RASTER_TIMING_2_BIAS_ACTIVE_HIGH (0x00000000u)
  410. #define CSL_LCDC_RASTER_TIMING_2_BIAS_ACTIVE_LOW (0x00000001u)
  411. #define CSL_LCDC_RASTER_TIMING_2_IPC_MASK (0x00400000u)
  412. #define CSL_LCDC_RASTER_TIMING_2_IPC_SHIFT (0x00000016u)
  413. #define CSL_LCDC_RASTER_TIMING_2_IPC_RESETVAL (0x00000000u)
  414. /*----IPC Tokens----*/
  415. #define CSL_LCDC_RASTER_TIMING_2_IPC_RISING (0x00000000u)
  416. #define CSL_LCDC_RASTER_TIMING_2_IPC_FALLING (0x00000001u)
  417. #define CSL_LCDC_RASTER_TIMING_2_IHS_MASK (0x00200000u)
  418. #define CSL_LCDC_RASTER_TIMING_2_IHS_SHIFT (0x00000015u)
  419. #define CSL_LCDC_RASTER_TIMING_2_IHS_RESETVAL (0x00000000u)
  420. /*----IHS Tokens----*/
  421. #define CSL_LCDC_RASTER_TIMING_2_IHS_ACTIVE_HIGH (0x00000000u)
  422. #define CSL_LCDC_RASTER_TIMING_2_IHS_ACTIVE_LOW (0x00000001u)
  423. #define CSL_LCDC_RASTER_TIMING_2_IVS_MASK (0x00100000u)
  424. #define CSL_LCDC_RASTER_TIMING_2_IVS_SHIFT (0x00000014u)
  425. #define CSL_LCDC_RASTER_TIMING_2_IVS_RESETVAL (0x00000000u)
  426. /*----IVS Tokens----*/
  427. #define CSL_LCDC_RASTER_TIMING_2_IVS_ACTIVE_HIGH (0x00000000u)
  428. #define CSL_LCDC_RASTER_TIMING_2_IVS_ACTIVE_LOW (0x00000001u)
  429. #define CSL_LCDC_RASTER_TIMING_2_ACB_I_MASK (0x000F0000u)
  430. #define CSL_LCDC_RASTER_TIMING_2_ACB_I_SHIFT (0x00000010u)
  431. #define CSL_LCDC_RASTER_TIMING_2_ACB_I_RESETVAL (0x00000000u)
  432. #define CSL_LCDC_RASTER_TIMING_2_ACB_MASK (0x0000FF00u)
  433. #define CSL_LCDC_RASTER_TIMING_2_ACB_SHIFT (0x00000008u)
  434. #define CSL_LCDC_RASTER_TIMING_2_ACB_RESETVAL (0x00000000u)
  435. #define CSL_LCDC_RASTER_TIMING_2_RESETVAL (0x00000000u)
  436. /* RASTER_SUBPANEL */
  437. #define CSL_LCDC_RASTER_SUBPANEL_SPEN_MASK (0x80000000u)
  438. #define CSL_LCDC_RASTER_SUBPANEL_SPEN_SHIFT (0x0000001Fu)
  439. #define CSL_LCDC_RASTER_SUBPANEL_SPEN_RESETVAL (0x00000000u)
  440. /*----SPEN Tokens----*/
  441. #define CSL_LCDC_RASTER_SUBPANEL_SPEN_DISABLE (0x00000000u)
  442. #define CSL_LCDC_RASTER_SUBPANEL_SPEN_ENABLE (0x00000001u)
  443. #define CSL_LCDC_RASTER_SUBPANEL_HOLS_MASK (0x20000000u)
  444. #define CSL_LCDC_RASTER_SUBPANEL_HOLS_SHIFT (0x0000001Du)
  445. #define CSL_LCDC_RASTER_SUBPANEL_HOLS_RESETVAL (0x00000000u)
  446. /*----HOLS Tokens----*/
  447. #define CSL_LCDC_RASTER_SUBPANEL_HOLS_LOW (0x00000000u)
  448. #define CSL_LCDC_RASTER_SUBPANEL_HOLS_HIGH (0x00000001u)
  449. #define CSL_LCDC_RASTER_SUBPANEL_LPPT_MASK (0x03FF0000u)
  450. #define CSL_LCDC_RASTER_SUBPANEL_LPPT_SHIFT (0x00000010u)
  451. #define CSL_LCDC_RASTER_SUBPANEL_LPPT_RESETVAL (0x00000000u)
  452. #define CSL_LCDC_RASTER_SUBPANEL_DPD_MASK (0x0000FFF0u)
  453. #define CSL_LCDC_RASTER_SUBPANEL_DPD_SHIFT (0x00000004u)
  454. #define CSL_LCDC_RASTER_SUBPANEL_DPD_RESETVAL (0x00000000u)
  455. #define CSL_LCDC_RASTER_SUBPANEL_RESETVAL (0x00000000u)
  456. /* LCDDMA_CTRL */
  457. #define CSL_LCDC_LCDDMA_CTRL_BURST_SIZE_MASK (0x00000070u)
  458. #define CSL_LCDC_LCDDMA_CTRL_BURST_SIZE_SHIFT (0x00000004u)
  459. #define CSL_LCDC_LCDDMA_CTRL_BURST_SIZE_RESETVAL (0x00000000u)
  460. /*----BURST_SIZE Tokens----*/
  461. #define CSL_LCDC_LCDDMA_CTRL_BURST_SIZE_ONE (0x00000000u)
  462. #define CSL_LCDC_LCDDMA_CTRL_BURST_SIZE_TWO (0x00000001u)
  463. #define CSL_LCDC_LCDDMA_CTRL_BURST_SIZE_FOUR (0x00000002u)
  464. #define CSL_LCDC_LCDDMA_CTRL_BURST_SIZE_EIGHT (0x00000003u)
  465. #define CSL_LCDC_LCDDMA_CTRL_BURST_SIZE_SIXTEEN (0x00000004u)
  466. #define CSL_LCDC_LCDDMA_CTRL_EOF_INTEN_MASK (0x00000004u)
  467. #define CSL_LCDC_LCDDMA_CTRL_EOF_INTEN_SHIFT (0x00000002u)
  468. #define CSL_LCDC_LCDDMA_CTRL_EOF_INTEN_RESETVAL (0x00000000u)
  469. /*----EOF_INTEN Tokens----*/
  470. #define CSL_LCDC_LCDDMA_CTRL_EOF_INTEN_DISABLE (0x00000000u)
  471. #define CSL_LCDC_LCDDMA_CTRL_EOF_INTEN_ENABLE (0x00000001u)
  472. #define CSL_LCDC_LCDDMA_CTRL_BIGENDIAN_MASK (0x00000002u)
  473. #define CSL_LCDC_LCDDMA_CTRL_BIGENDIAN_SHIFT (0x00000001u)
  474. #define CSL_LCDC_LCDDMA_CTRL_BIGENDIAN_RESETVAL (0x00000000u)
  475. /*----BIGENDIAN Tokens----*/
  476. #define CSL_LCDC_LCDDMA_CTRL_BIGENDIAN_DISABLE (0x00000000u)
  477. #define CSL_LCDC_LCDDMA_CTRL_BIGENDIAN_ENABLE (0x00000001u)
  478. #define CSL_LCDC_LCDDMA_CTRL_FRAME_MODE_MASK (0x00000001u)
  479. #define CSL_LCDC_LCDDMA_CTRL_FRAME_MODE_SHIFT (0x00000000u)
  480. #define CSL_LCDC_LCDDMA_CTRL_FRAME_MODE_RESETVAL (0x00000000u)
  481. /*----FRAME_MODE Tokens----*/
  482. #define CSL_LCDC_LCDDMA_CTRL_FRAME_MODE_ONE_FB (0x00000000u)
  483. #define CSL_LCDC_LCDDMA_CTRL_FRAME_MODE_TWO_FB (0x00000001u)
  484. #define CSL_LCDC_LCDDMA_CTRL_RESETVAL (0x00000000u)
  485. /* LCDDMA_FB0_BASE */
  486. #define CSL_LCDC_LCDDMA_FB0_BASE_FB0_BASE_MASK (0xFFFFFFFFu)
  487. #define CSL_LCDC_LCDDMA_FB0_BASE_FB0_BASE_SHIFT (0x00000000u)
  488. #define CSL_LCDC_LCDDMA_FB0_BASE_FB0_BASE_RESETVAL (0x00000000u)
  489. #define CSL_LCDC_LCDDMA_FB0_BASE_RESETVAL (0x00000000u)
  490. /* LCDDMA_FB0_CEILING */
  491. #define CSL_LCDC_LCDDMA_FB0_CEILING_FB0_CEIL_MASK (0xFFFFFFFFu)
  492. #define CSL_LCDC_LCDDMA_FB0_CEILING_FB0_CEIL_SHIFT (0x00000000u)
  493. #define CSL_LCDC_LCDDMA_FB0_CEILING_FB0_CEIL_RESETVAL (0x00000000u)
  494. #define CSL_LCDC_LCDDMA_FB0_CEILING_RESETVAL (0x00000000u)
  495. /* LCDDMA_FB1_BASE */
  496. #define CSL_LCDC_LCDDMA_FB1_BASE_FB1_BASE_MASK (0xFFFFFFFFu)
  497. #define CSL_LCDC_LCDDMA_FB1_BASE_FB1_BASE_SHIFT (0x00000000u)
  498. #define CSL_LCDC_LCDDMA_FB1_BASE_FB1_BASE_RESETVAL (0x00000000u)
  499. #define CSL_LCDC_LCDDMA_FB1_BASE_RESETVAL (0x00000000u)
  500. /* LCDDMA_FB1_CEILING */
  501. #define CSL_LCDC_LCDDMA_FB1_CEILING_FB1_CEIL_MASK (0xFFFFFFFFu)
  502. #define CSL_LCDC_LCDDMA_FB1_CEILING_FB1_CEIL_SHIFT (0x00000000u)
  503. #define CSL_LCDC_LCDDMA_FB1_CEILING_FB1_CEIL_RESETVAL (0x00000000u)
  504. #define CSL_LCDC_LCDDMA_FB1_CEILING_RESETVAL (0x00000000u)
  505. #ifdef __cplusplus
  506. }
  507. #endif
  508. #endif