微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 嵌入式设计 > uboot 下S3C6410 的LCD 显示

uboot 下S3C6410 的LCD 显示

时间:11-11 来源:互联网 点击:

(0x7ff < 16)

#define VIDCON1_LINECNT_SHIFT (16)

#define VIDCON1_LINECNT_GET(_v) (((_v) >> 16) & 0x7ff)

#define VIDCON1_VSTATUS_MASK (0x3 < 13)

#define VIDCON1_VSTATUS_SHIFT (13)

#define VIDCON1_VSTATUS_VSYNC (0x0 < 13)

#define VIDCON1_VSTATUS_BACKPORCH (0x1 < 13)

#define VIDCON1_VSTATUS_ACTIVE (0x2 < 13)

#define VIDCON1_VSTATUS_FRONTPORCH (0x0 < 13)

#define VIDCON1_INV_VCLK (1 < 7)

#define VIDCON1_INV_HSYNC (1 < 6)

#define VIDCON1_INV_VSYNC (1 < 5)

#define VIDCON1_INV_VDEN (1 < 4)

/* VIDCON2 */

//#define VIDCON2 (0x08)

#define VIDCON2_EN601 (1 < 23)

#define VIDCON2_TVFMTSEL_SW (1 < 14)

#define VIDCON2_TVFMTSEL1_MASK (0x3 < 12)

#define VIDCON2_TVFMTSEL1_SHIFT (12)

#define VIDCON2_TVFMTSEL1_RGB (0x0 < 12)

#define VIDCON2_TVFMTSEL1_YUV422 (0x1 < 12)

#define VIDCON2_TVFMTSEL1_YUV444 (0x2 < 12)

#define VIDCON2_ORGYCbCr (1 < 8)

#define VIDCON2_YUVORDCrCb (1 < 7)

/* PRTCON (S3C6410, S5PC100)

* Might not be present in the S3C6410 documentation,

* but tests prove its there almost for sure; shouldnt hurt in any case.

*/

#define PRTCON (0x0c)

#define PRTCON_PROTECT (1 < 11)

/* VIDTCON0 */

#define VIDTCON0_VBPDE_MASK (0xff < 24)

#define VIDTCON0_VBPDE_SHIFT (24)

#define VIDTCON0_VBPDE_LIMIT (0xff)

#define VIDTCON0_VBPDE(_x) ((_x) < 24)

#define VIDTCON0_VBPD_MASK (0xff < 16)

#define VIDTCON0_VBPD_SHIFT (16)

#define VIDTCON0_VBPD_LIMIT (0xff)

#define VIDTCON0_VBPD(_x) ((_x) < 16)

#define VIDTCON0_VFPD_MASK (0xff < 8)

#define VIDTCON0_VFPD_SHIFT (8)

#define VIDTCON0_VFPD_LIMIT (0xff)

#define VIDTCON0_VFPD(_x) ((_x) < 8)

#define VIDTCON0_VSPW_MASK (0xff < 0)

#define VIDTCON0_VSPW_SHIFT (0)

#define VIDTCON0_VSPW_LIMIT (0xff)

#define VIDTCON0_VSPW(_x) ((_x) < 0)

/* VIDTCON1 */

#define VIDTCON1_VFPDE_MASK (0xff < 24)

#define VIDTCON1_VFPDE_SHIFT (24)

#define VIDTCON1_VFPDE_LIMIT (0xff)

#define VIDTCON1_VFPDE(_x) ((_x) < 24)

#define VIDTCON1_HBPD_MASK (0xff < 16)

#define VIDTCON1_HBPD_SHIFT (16)

#define VIDTCON1_HBPD_LIMIT (0xff)

#define VIDTCON1_HBPD(_x) ((_x) < 16)

#define VIDTCON1_HFPD_MASK (0xff < 8)

#define VIDTCON1_HFPD_SHIFT (8)

#define VIDTCON1_HFPD_LIMIT (0xff)

#define VIDTCON1_HFPD(_x) ((_x) < 8)

#define VIDTCON1_HSPW_MASK (0xff < 0)

#define VIDTCON1_HSPW_SHIFT (0)

#define VIDTCON1_HSPW_LIMIT (0xff)

#define VIDTCON1_HSPW(_x) ((_x) < 0)

//#define VIDTCON2 (0x18)

#define VIDTCON2_LINEVAL_MASK (0x7ff < 11)

#define VIDTCON2_LINEVAL_SHIFT (11)

#define VIDTCON2_LINEVAL_LIMIT (0x7ff)

#define VIDTCON2_LINEVAL(_x) ((_x) < 11)

#define VIDTCON2_HOZVAL_MASK (0x7ff < 0)

#define VIDTCON2_HOZVAL_SHIFT (0)

#define VIDTCON2_HOZVAL_LIMIT (0x7ff)

#define VIDTCON2_HOZVAL(_x) ((_x) < 0)

/* WINCONx */

#define WINCONx_ENLOCAL (1 < 22)

#define WINCONx_BITSWP (1 < 18)

#define WINCONx_BYTSWP (1 < 17)

#define WINCONx_HAWSWP (1 < 16)

#define WINCONx_WSWP (1 < 15)

#define WINCONx_InRGB_YCC (1 < 13)

#define WINCONx_BURSTLEN_MASK (0x3 < 9)

#define WINCONx_BURSTLEN_SHIFT (9)

#define WINCONx_BURSTLEN_16WORD (0x0 < 9)

#define WINCONx_BURSTLEN_8WORD (0x1 < 9)

#define WINCONx_BURSTLEN_4WORD (0x2 < 9)

#define WINCONx_ENWIN (1 < 0)

#define WINCON0_BPPMODE_MASK (0xf < 2)

#define WINCON0_BPPMODE_SHIFT (2)

#define WINCON0_BPPMODE_1BPP (0x0 < 2)

#define WINCON0_BPPMODE_2BPP (0x1 < 2)

#define WINCON0_BPPMODE_4BPP (0x2 < 2)

#define WINCON0_BPPMODE_8BPP_PALETTE (0x3 < 2)

#define WINCON0_BPPMODE_16BPP_565 (0x5 < 2)

#define WINCON0_BPPMODE_16BPP_1555 (0x7 < 2)

#define WINCON0_BPPMODE_18BPP_666 (0x8 < 2)

#define WINCON0_BPPMODE_24BPP_888 (0xb < 2)

#define WINCON1_BLD_PIX (1 < 6)

#define WINCON1_ALPHA_SEL (1 < 1)

#define WINCON1_BPPMODE_MASK (0xf < 2)

#define WINCON1_BPPMODE_SHIFT (2)

#define WINCON1_BPPMO

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top