162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci#ifndef __PXA168FB_H__ 362306a36Sopenharmony_ci#define __PXA168FB_H__ 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci/* ------------< LCD register >------------ */ 662306a36Sopenharmony_ci/* Video Frame 0&1 start address registers */ 762306a36Sopenharmony_ci#define LCD_SPU_DMA_START_ADDR_Y0 0x00C0 862306a36Sopenharmony_ci#define LCD_SPU_DMA_START_ADDR_U0 0x00C4 962306a36Sopenharmony_ci#define LCD_SPU_DMA_START_ADDR_V0 0x00C8 1062306a36Sopenharmony_ci#define LCD_CFG_DMA_START_ADDR_0 0x00CC /* Cmd address */ 1162306a36Sopenharmony_ci#define LCD_SPU_DMA_START_ADDR_Y1 0x00D0 1262306a36Sopenharmony_ci#define LCD_SPU_DMA_START_ADDR_U1 0x00D4 1362306a36Sopenharmony_ci#define LCD_SPU_DMA_START_ADDR_V1 0x00D8 1462306a36Sopenharmony_ci#define LCD_CFG_DMA_START_ADDR_1 0x00DC /* Cmd address */ 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_ci/* YC & UV Pitch */ 1762306a36Sopenharmony_ci#define LCD_SPU_DMA_PITCH_YC 0x00E0 1862306a36Sopenharmony_ci#define SPU_DMA_PITCH_C(c) ((c) << 16) 1962306a36Sopenharmony_ci#define SPU_DMA_PITCH_Y(y) (y) 2062306a36Sopenharmony_ci#define LCD_SPU_DMA_PITCH_UV 0x00E4 2162306a36Sopenharmony_ci#define SPU_DMA_PITCH_V(v) ((v) << 16) 2262306a36Sopenharmony_ci#define SPU_DMA_PITCH_U(u) (u) 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ci/* Video Starting Point on Screen Register */ 2562306a36Sopenharmony_ci#define LCD_SPUT_DMA_OVSA_HPXL_VLN 0x00E8 2662306a36Sopenharmony_ci#define CFG_DMA_OVSA_VLN(y) ((y) << 16) /* 0~0xfff */ 2762306a36Sopenharmony_ci#define CFG_DMA_OVSA_HPXL(x) (x) /* 0~0xfff */ 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ci/* Video Size Register */ 3062306a36Sopenharmony_ci#define LCD_SPU_DMA_HPXL_VLN 0x00EC 3162306a36Sopenharmony_ci#define CFG_DMA_VLN(y) ((y) << 16) 3262306a36Sopenharmony_ci#define CFG_DMA_HPXL(x) (x) 3362306a36Sopenharmony_ci 3462306a36Sopenharmony_ci/* Video Size After zooming Register */ 3562306a36Sopenharmony_ci#define LCD_SPU_DZM_HPXL_VLN 0x00F0 3662306a36Sopenharmony_ci#define CFG_DZM_VLN(y) ((y) << 16) 3762306a36Sopenharmony_ci#define CFG_DZM_HPXL(x) (x) 3862306a36Sopenharmony_ci 3962306a36Sopenharmony_ci/* Graphic Frame 0&1 Starting Address Register */ 4062306a36Sopenharmony_ci#define LCD_CFG_GRA_START_ADDR0 0x00F4 4162306a36Sopenharmony_ci#define LCD_CFG_GRA_START_ADDR1 0x00F8 4262306a36Sopenharmony_ci 4362306a36Sopenharmony_ci/* Graphic Frame Pitch */ 4462306a36Sopenharmony_ci#define LCD_CFG_GRA_PITCH 0x00FC 4562306a36Sopenharmony_ci 4662306a36Sopenharmony_ci/* Graphic Starting Point on Screen Register */ 4762306a36Sopenharmony_ci#define LCD_SPU_GRA_OVSA_HPXL_VLN 0x0100 4862306a36Sopenharmony_ci#define CFG_GRA_OVSA_VLN(y) ((y) << 16) 4962306a36Sopenharmony_ci#define CFG_GRA_OVSA_HPXL(x) (x) 5062306a36Sopenharmony_ci 5162306a36Sopenharmony_ci/* Graphic Size Register */ 5262306a36Sopenharmony_ci#define LCD_SPU_GRA_HPXL_VLN 0x0104 5362306a36Sopenharmony_ci#define CFG_GRA_VLN(y) ((y) << 16) 5462306a36Sopenharmony_ci#define CFG_GRA_HPXL(x) (x) 5562306a36Sopenharmony_ci 5662306a36Sopenharmony_ci/* Graphic Size after Zooming Register */ 5762306a36Sopenharmony_ci#define LCD_SPU_GZM_HPXL_VLN 0x0108 5862306a36Sopenharmony_ci#define CFG_GZM_VLN(y) ((y) << 16) 5962306a36Sopenharmony_ci#define CFG_GZM_HPXL(x) (x) 6062306a36Sopenharmony_ci 6162306a36Sopenharmony_ci/* HW Cursor Starting Point on Screen Register */ 6262306a36Sopenharmony_ci#define LCD_SPU_HWC_OVSA_HPXL_VLN 0x010C 6362306a36Sopenharmony_ci#define CFG_HWC_OVSA_VLN(y) ((y) << 16) 6462306a36Sopenharmony_ci#define CFG_HWC_OVSA_HPXL(x) (x) 6562306a36Sopenharmony_ci 6662306a36Sopenharmony_ci/* HW Cursor Size */ 6762306a36Sopenharmony_ci#define LCD_SPU_HWC_HPXL_VLN 0x0110 6862306a36Sopenharmony_ci#define CFG_HWC_VLN(y) ((y) << 16) 6962306a36Sopenharmony_ci#define CFG_HWC_HPXL(x) (x) 7062306a36Sopenharmony_ci 7162306a36Sopenharmony_ci/* Total Screen Size Register */ 7262306a36Sopenharmony_ci#define LCD_SPUT_V_H_TOTAL 0x0114 7362306a36Sopenharmony_ci#define CFG_V_TOTAL(y) ((y) << 16) 7462306a36Sopenharmony_ci#define CFG_H_TOTAL(x) (x) 7562306a36Sopenharmony_ci 7662306a36Sopenharmony_ci/* Total Screen Active Size Register */ 7762306a36Sopenharmony_ci#define LCD_SPU_V_H_ACTIVE 0x0118 7862306a36Sopenharmony_ci#define CFG_V_ACTIVE(y) ((y) << 16) 7962306a36Sopenharmony_ci#define CFG_H_ACTIVE(x) (x) 8062306a36Sopenharmony_ci 8162306a36Sopenharmony_ci/* Screen H&V Porch Register */ 8262306a36Sopenharmony_ci#define LCD_SPU_H_PORCH 0x011C 8362306a36Sopenharmony_ci#define CFG_H_BACK_PORCH(b) ((b) << 16) 8462306a36Sopenharmony_ci#define CFG_H_FRONT_PORCH(f) (f) 8562306a36Sopenharmony_ci#define LCD_SPU_V_PORCH 0x0120 8662306a36Sopenharmony_ci#define CFG_V_BACK_PORCH(b) ((b) << 16) 8762306a36Sopenharmony_ci#define CFG_V_FRONT_PORCH(f) (f) 8862306a36Sopenharmony_ci 8962306a36Sopenharmony_ci/* Screen Blank Color Register */ 9062306a36Sopenharmony_ci#define LCD_SPU_BLANKCOLOR 0x0124 9162306a36Sopenharmony_ci#define CFG_BLANKCOLOR_MASK 0x00FFFFFF 9262306a36Sopenharmony_ci#define CFG_BLANKCOLOR_R_MASK 0x000000FF 9362306a36Sopenharmony_ci#define CFG_BLANKCOLOR_G_MASK 0x0000FF00 9462306a36Sopenharmony_ci#define CFG_BLANKCOLOR_B_MASK 0x00FF0000 9562306a36Sopenharmony_ci 9662306a36Sopenharmony_ci/* HW Cursor Color 1&2 Register */ 9762306a36Sopenharmony_ci#define LCD_SPU_ALPHA_COLOR1 0x0128 9862306a36Sopenharmony_ci#define CFG_HWC_COLOR1 0x00FFFFFF 9962306a36Sopenharmony_ci#define CFG_HWC_COLOR1_R(red) ((red) << 16) 10062306a36Sopenharmony_ci#define CFG_HWC_COLOR1_G(green) ((green) << 8) 10162306a36Sopenharmony_ci#define CFG_HWC_COLOR1_B(blue) (blue) 10262306a36Sopenharmony_ci#define CFG_HWC_COLOR1_R_MASK 0x000000FF 10362306a36Sopenharmony_ci#define CFG_HWC_COLOR1_G_MASK 0x0000FF00 10462306a36Sopenharmony_ci#define CFG_HWC_COLOR1_B_MASK 0x00FF0000 10562306a36Sopenharmony_ci#define LCD_SPU_ALPHA_COLOR2 0x012C 10662306a36Sopenharmony_ci#define CFG_HWC_COLOR2 0x00FFFFFF 10762306a36Sopenharmony_ci#define CFG_HWC_COLOR2_R_MASK 0x000000FF 10862306a36Sopenharmony_ci#define CFG_HWC_COLOR2_G_MASK 0x0000FF00 10962306a36Sopenharmony_ci#define CFG_HWC_COLOR2_B_MASK 0x00FF0000 11062306a36Sopenharmony_ci 11162306a36Sopenharmony_ci/* Video YUV Color Key Control */ 11262306a36Sopenharmony_ci#define LCD_SPU_COLORKEY_Y 0x0130 11362306a36Sopenharmony_ci#define CFG_CKEY_Y2(y2) ((y2) << 24) 11462306a36Sopenharmony_ci#define CFG_CKEY_Y2_MASK 0xFF000000 11562306a36Sopenharmony_ci#define CFG_CKEY_Y1(y1) ((y1) << 16) 11662306a36Sopenharmony_ci#define CFG_CKEY_Y1_MASK 0x00FF0000 11762306a36Sopenharmony_ci#define CFG_CKEY_Y(y) ((y) << 8) 11862306a36Sopenharmony_ci#define CFG_CKEY_Y_MASK 0x0000FF00 11962306a36Sopenharmony_ci#define CFG_ALPHA_Y(y) (y) 12062306a36Sopenharmony_ci#define CFG_ALPHA_Y_MASK 0x000000FF 12162306a36Sopenharmony_ci#define LCD_SPU_COLORKEY_U 0x0134 12262306a36Sopenharmony_ci#define CFG_CKEY_U2(u2) ((u2) << 24) 12362306a36Sopenharmony_ci#define CFG_CKEY_U2_MASK 0xFF000000 12462306a36Sopenharmony_ci#define CFG_CKEY_U1(u1) ((u1) << 16) 12562306a36Sopenharmony_ci#define CFG_CKEY_U1_MASK 0x00FF0000 12662306a36Sopenharmony_ci#define CFG_CKEY_U(u) ((u) << 8) 12762306a36Sopenharmony_ci#define CFG_CKEY_U_MASK 0x0000FF00 12862306a36Sopenharmony_ci#define CFG_ALPHA_U(u) (u) 12962306a36Sopenharmony_ci#define CFG_ALPHA_U_MASK 0x000000FF 13062306a36Sopenharmony_ci#define LCD_SPU_COLORKEY_V 0x0138 13162306a36Sopenharmony_ci#define CFG_CKEY_V2(v2) ((v2) << 24) 13262306a36Sopenharmony_ci#define CFG_CKEY_V2_MASK 0xFF000000 13362306a36Sopenharmony_ci#define CFG_CKEY_V1(v1) ((v1) << 16) 13462306a36Sopenharmony_ci#define CFG_CKEY_V1_MASK 0x00FF0000 13562306a36Sopenharmony_ci#define CFG_CKEY_V(v) ((v) << 8) 13662306a36Sopenharmony_ci#define CFG_CKEY_V_MASK 0x0000FF00 13762306a36Sopenharmony_ci#define CFG_ALPHA_V(v) (v) 13862306a36Sopenharmony_ci#define CFG_ALPHA_V_MASK 0x000000FF 13962306a36Sopenharmony_ci 14062306a36Sopenharmony_ci/* SPI Read Data Register */ 14162306a36Sopenharmony_ci#define LCD_SPU_SPI_RXDATA 0x0140 14262306a36Sopenharmony_ci 14362306a36Sopenharmony_ci/* Smart Panel Read Data Register */ 14462306a36Sopenharmony_ci#define LCD_SPU_ISA_RSDATA 0x0144 14562306a36Sopenharmony_ci#define ISA_RXDATA_16BIT_1_DATA_MASK 0x000000FF 14662306a36Sopenharmony_ci#define ISA_RXDATA_16BIT_2_DATA_MASK 0x0000FF00 14762306a36Sopenharmony_ci#define ISA_RXDATA_16BIT_3_DATA_MASK 0x00FF0000 14862306a36Sopenharmony_ci#define ISA_RXDATA_16BIT_4_DATA_MASK 0xFF000000 14962306a36Sopenharmony_ci#define ISA_RXDATA_32BIT_1_DATA_MASK 0x00FFFFFF 15062306a36Sopenharmony_ci 15162306a36Sopenharmony_ci/* HWC SRAM Read Data Register */ 15262306a36Sopenharmony_ci#define LCD_SPU_HWC_RDDAT 0x0158 15362306a36Sopenharmony_ci 15462306a36Sopenharmony_ci/* Gamma Table SRAM Read Data Register */ 15562306a36Sopenharmony_ci#define LCD_SPU_GAMMA_RDDAT 0x015c 15662306a36Sopenharmony_ci#define CFG_GAMMA_RDDAT_MASK 0x000000FF 15762306a36Sopenharmony_ci 15862306a36Sopenharmony_ci/* Palette Table SRAM Read Data Register */ 15962306a36Sopenharmony_ci#define LCD_SPU_PALETTE_RDDAT 0x0160 16062306a36Sopenharmony_ci#define CFG_PALETTE_RDDAT_MASK 0x00FFFFFF 16162306a36Sopenharmony_ci 16262306a36Sopenharmony_ci/* I/O Pads Input Read Only Register */ 16362306a36Sopenharmony_ci#define LCD_SPU_IOPAD_IN 0x0178 16462306a36Sopenharmony_ci#define CFG_IOPAD_IN_MASK 0x0FFFFFFF 16562306a36Sopenharmony_ci 16662306a36Sopenharmony_ci/* Reserved Read Only Registers */ 16762306a36Sopenharmony_ci#define LCD_CFG_RDREG5F 0x017C 16862306a36Sopenharmony_ci#define IRE_FRAME_CNT_MASK 0x000000C0 16962306a36Sopenharmony_ci#define IPE_FRAME_CNT_MASK 0x00000030 17062306a36Sopenharmony_ci#define GRA_FRAME_CNT_MASK 0x0000000C /* Graphic */ 17162306a36Sopenharmony_ci#define DMA_FRAME_CNT_MASK 0x00000003 /* Video */ 17262306a36Sopenharmony_ci 17362306a36Sopenharmony_ci/* SPI Control Register. */ 17462306a36Sopenharmony_ci#define LCD_SPU_SPI_CTRL 0x0180 17562306a36Sopenharmony_ci#define CFG_SCLKCNT(div) ((div) << 24) /* 0xFF~0x2 */ 17662306a36Sopenharmony_ci#define CFG_SCLKCNT_MASK 0xFF000000 17762306a36Sopenharmony_ci#define CFG_RXBITS(rx) ((rx) << 16) /* 0x1F~0x1 */ 17862306a36Sopenharmony_ci#define CFG_RXBITS_MASK 0x00FF0000 17962306a36Sopenharmony_ci#define CFG_TXBITS(tx) ((tx) << 8) /* 0x1F~0x1 */ 18062306a36Sopenharmony_ci#define CFG_TXBITS_MASK 0x0000FF00 18162306a36Sopenharmony_ci#define CFG_CLKINV(clk) ((clk) << 7) 18262306a36Sopenharmony_ci#define CFG_CLKINV_MASK 0x00000080 18362306a36Sopenharmony_ci#define CFG_KEEPXFER(transfer) ((transfer) << 6) 18462306a36Sopenharmony_ci#define CFG_KEEPXFER_MASK 0x00000040 18562306a36Sopenharmony_ci#define CFG_RXBITSTO0(rx) ((rx) << 5) 18662306a36Sopenharmony_ci#define CFG_RXBITSTO0_MASK 0x00000020 18762306a36Sopenharmony_ci#define CFG_TXBITSTO0(tx) ((tx) << 4) 18862306a36Sopenharmony_ci#define CFG_TXBITSTO0_MASK 0x00000010 18962306a36Sopenharmony_ci#define CFG_SPI_ENA(spi) ((spi) << 3) 19062306a36Sopenharmony_ci#define CFG_SPI_ENA_MASK 0x00000008 19162306a36Sopenharmony_ci#define CFG_SPI_SEL(spi) ((spi) << 2) 19262306a36Sopenharmony_ci#define CFG_SPI_SEL_MASK 0x00000004 19362306a36Sopenharmony_ci#define CFG_SPI_3W4WB(wire) ((wire) << 1) 19462306a36Sopenharmony_ci#define CFG_SPI_3W4WB_MASK 0x00000002 19562306a36Sopenharmony_ci#define CFG_SPI_START(start) (start) 19662306a36Sopenharmony_ci#define CFG_SPI_START_MASK 0x00000001 19762306a36Sopenharmony_ci 19862306a36Sopenharmony_ci/* SPI Tx Data Register */ 19962306a36Sopenharmony_ci#define LCD_SPU_SPI_TXDATA 0x0184 20062306a36Sopenharmony_ci 20162306a36Sopenharmony_ci/* 20262306a36Sopenharmony_ci 1. Smart Pannel 8-bit Bus Control Register. 20362306a36Sopenharmony_ci 2. AHB Slave Path Data Port Register 20462306a36Sopenharmony_ci*/ 20562306a36Sopenharmony_ci#define LCD_SPU_SMPN_CTRL 0x0188 20662306a36Sopenharmony_ci 20762306a36Sopenharmony_ci/* DMA Control 0 Register */ 20862306a36Sopenharmony_ci#define LCD_SPU_DMA_CTRL0 0x0190 20962306a36Sopenharmony_ci#define CFG_NOBLENDING(nb) ((nb) << 31) 21062306a36Sopenharmony_ci#define CFG_NOBLENDING_MASK 0x80000000 21162306a36Sopenharmony_ci#define CFG_GAMMA_ENA(gn) ((gn) << 30) 21262306a36Sopenharmony_ci#define CFG_GAMMA_ENA_MASK 0x40000000 21362306a36Sopenharmony_ci#define CFG_CBSH_ENA(cn) ((cn) << 29) 21462306a36Sopenharmony_ci#define CFG_CBSH_ENA_MASK 0x20000000 21562306a36Sopenharmony_ci#define CFG_PALETTE_ENA(pn) ((pn) << 28) 21662306a36Sopenharmony_ci#define CFG_PALETTE_ENA_MASK 0x10000000 21762306a36Sopenharmony_ci#define CFG_ARBFAST_ENA(an) ((an) << 27) 21862306a36Sopenharmony_ci#define CFG_ARBFAST_ENA_MASK 0x08000000 21962306a36Sopenharmony_ci#define CFG_HWC_1BITMOD(mode) ((mode) << 26) 22062306a36Sopenharmony_ci#define CFG_HWC_1BITMOD_MASK 0x04000000 22162306a36Sopenharmony_ci#define CFG_HWC_1BITENA(mn) ((mn) << 25) 22262306a36Sopenharmony_ci#define CFG_HWC_1BITENA_MASK 0x02000000 22362306a36Sopenharmony_ci#define CFG_HWC_ENA(cn) ((cn) << 24) 22462306a36Sopenharmony_ci#define CFG_HWC_ENA_MASK 0x01000000 22562306a36Sopenharmony_ci#define CFG_DMAFORMAT(dmaformat) ((dmaformat) << 20) 22662306a36Sopenharmony_ci#define CFG_DMAFORMAT_MASK 0x00F00000 22762306a36Sopenharmony_ci#define CFG_GRAFORMAT(graformat) ((graformat) << 16) 22862306a36Sopenharmony_ci#define CFG_GRAFORMAT_MASK 0x000F0000 22962306a36Sopenharmony_ci/* for graphic part */ 23062306a36Sopenharmony_ci#define CFG_GRA_FTOGGLE(toggle) ((toggle) << 15) 23162306a36Sopenharmony_ci#define CFG_GRA_FTOGGLE_MASK 0x00008000 23262306a36Sopenharmony_ci#define CFG_GRA_HSMOOTH(smooth) ((smooth) << 14) 23362306a36Sopenharmony_ci#define CFG_GRA_HSMOOTH_MASK 0x00004000 23462306a36Sopenharmony_ci#define CFG_GRA_TSTMODE(test) ((test) << 13) 23562306a36Sopenharmony_ci#define CFG_GRA_TSTMODE_MASK 0x00002000 23662306a36Sopenharmony_ci#define CFG_GRA_SWAPRB(swap) ((swap) << 12) 23762306a36Sopenharmony_ci#define CFG_GRA_SWAPRB_MASK 0x00001000 23862306a36Sopenharmony_ci#define CFG_GRA_SWAPUV(swap) ((swap) << 11) 23962306a36Sopenharmony_ci#define CFG_GRA_SWAPUV_MASK 0x00000800 24062306a36Sopenharmony_ci#define CFG_GRA_SWAPYU(swap) ((swap) << 10) 24162306a36Sopenharmony_ci#define CFG_GRA_SWAPYU_MASK 0x00000400 24262306a36Sopenharmony_ci#define CFG_YUV2RGB_GRA(cvrt) ((cvrt) << 9) 24362306a36Sopenharmony_ci#define CFG_YUV2RGB_GRA_MASK 0x00000200 24462306a36Sopenharmony_ci#define CFG_GRA_ENA(gra) ((gra) << 8) 24562306a36Sopenharmony_ci#define CFG_GRA_ENA_MASK 0x00000100 24662306a36Sopenharmony_ci/* for video part */ 24762306a36Sopenharmony_ci#define CFG_DMA_FTOGGLE(toggle) ((toggle) << 7) 24862306a36Sopenharmony_ci#define CFG_DMA_FTOGGLE_MASK 0x00000080 24962306a36Sopenharmony_ci#define CFG_DMA_HSMOOTH(smooth) ((smooth) << 6) 25062306a36Sopenharmony_ci#define CFG_DMA_HSMOOTH_MASK 0x00000040 25162306a36Sopenharmony_ci#define CFG_DMA_TSTMODE(test) ((test) << 5) 25262306a36Sopenharmony_ci#define CFG_DMA_TSTMODE_MASK 0x00000020 25362306a36Sopenharmony_ci#define CFG_DMA_SWAPRB(swap) ((swap) << 4) 25462306a36Sopenharmony_ci#define CFG_DMA_SWAPRB_MASK 0x00000010 25562306a36Sopenharmony_ci#define CFG_DMA_SWAPUV(swap) ((swap) << 3) 25662306a36Sopenharmony_ci#define CFG_DMA_SWAPUV_MASK 0x00000008 25762306a36Sopenharmony_ci#define CFG_DMA_SWAPYU(swap) ((swap) << 2) 25862306a36Sopenharmony_ci#define CFG_DMA_SWAPYU_MASK 0x00000004 25962306a36Sopenharmony_ci#define CFG_DMA_SWAP_MASK 0x0000001C 26062306a36Sopenharmony_ci#define CFG_YUV2RGB_DMA(cvrt) ((cvrt) << 1) 26162306a36Sopenharmony_ci#define CFG_YUV2RGB_DMA_MASK 0x00000002 26262306a36Sopenharmony_ci#define CFG_DMA_ENA(video) (video) 26362306a36Sopenharmony_ci#define CFG_DMA_ENA_MASK 0x00000001 26462306a36Sopenharmony_ci 26562306a36Sopenharmony_ci/* DMA Control 1 Register */ 26662306a36Sopenharmony_ci#define LCD_SPU_DMA_CTRL1 0x0194 26762306a36Sopenharmony_ci#define CFG_FRAME_TRIG(trig) ((trig) << 31) 26862306a36Sopenharmony_ci#define CFG_FRAME_TRIG_MASK 0x80000000 26962306a36Sopenharmony_ci#define CFG_VSYNC_TRIG(trig) ((trig) << 28) 27062306a36Sopenharmony_ci#define CFG_VSYNC_TRIG_MASK 0x70000000 27162306a36Sopenharmony_ci#define CFG_VSYNC_INV(inv) ((inv) << 27) 27262306a36Sopenharmony_ci#define CFG_VSYNC_INV_MASK 0x08000000 27362306a36Sopenharmony_ci#define CFG_COLOR_KEY_MODE(cmode) ((cmode) << 24) 27462306a36Sopenharmony_ci#define CFG_COLOR_KEY_MASK 0x07000000 27562306a36Sopenharmony_ci#define CFG_CARRY(carry) ((carry) << 23) 27662306a36Sopenharmony_ci#define CFG_CARRY_MASK 0x00800000 27762306a36Sopenharmony_ci#define CFG_LNBUF_ENA(lnbuf) ((lnbuf) << 22) 27862306a36Sopenharmony_ci#define CFG_LNBUF_ENA_MASK 0x00400000 27962306a36Sopenharmony_ci#define CFG_GATED_ENA(gated) ((gated) << 21) 28062306a36Sopenharmony_ci#define CFG_GATED_ENA_MASK 0x00200000 28162306a36Sopenharmony_ci#define CFG_PWRDN_ENA(power) ((power) << 20) 28262306a36Sopenharmony_ci#define CFG_PWRDN_ENA_MASK 0x00100000 28362306a36Sopenharmony_ci#define CFG_DSCALE(dscale) ((dscale) << 18) 28462306a36Sopenharmony_ci#define CFG_DSCALE_MASK 0x000C0000 28562306a36Sopenharmony_ci#define CFG_ALPHA_MODE(amode) ((amode) << 16) 28662306a36Sopenharmony_ci#define CFG_ALPHA_MODE_MASK 0x00030000 28762306a36Sopenharmony_ci#define CFG_ALPHA(alpha) ((alpha) << 8) 28862306a36Sopenharmony_ci#define CFG_ALPHA_MASK 0x0000FF00 28962306a36Sopenharmony_ci#define CFG_PXLCMD(pxlcmd) (pxlcmd) 29062306a36Sopenharmony_ci#define CFG_PXLCMD_MASK 0x000000FF 29162306a36Sopenharmony_ci 29262306a36Sopenharmony_ci/* SRAM Control Register */ 29362306a36Sopenharmony_ci#define LCD_SPU_SRAM_CTRL 0x0198 29462306a36Sopenharmony_ci#define CFG_SRAM_INIT_WR_RD(mode) ((mode) << 14) 29562306a36Sopenharmony_ci#define CFG_SRAM_INIT_WR_RD_MASK 0x0000C000 29662306a36Sopenharmony_ci#define CFG_SRAM_ADDR_LCDID(id) ((id) << 8) 29762306a36Sopenharmony_ci#define CFG_SRAM_ADDR_LCDID_MASK 0x00000F00 29862306a36Sopenharmony_ci#define CFG_SRAM_ADDR(addr) (addr) 29962306a36Sopenharmony_ci#define CFG_SRAM_ADDR_MASK 0x000000FF 30062306a36Sopenharmony_ci 30162306a36Sopenharmony_ci/* SRAM Write Data Register */ 30262306a36Sopenharmony_ci#define LCD_SPU_SRAM_WRDAT 0x019C 30362306a36Sopenharmony_ci 30462306a36Sopenharmony_ci/* SRAM RTC/WTC Control Register */ 30562306a36Sopenharmony_ci#define LCD_SPU_SRAM_PARA0 0x01A0 30662306a36Sopenharmony_ci 30762306a36Sopenharmony_ci/* SRAM Power Down Control Register */ 30862306a36Sopenharmony_ci#define LCD_SPU_SRAM_PARA1 0x01A4 30962306a36Sopenharmony_ci#define CFG_CSB_256x32(hwc) ((hwc) << 15) /* HWC */ 31062306a36Sopenharmony_ci#define CFG_CSB_256x32_MASK 0x00008000 31162306a36Sopenharmony_ci#define CFG_CSB_256x24(palette) ((palette) << 14) /* Palette */ 31262306a36Sopenharmony_ci#define CFG_CSB_256x24_MASK 0x00004000 31362306a36Sopenharmony_ci#define CFG_CSB_256x8(gamma) ((gamma) << 13) /* Gamma */ 31462306a36Sopenharmony_ci#define CFG_CSB_256x8_MASK 0x00002000 31562306a36Sopenharmony_ci#define CFG_PDWN256x32(pdwn) ((pdwn) << 7) /* HWC */ 31662306a36Sopenharmony_ci#define CFG_PDWN256x32_MASK 0x00000080 31762306a36Sopenharmony_ci#define CFG_PDWN256x24(pdwn) ((pdwn) << 6) /* Palette */ 31862306a36Sopenharmony_ci#define CFG_PDWN256x24_MASK 0x00000040 31962306a36Sopenharmony_ci#define CFG_PDWN256x8(pdwn) ((pdwn) << 5) /* Gamma */ 32062306a36Sopenharmony_ci#define CFG_PDWN256x8_MASK 0x00000020 32162306a36Sopenharmony_ci#define CFG_PDWN32x32(pdwn) ((pdwn) << 3) 32262306a36Sopenharmony_ci#define CFG_PDWN32x32_MASK 0x00000008 32362306a36Sopenharmony_ci#define CFG_PDWN16x66(pdwn) ((pdwn) << 2) 32462306a36Sopenharmony_ci#define CFG_PDWN16x66_MASK 0x00000004 32562306a36Sopenharmony_ci#define CFG_PDWN32x66(pdwn) ((pdwn) << 1) 32662306a36Sopenharmony_ci#define CFG_PDWN32x66_MASK 0x00000002 32762306a36Sopenharmony_ci#define CFG_PDWN64x66(pdwn) (pdwn) 32862306a36Sopenharmony_ci#define CFG_PDWN64x66_MASK 0x00000001 32962306a36Sopenharmony_ci 33062306a36Sopenharmony_ci/* Smart or Dumb Panel Clock Divider */ 33162306a36Sopenharmony_ci#define LCD_CFG_SCLK_DIV 0x01A8 33262306a36Sopenharmony_ci#define SCLK_SOURCE_SELECT(src) ((src) << 31) 33362306a36Sopenharmony_ci#define SCLK_SOURCE_SELECT_MASK 0x80000000 33462306a36Sopenharmony_ci#define CLK_FRACDIV(frac) ((frac) << 16) 33562306a36Sopenharmony_ci#define CLK_FRACDIV_MASK 0x0FFF0000 33662306a36Sopenharmony_ci#define CLK_INT_DIV(div) (div) 33762306a36Sopenharmony_ci#define CLK_INT_DIV_MASK 0x0000FFFF 33862306a36Sopenharmony_ci 33962306a36Sopenharmony_ci/* Video Contrast Register */ 34062306a36Sopenharmony_ci#define LCD_SPU_CONTRAST 0x01AC 34162306a36Sopenharmony_ci#define CFG_BRIGHTNESS(bright) ((bright) << 16) 34262306a36Sopenharmony_ci#define CFG_BRIGHTNESS_MASK 0xFFFF0000 34362306a36Sopenharmony_ci#define CFG_CONTRAST(contrast) (contrast) 34462306a36Sopenharmony_ci#define CFG_CONTRAST_MASK 0x0000FFFF 34562306a36Sopenharmony_ci 34662306a36Sopenharmony_ci/* Video Saturation Register */ 34762306a36Sopenharmony_ci#define LCD_SPU_SATURATION 0x01B0 34862306a36Sopenharmony_ci#define CFG_C_MULTS(mult) ((mult) << 16) 34962306a36Sopenharmony_ci#define CFG_C_MULTS_MASK 0xFFFF0000 35062306a36Sopenharmony_ci#define CFG_SATURATION(sat) (sat) 35162306a36Sopenharmony_ci#define CFG_SATURATION_MASK 0x0000FFFF 35262306a36Sopenharmony_ci 35362306a36Sopenharmony_ci/* Video Hue Adjust Register */ 35462306a36Sopenharmony_ci#define LCD_SPU_CBSH_HUE 0x01B4 35562306a36Sopenharmony_ci#define CFG_SIN0(sin0) ((sin0) << 16) 35662306a36Sopenharmony_ci#define CFG_SIN0_MASK 0xFFFF0000 35762306a36Sopenharmony_ci#define CFG_COS0(con0) (con0) 35862306a36Sopenharmony_ci#define CFG_COS0_MASK 0x0000FFFF 35962306a36Sopenharmony_ci 36062306a36Sopenharmony_ci/* Dump LCD Panel Control Register */ 36162306a36Sopenharmony_ci#define LCD_SPU_DUMB_CTRL 0x01B8 36262306a36Sopenharmony_ci#define CFG_DUMBMODE(mode) ((mode) << 28) 36362306a36Sopenharmony_ci#define CFG_DUMBMODE_MASK 0xF0000000 36462306a36Sopenharmony_ci#define CFG_LCDGPIO_O(data) ((data) << 20) 36562306a36Sopenharmony_ci#define CFG_LCDGPIO_O_MASK 0x0FF00000 36662306a36Sopenharmony_ci#define CFG_LCDGPIO_ENA(gpio) ((gpio) << 12) 36762306a36Sopenharmony_ci#define CFG_LCDGPIO_ENA_MASK 0x000FF000 36862306a36Sopenharmony_ci#define CFG_BIAS_OUT(bias) ((bias) << 8) 36962306a36Sopenharmony_ci#define CFG_BIAS_OUT_MASK 0x00000100 37062306a36Sopenharmony_ci#define CFG_REVERSE_RGB(rRGB) ((rRGB) << 7) 37162306a36Sopenharmony_ci#define CFG_REVERSE_RGB_MASK 0x00000080 37262306a36Sopenharmony_ci#define CFG_INV_COMPBLANK(blank) ((blank) << 6) 37362306a36Sopenharmony_ci#define CFG_INV_COMPBLANK_MASK 0x00000040 37462306a36Sopenharmony_ci#define CFG_INV_COMPSYNC(sync) ((sync) << 5) 37562306a36Sopenharmony_ci#define CFG_INV_COMPSYNC_MASK 0x00000020 37662306a36Sopenharmony_ci#define CFG_INV_HENA(hena) ((hena) << 4) 37762306a36Sopenharmony_ci#define CFG_INV_HENA_MASK 0x00000010 37862306a36Sopenharmony_ci#define CFG_INV_VSYNC(vsync) ((vsync) << 3) 37962306a36Sopenharmony_ci#define CFG_INV_VSYNC_MASK 0x00000008 38062306a36Sopenharmony_ci#define CFG_INV_HSYNC(hsync) ((hsync) << 2) 38162306a36Sopenharmony_ci#define CFG_INV_HSYNC_MASK 0x00000004 38262306a36Sopenharmony_ci#define CFG_INV_PCLK(pclk) ((pclk) << 1) 38362306a36Sopenharmony_ci#define CFG_INV_PCLK_MASK 0x00000002 38462306a36Sopenharmony_ci#define CFG_DUMB_ENA(dumb) (dumb) 38562306a36Sopenharmony_ci#define CFG_DUMB_ENA_MASK 0x00000001 38662306a36Sopenharmony_ci 38762306a36Sopenharmony_ci/* LCD I/O Pads Control Register */ 38862306a36Sopenharmony_ci#define SPU_IOPAD_CONTROL 0x01BC 38962306a36Sopenharmony_ci#define CFG_GRA_VM_ENA(vm) ((vm) << 15) /* gfx */ 39062306a36Sopenharmony_ci#define CFG_GRA_VM_ENA_MASK 0x00008000 39162306a36Sopenharmony_ci#define CFG_DMA_VM_ENA(vm) ((vm) << 13) /* video */ 39262306a36Sopenharmony_ci#define CFG_DMA_VM_ENA_MASK 0x00002000 39362306a36Sopenharmony_ci#define CFG_CMD_VM_ENA(vm) ((vm) << 13) 39462306a36Sopenharmony_ci#define CFG_CMD_VM_ENA_MASK 0x00000800 39562306a36Sopenharmony_ci#define CFG_CSC(csc) ((csc) << 8) /* csc */ 39662306a36Sopenharmony_ci#define CFG_CSC_MASK 0x00000300 39762306a36Sopenharmony_ci#define CFG_AXICTRL(axi) ((axi) << 4) 39862306a36Sopenharmony_ci#define CFG_AXICTRL_MASK 0x000000F0 39962306a36Sopenharmony_ci#define CFG_IOPADMODE(iopad) (iopad) 40062306a36Sopenharmony_ci#define CFG_IOPADMODE_MASK 0x0000000F 40162306a36Sopenharmony_ci 40262306a36Sopenharmony_ci/* LCD Interrupt Control Register */ 40362306a36Sopenharmony_ci#define SPU_IRQ_ENA 0x01C0 40462306a36Sopenharmony_ci#define DMA_FRAME_IRQ0_ENA(irq) ((irq) << 31) 40562306a36Sopenharmony_ci#define DMA_FRAME_IRQ0_ENA_MASK 0x80000000 40662306a36Sopenharmony_ci#define DMA_FRAME_IRQ1_ENA(irq) ((irq) << 30) 40762306a36Sopenharmony_ci#define DMA_FRAME_IRQ1_ENA_MASK 0x40000000 40862306a36Sopenharmony_ci#define DMA_FF_UNDERFLOW_ENA(ff) ((ff) << 29) 40962306a36Sopenharmony_ci#define DMA_FF_UNDERFLOW_ENA_MASK 0x20000000 41062306a36Sopenharmony_ci#define GRA_FRAME_IRQ0_ENA(irq) ((irq) << 27) 41162306a36Sopenharmony_ci#define GRA_FRAME_IRQ0_ENA_MASK 0x08000000 41262306a36Sopenharmony_ci#define GRA_FRAME_IRQ1_ENA(irq) ((irq) << 26) 41362306a36Sopenharmony_ci#define GRA_FRAME_IRQ1_ENA_MASK 0x04000000 41462306a36Sopenharmony_ci#define GRA_FF_UNDERFLOW_ENA(ff) ((ff) << 25) 41562306a36Sopenharmony_ci#define GRA_FF_UNDERFLOW_ENA_MASK 0x02000000 41662306a36Sopenharmony_ci#define VSYNC_IRQ_ENA(vsync_irq) ((vsync_irq) << 23) 41762306a36Sopenharmony_ci#define VSYNC_IRQ_ENA_MASK 0x00800000 41862306a36Sopenharmony_ci#define DUMB_FRAMEDONE_ENA(fdone) ((fdone) << 22) 41962306a36Sopenharmony_ci#define DUMB_FRAMEDONE_ENA_MASK 0x00400000 42062306a36Sopenharmony_ci#define TWC_FRAMEDONE_ENA(fdone) ((fdone) << 21) 42162306a36Sopenharmony_ci#define TWC_FRAMEDONE_ENA_MASK 0x00200000 42262306a36Sopenharmony_ci#define HWC_FRAMEDONE_ENA(fdone) ((fdone) << 20) 42362306a36Sopenharmony_ci#define HWC_FRAMEDONE_ENA_MASK 0x00100000 42462306a36Sopenharmony_ci#define SLV_IRQ_ENA(irq) ((irq) << 19) 42562306a36Sopenharmony_ci#define SLV_IRQ_ENA_MASK 0x00080000 42662306a36Sopenharmony_ci#define SPI_IRQ_ENA(irq) ((irq) << 18) 42762306a36Sopenharmony_ci#define SPI_IRQ_ENA_MASK 0x00040000 42862306a36Sopenharmony_ci#define PWRDN_IRQ_ENA(irq) ((irq) << 17) 42962306a36Sopenharmony_ci#define PWRDN_IRQ_ENA_MASK 0x00020000 43062306a36Sopenharmony_ci#define ERR_IRQ_ENA(irq) ((irq) << 16) 43162306a36Sopenharmony_ci#define ERR_IRQ_ENA_MASK 0x00010000 43262306a36Sopenharmony_ci#define CLEAN_SPU_IRQ_ISR(irq) (irq) 43362306a36Sopenharmony_ci#define CLEAN_SPU_IRQ_ISR_MASK 0x0000FFFF 43462306a36Sopenharmony_ci 43562306a36Sopenharmony_ci/* LCD Interrupt Status Register */ 43662306a36Sopenharmony_ci#define SPU_IRQ_ISR 0x01C4 43762306a36Sopenharmony_ci#define DMA_FRAME_IRQ0(irq) ((irq) << 31) 43862306a36Sopenharmony_ci#define DMA_FRAME_IRQ0_MASK 0x80000000 43962306a36Sopenharmony_ci#define DMA_FRAME_IRQ1(irq) ((irq) << 30) 44062306a36Sopenharmony_ci#define DMA_FRAME_IRQ1_MASK 0x40000000 44162306a36Sopenharmony_ci#define DMA_FF_UNDERFLOW(ff) ((ff) << 29) 44262306a36Sopenharmony_ci#define DMA_FF_UNDERFLOW_MASK 0x20000000 44362306a36Sopenharmony_ci#define GRA_FRAME_IRQ0(irq) ((irq) << 27) 44462306a36Sopenharmony_ci#define GRA_FRAME_IRQ0_MASK 0x08000000 44562306a36Sopenharmony_ci#define GRA_FRAME_IRQ1(irq) ((irq) << 26) 44662306a36Sopenharmony_ci#define GRA_FRAME_IRQ1_MASK 0x04000000 44762306a36Sopenharmony_ci#define GRA_FF_UNDERFLOW(ff) ((ff) << 25) 44862306a36Sopenharmony_ci#define GRA_FF_UNDERFLOW_MASK 0x02000000 44962306a36Sopenharmony_ci#define VSYNC_IRQ(vsync_irq) ((vsync_irq) << 23) 45062306a36Sopenharmony_ci#define VSYNC_IRQ_MASK 0x00800000 45162306a36Sopenharmony_ci#define DUMB_FRAMEDONE(fdone) ((fdone) << 22) 45262306a36Sopenharmony_ci#define DUMB_FRAMEDONE_MASK 0x00400000 45362306a36Sopenharmony_ci#define TWC_FRAMEDONE(fdone) ((fdone) << 21) 45462306a36Sopenharmony_ci#define TWC_FRAMEDONE_MASK 0x00200000 45562306a36Sopenharmony_ci#define HWC_FRAMEDONE(fdone) ((fdone) << 20) 45662306a36Sopenharmony_ci#define HWC_FRAMEDONE_MASK 0x00100000 45762306a36Sopenharmony_ci#define SLV_IRQ(irq) ((irq) << 19) 45862306a36Sopenharmony_ci#define SLV_IRQ_MASK 0x00080000 45962306a36Sopenharmony_ci#define SPI_IRQ(irq) ((irq) << 18) 46062306a36Sopenharmony_ci#define SPI_IRQ_MASK 0x00040000 46162306a36Sopenharmony_ci#define PWRDN_IRQ(irq) ((irq) << 17) 46262306a36Sopenharmony_ci#define PWRDN_IRQ_MASK 0x00020000 46362306a36Sopenharmony_ci#define ERR_IRQ(irq) ((irq) << 16) 46462306a36Sopenharmony_ci#define ERR_IRQ_MASK 0x00010000 46562306a36Sopenharmony_ci/* read-only */ 46662306a36Sopenharmony_ci#define DMA_FRAME_IRQ0_LEVEL_MASK 0x00008000 46762306a36Sopenharmony_ci#define DMA_FRAME_IRQ1_LEVEL_MASK 0x00004000 46862306a36Sopenharmony_ci#define DMA_FRAME_CNT_ISR_MASK 0x00003000 46962306a36Sopenharmony_ci#define GRA_FRAME_IRQ0_LEVEL_MASK 0x00000800 47062306a36Sopenharmony_ci#define GRA_FRAME_IRQ1_LEVEL_MASK 0x00000400 47162306a36Sopenharmony_ci#define GRA_FRAME_CNT_ISR_MASK 0x00000300 47262306a36Sopenharmony_ci#define VSYNC_IRQ_LEVEL_MASK 0x00000080 47362306a36Sopenharmony_ci#define DUMB_FRAMEDONE_LEVEL_MASK 0x00000040 47462306a36Sopenharmony_ci#define TWC_FRAMEDONE_LEVEL_MASK 0x00000020 47562306a36Sopenharmony_ci#define HWC_FRAMEDONE_LEVEL_MASK 0x00000010 47662306a36Sopenharmony_ci#define SLV_FF_EMPTY_MASK 0x00000008 47762306a36Sopenharmony_ci#define DMA_FF_ALLEMPTY_MASK 0x00000004 47862306a36Sopenharmony_ci#define GRA_FF_ALLEMPTY_MASK 0x00000002 47962306a36Sopenharmony_ci#define PWRDN_IRQ_LEVEL_MASK 0x00000001 48062306a36Sopenharmony_ci 48162306a36Sopenharmony_ci 48262306a36Sopenharmony_ci/* 48362306a36Sopenharmony_ci * defined Video Memory Color format for DMA control 0 register 48462306a36Sopenharmony_ci * DMA0 bit[23:20] 48562306a36Sopenharmony_ci */ 48662306a36Sopenharmony_ci#define VMODE_RGB565 0x0 48762306a36Sopenharmony_ci#define VMODE_RGB1555 0x1 48862306a36Sopenharmony_ci#define VMODE_RGB888PACKED 0x2 48962306a36Sopenharmony_ci#define VMODE_RGB888UNPACKED 0x3 49062306a36Sopenharmony_ci#define VMODE_RGBA888 0x4 49162306a36Sopenharmony_ci#define VMODE_YUV422PACKED 0x5 49262306a36Sopenharmony_ci#define VMODE_YUV422PLANAR 0x6 49362306a36Sopenharmony_ci#define VMODE_YUV420PLANAR 0x7 49462306a36Sopenharmony_ci#define VMODE_SMPNCMD 0x8 49562306a36Sopenharmony_ci#define VMODE_PALETTE4BIT 0x9 49662306a36Sopenharmony_ci#define VMODE_PALETTE8BIT 0xa 49762306a36Sopenharmony_ci#define VMODE_RESERVED 0xb 49862306a36Sopenharmony_ci 49962306a36Sopenharmony_ci/* 50062306a36Sopenharmony_ci * defined Graphic Memory Color format for DMA control 0 register 50162306a36Sopenharmony_ci * DMA0 bit[19:16] 50262306a36Sopenharmony_ci */ 50362306a36Sopenharmony_ci#define GMODE_RGB565 0x0 50462306a36Sopenharmony_ci#define GMODE_RGB1555 0x1 50562306a36Sopenharmony_ci#define GMODE_RGB888PACKED 0x2 50662306a36Sopenharmony_ci#define GMODE_RGB888UNPACKED 0x3 50762306a36Sopenharmony_ci#define GMODE_RGBA888 0x4 50862306a36Sopenharmony_ci#define GMODE_YUV422PACKED 0x5 50962306a36Sopenharmony_ci#define GMODE_YUV422PLANAR 0x6 51062306a36Sopenharmony_ci#define GMODE_YUV420PLANAR 0x7 51162306a36Sopenharmony_ci#define GMODE_SMPNCMD 0x8 51262306a36Sopenharmony_ci#define GMODE_PALETTE4BIT 0x9 51362306a36Sopenharmony_ci#define GMODE_PALETTE8BIT 0xa 51462306a36Sopenharmony_ci#define GMODE_RESERVED 0xb 51562306a36Sopenharmony_ci 51662306a36Sopenharmony_ci/* 51762306a36Sopenharmony_ci * define for DMA control 1 register 51862306a36Sopenharmony_ci */ 51962306a36Sopenharmony_ci#define DMA1_FRAME_TRIG 31 /* bit location */ 52062306a36Sopenharmony_ci#define DMA1_VSYNC_MODE 28 52162306a36Sopenharmony_ci#define DMA1_VSYNC_INV 27 52262306a36Sopenharmony_ci#define DMA1_CKEY 24 52362306a36Sopenharmony_ci#define DMA1_CARRY 23 52462306a36Sopenharmony_ci#define DMA1_LNBUF_ENA 22 52562306a36Sopenharmony_ci#define DMA1_GATED_ENA 21 52662306a36Sopenharmony_ci#define DMA1_PWRDN_ENA 20 52762306a36Sopenharmony_ci#define DMA1_DSCALE 18 52862306a36Sopenharmony_ci#define DMA1_ALPHA_MODE 16 52962306a36Sopenharmony_ci#define DMA1_ALPHA 08 53062306a36Sopenharmony_ci#define DMA1_PXLCMD 00 53162306a36Sopenharmony_ci 53262306a36Sopenharmony_ci/* 53362306a36Sopenharmony_ci * defined for Configure Dumb Mode 53462306a36Sopenharmony_ci * DUMB LCD Panel bit[31:28] 53562306a36Sopenharmony_ci */ 53662306a36Sopenharmony_ci#define DUMB16_RGB565_0 0x0 53762306a36Sopenharmony_ci#define DUMB16_RGB565_1 0x1 53862306a36Sopenharmony_ci#define DUMB18_RGB666_0 0x2 53962306a36Sopenharmony_ci#define DUMB18_RGB666_1 0x3 54062306a36Sopenharmony_ci#define DUMB12_RGB444_0 0x4 54162306a36Sopenharmony_ci#define DUMB12_RGB444_1 0x5 54262306a36Sopenharmony_ci#define DUMB24_RGB888_0 0x6 54362306a36Sopenharmony_ci#define DUMB_BLANK 0x7 54462306a36Sopenharmony_ci 54562306a36Sopenharmony_ci/* 54662306a36Sopenharmony_ci * defined for Configure I/O Pin Allocation Mode 54762306a36Sopenharmony_ci * LCD LCD I/O Pads control register bit[3:0] 54862306a36Sopenharmony_ci */ 54962306a36Sopenharmony_ci#define IOPAD_DUMB24 0x0 55062306a36Sopenharmony_ci#define IOPAD_DUMB18SPI 0x1 55162306a36Sopenharmony_ci#define IOPAD_DUMB18GPIO 0x2 55262306a36Sopenharmony_ci#define IOPAD_DUMB16SPI 0x3 55362306a36Sopenharmony_ci#define IOPAD_DUMB16GPIO 0x4 55462306a36Sopenharmony_ci#define IOPAD_DUMB12 0x5 55562306a36Sopenharmony_ci#define IOPAD_SMART18SPI 0x6 55662306a36Sopenharmony_ci#define IOPAD_SMART16SPI 0x7 55762306a36Sopenharmony_ci#define IOPAD_SMART8BOTH 0x8 55862306a36Sopenharmony_ci 55962306a36Sopenharmony_ci#endif /* __PXA168FB_H__ */ 560