From 55978deb0c78baeb73f07e3dff0b6e5cfe833e35 Mon Sep 17 00:00:00 2001 From: wdenk Date: Sat, 3 Nov 2001 22:15:16 +0000 Subject: [PATCH] Initial revision --- include/lcdvideo.h | 69 +++++++++++++++++++++++++++++++++++++++++++ tools/logos/denx.bmp | Bin 0 -> 15538 bytes 2 files changed, 69 insertions(+) create mode 100644 include/lcdvideo.h create mode 100644 tools/logos/denx.bmp diff --git a/include/lcdvideo.h b/include/lcdvideo.h new file mode 100644 index 0000000000..f0640a5385 --- /dev/null +++ b/include/lcdvideo.h @@ -0,0 +1,69 @@ +/* + * MPC823 LCD and Video Controller + * Copyright (c) 1999 Dan Malek (dmalek@jlc.net) + */ +#ifndef __LCDVIDEO_H__ +#define __LCDVIDEO_H__ + + +/* LCD Controller Configuration Register. +*/ +#define LCCR_BNUM ((uint)0xfffe0000) +#define LCCR_EIEN ((uint)0x00010000) +#define LCCR_IEN ((uint)0x00008000) +#define LCCR_IRQL ((uint)0x00007000) +#define LCCR_CLKP ((uint)0x00000800) +#define LCCR_OEP ((uint)0x00000400) +#define LCCR_HSP ((uint)0x00000200) +#define LCCR_VSP ((uint)0x00000100) +#define LCCR_DP ((uint)0x00000080) +#define LCCR_BPIX ((uint)0x00000060) +#define LCCR_LBW ((uint)0x00000010) +#define LCCR_SPLT ((uint)0x00000008) +#define LCCR_CLOR ((uint)0x00000004) +#define LCCR_TFT ((uint)0x00000002) +#define LCCR_PON ((uint)0x00000001) + +/* Define the bit shifts to load values into the register. +*/ +#define LCDBIT(BIT, VAL) ((VAL) << (31 - BIT)) + +#define LCCR_BNUM_BIT ((uint)14) +#define LCCR_EIEN_BIT ((uint)15) +#define LCCR_IEN_BIT ((uint)16) +#define LCCR_IROL_BIT ((uint)19) +#define LCCR_CLKP_BIT ((uint)20) +#define LCCR_OEP_BIT ((uint)21) +#define LCCR_HSP_BIT ((uint)22) +#define LCCR_VSP_BIT ((uint)23) +#define LCCR_DP_BIT ((uint)24) +#define LCCR_BPIX_BIT ((uint)26) +#define LCCR_LBW_BIT ((uint)27) +#define LCCR_SPLT_BIT ((uint)28) +#define LCCR_CLOR_BIT ((uint)29) +#define LCCR_TFT_BIT ((uint)30) +#define LCCR_PON_BIT ((uint)31) + +/* LCD Horizontal control register. +*/ +#define LCHCR_BO ((uint)0x01000000) +#define LCHCR_AT ((uint)0x00e00000) +#define LCHCR_HPC ((uint)0x001ffc00) +#define LCHCR_WBL ((uint)0x000003ff) + +#define LCHCR_AT_BIT ((uint)10) +#define LCHCR_HPC_BIT ((uint)21) +#define LCHCR_WBL_BIT ((uint)31) + +/* LCD Vertical control register. +*/ +#define LCVCR_VPW ((uint)0xf0000000) +#define LCVCR_LCD_AC ((uint)0x01e00000) +#define LCVCR_VPC ((uint)0x001ff800) +#define LCVCR_WBF ((uint)0x000003ff) + +#define LCVCR_VPW_BIT ((uint)3) +#define LCVCR_LCD_AC_BIT ((uint)10) +#define LCVCR_VPC_BIT ((uint)20) + +#endif /* __LCDVIDEO_H__ */ diff --git a/tools/logos/denx.bmp b/tools/logos/denx.bmp new file mode 100644 index 0000000000000000000000000000000000000000..c4cde09d59d60aac35a91fd15ff81d0d1c7c024d GIT binary patch literal 15538 zcmeHNIgcDg6t3MJZ?9+U9kWKp2iv6N$QcPZB0xAILKY&#f)tq?{{V1|>=+44PLRM7 z0R&(PArc%oAh87r$s&;uG_Q{D9aYucEBD$Q>Xv5e)jPj>b@$Axuitsuh35`^zet~( z^m&^;8*Ycb=^^=htN3|=s{V8FwTtf3o0r_>cP_gt?_Y6OKfLO$UBBk8e|+8D`1FRm z_1P_V`-|J|?l*Vcy&vzn`w#BBN54LD2Y(#6m%i-WD_?i+jc+^m)_0wI_lM4X@KfhL z`nhwTJm}obUpn{s!_Iy6Tj#$2y>s^uI`{C;&K>;KxvuM6JN^*DjRk!*FjzonB?G;IM zmZcBv3BmzVo4C_V(z!CUs^?;GRh-7>X-P^fRm7jD9sVsf1c9$dHlv~@p}6BKI)du(d@)W z?7)LJ%smK1^-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