summaryrefslogtreecommitdiff
path: root/include/atmel_hlcdc.h
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2012-11-08 17:49:14 +0000
committerAnatolij Gustschin <agust@denx.de>2012-11-10 14:04:08 +0100
commitcfcd1c03e44fc22f2146948dc9f341b28e6ec583 (patch)
tree52c5d4d4c53e1c5ff6d8ac9e59163326512e7063 /include/atmel_hlcdc.h
parentd484b52e6fcb28dc011ce45718294496c6ea83d0 (diff)
downloadu-boot-imx-cfcd1c03e44fc22f2146948dc9f341b28e6ec583.zip
u-boot-imx-cfcd1c03e44fc22f2146948dc9f341b28e6ec583.tar.gz
u-boot-imx-cfcd1c03e44fc22f2146948dc9f341b28e6ec583.tar.bz2
video: atmel: implement lcd_setcolreg function
implement the common api lcd_setcolreg in include/lcd.h Signed-off-by: Bo Shen <voice.shen@atmel.com> [agust: fixed commit log and gcc 4.6 -Wparentheses warnings] Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'include/atmel_hlcdc.h')
-rw-r--r--include/atmel_hlcdc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/atmel_hlcdc.h b/include/atmel_hlcdc.h
index 945b30a..fbd2f92 100644
--- a/include/atmel_hlcdc.h
+++ b/include/atmel_hlcdc.h
@@ -217,6 +217,13 @@ struct atmel_hlcd_regs {
#define LCDC_BASECFG3_RDEF(value) \
((LCDC_BASECFG3_RDEF_Msk & ((value) << LCDC_BASECFG3_RDEF_Pos)))
+#define LCDC_BASECLUT_BCLUT_Pos 0
+#define LCDC_BASECLUT_BCLUT_Msk (0xff << LCDC_BASECLUT_BCLUT_Pos)
+#define LCDC_BASECLUT_GCLUT_Pos 8
+#define LCDC_BASECLUT_GCLUT_Msk (0xff << LCDC_BASECLUT_GCLUT_Pos)
+#define LCDC_BASECLUT_RCLUT_Pos 16
+#define LCDC_BASECLUT_RCLUT_Msk (0xff << LCDC_BASECLUT_RCLUT_Pos)
+
#define LCDC_BASECFG4_DMA (0x1 << 8)
#define LCDC_BASECFG4_REP (0x1 << 9)