新聞中心

EEPW首頁 > 嵌入式系統(tǒng) > 設計應用 > uboot 下S3C6410 的LCD 顯示

uboot 下S3C6410 的LCD 顯示

作者: 時間:2016-11-11 來源:網(wǎng)絡 收藏
cf_console.c中屬于框架,基本不用改動,添加lcd,主要是通過video_hw_init()來實現(xiàn)lcd控制器的初始化。
具體工作:
1、smdk6410的修改
#if 1
//enable LCD display
#define CONFIG_CMD_BMP
#define CONFIG_VIDEO
#define CONFIG_VIDEO_S3C64X0
#define CONFIG_VIDEO_LOGO //display Linux Logo in upper left corner
#define VIDEO_FB_16BPP_WORD_SWAP //for BMP logo
#define CONFIG_VIDEO_SW_CURSOR //Draws a cursor after the last character.No blinking is provided.
//#define CONFIG_VIDEO_BMP_LOGO //use bmp_logo instead of linux_logo
//#define CONFIG_CONSOLE_EXTRA_INFO
//#define CONFIG_CONSOLE_CURSOR //on/off drawing cursor is done with delay loop in VIDEO_TSTC_FCT
//#define CONFIG_CONSOLE_TIME
#define CONFIG_CFB_CONSOLE
#define CONFIG_SYS_CONSOLE_IS_IN_ENV
//#define CFG_CONSOLE_INFO_QUIET
//#define VIDEO_FB_LITTLE_ENDIAN
#define CONFIG_SPLASH_SCREEN //enable splash screen support,implicitly enable U-Boot Bitmap Support.
#define CONFIG_SYS_VIDEO_LOGO_MAX_SIZE (1024*768+1024+100) /* 100 = slack */
#define CONFIG_VIDEO_BMP_GZIP //Gzip compressed BMP image support
#define CONFIG_CMD_UNZIP
#define LCD_VIDEO_ADDR 0x57a00000
#define LCD_VIDEO_BACKGROUND
#if defined(LCD_VIDEO_BACKGROUND)
#define LCD_VIDEO_BACKGROUND_ADDR (0x57600000)
#define LCD_VIDEO_BACKGROUND_LOADADDR (0x57500000)
#define LCD_VIDEO_BACKGROUND_LOADSIZE (0x80000)
#define LCD_VIDEO_BACKGROUND_ALPHA (0xa)
#define LCD_VIDEO_BACKGROUND_IN_NAND
//#define LCD_VIDEO_BACKGROUND_IN_MMC
#define LCD_VIDEO_BACKGROUND_FLASH_ADDR (0x10000000)
#endif
#define CONFIG_SYS_VIDEO_VCLOCK_HZ (133000000)
//RAM_TEXT = 0x57e00000
/*for PC-keyboard*/
#define VIDEO_KBD_INIT_FCT 0
#define VIDEO_TSTC_FCT serial_tstc
#define VIDEO_GETC_FCT serial_getc
#endif /*enable LCD display*/
#define CONFIG_EXTRA_ENV_SETTINGS //串口信息輸出到lcd上
"stdin=serial