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

uboot 下S3C6410 的LCD 显示

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

NTCON0_FRAMESEL0_ACTIVE (0x2 < 15)

#define VIDINTCON0_FRAMESEL0_FRONTPORCH (0x3 < 15)

#define VIDINTCON0_FRAMESEL1 (1 < 13)

#define VIDINTCON0_FRAMESEL1_MASK (0x3 < 13)

#define VIDINTCON0_FRAMESEL1_NONE (0x0 < 13)

#define VIDINTCON0_FRAMESEL1_BACKPORCH (0x1 < 13)

#define VIDINTCON0_FRAMESEL1_VSYNC (0x2 < 13)

#define VIDINTCON0_FRAMESEL1_FRONTPORCH (0x3 < 13)

#define VIDINTCON0_INT_FRAME (1 < 12)

#define VIDINTCON0_FIFIOSEL_MASK (0x7f < 5)

#define VIDINTCON0_FIFIOSEL_SHIFT (5)

#define VIDINTCON0_FIFIOSEL_WINDOW0 (0x1 < 5)

#define VIDINTCON0_FIFIOSEL_WINDOW1 (0x2 < 5)

#define VIDINTCON0_FIFOLEVEL_MASK (0x7 < 2)

#define VIDINTCON0_FIFOLEVEL_SHIFT (2)

#define VIDINTCON0_FIFOLEVEL_TO25PC (0x0 < 2)

#define VIDINTCON0_FIFOLEVEL_TO50PC (0x1 < 2)

#define VIDINTCON0_FIFOLEVEL_TO75PC (0x2 < 2)

#define VIDINTCON0_FIFOLEVEL_EMPTY (0x3 < 2)

#define VIDINTCON0_FIFOLEVEL_FULL (0x4 < 2)

#define VIDINTCON0_INT_FIFO_MASK (0x3 < 0)

#define VIDINTCON0_INT_FIFO_SHIFT (0)

#define VIDINTCON0_INT_ENABLE (1 < 0)

//#define VIDINTCON1 (0x134)

#define VIDINTCON1_INT_I180 (1 < 2)

#define VIDINTCON1_INT_FRAME (1 < 1)

#define VIDINTCON1_INT_FIFO (1 < 0)

/* Window colour-key control registers */

#define WKEYCON (0x140) /* 6410,V210 */

#define WKEYCON0 (0x00)

#define WKEYCON1 (0x04)

#define WxKEYCON0_KEYBL_EN (1 < 26)

#define WxKEYCON0_KEYEN_F (1 < 25)

#define WxKEYCON0_DIRCON (1 < 24)

#define WxKEYCON0_COMPKEY_MASK (0xffffff < 0)

#define WxKEYCON0_COMPKEY_SHIFT (0)

#define WxKEYCON0_COMPKEY_LIMIT (0xffffff)

#define WxKEYCON0_COMPKEY(_x) ((_x) < 0)

#define WxKEYCON1_COLVAL_MASK (0xffffff < 0)

#define WxKEYCON1_COLVAL_SHIFT (0)

#define WxKEYCON1_COLVAL_LIMIT (0xffffff)

#define WxKEYCON1_COLVAL(_x) ((_x) < 0)

/* Window blanking (MAP) */

#define WINxMAP_MAP (1 < 24)

#define WINxMAP_MAP_COLOUR_MASK (0xffffff < 0)

#define WINxMAP_MAP_COLOUR_SHIFT (0)

#define WINxMAP_MAP_COLOUR_LIMIT (0xffffff)

#define WINxMAP_MAP_COLOUR(_x) ((_x) < 0)

#define WPALCON_PAL_UPDATE (1 < 9)

#define WPALCON_W1PAL_MASK (0x7 < 3)

#define WPALCON_W1PAL_SHIFT (3)

#define WPALCON_W1PAL_25BPP_A888 (0x0 < 3)

#define WPALCON_W1PAL_24BPP (0x1 < 3)

#define WPALCON_W1PAL_19BPP_A666 (0x2 < 3)

#define WPALCON_W1PAL_18BPP_A665 (0x3 < 3)

#define WPALCON_W1PAL_18BPP (0x4 < 3)

#define WPALCON_W1PAL_16BPP_A555 (0x5 < 3)

#define WPALCON_W1PAL_16BPP_565 (0x6 < 3)

#define WPALCON_W0PAL_MASK (0x7 < 0)

#define WPALCON_W0PAL_SHIFT (0)

#define WPALCON_W0PAL_25BPP_A888 (0x0 < 0)

#define WPALCON_W0PAL_24BPP (0x1 < 0)

#define WPALCON_W0PAL_19BPP_A666 (0x2 < 0)

#define WPALCON_W0PAL_18BPP_A665 (0x3 < 0)

#define WPALCON_W0PAL_18BPP (0x4 < 0)

#define WPALCON_W0PAL_16BPP_A555 (0x5 < 0)

#define WPALCON_W0PAL_16BPP_565 (0x6 < 0)

3、include/asm-arm/arch-s3c64xx下建立regs-fb-v4.h

#include

#define S3C_FB_MAX_WIN (5) /* number of hardware windows available. */

#define VIDCON1_FSTATUS_EVEN (1 < 15)

/* Video timing controls */

//#define VIDTCON0 (0x10)

//#define VIDTCON1 (0x14)

//#define VIDTCON2 (0x18)

/* Window position controls */

#define WINCON(_win) (0x20 + ((_win) * 4))

/* OSD1 and OSD4 do not have register D */

#define VIDOSD_BASE (0x40)

//#define VIDINTCON0 (0x130)

/* WINCONx */

#define WINCONx_CSCWIDTH_MASK (0x3 < 26)

#define WINCONx_CSCWIDTH_SHIFT (26)

#define WINCONx_CSCWIDTH_WIDE (0x0 < 26)

#define WINCONx_CSCWIDTH_NARROW (0x3 < 26)

#define WINCONx_ENLOCAL (1 < 22)

#define WINCONx_BUFSTATUS (1 < 21)

#define WINCONx_BUFSEL (1 < 20)

#define WINCONx_BUFAUTOEN (1 < 19)

#define WINCONx_YCbCr (1 < 13)

#define WINCON1_LOCALSEL_CAMIF (1 < 23)

#define WINCON2_LOCALSEL_CAMIF (1 < 23)

#define WINCON2_BLD_PIX (1 < 6)

#define WINCON2_ALPHA_SEL (1 < 1)

#define WINCON2_BPP

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

网站地图

Top