From: daeinki Date: Fri, 19 Mar 2010 07:37:12 +0000 (+0900) Subject: s5pc110: fb: moved framebuffer region to reserved one. X-Git-Tag: JC13_20100322~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c5ae09fa97700e9e5858db9c87fdddec9832bc93;p=kernel%2Fu-boot.git s5pc110: fb: moved framebuffer region to reserved one. this region reserved wouldn't be rewrited by kernel. so after hibernation is completed it can avoid screen filled by garbages. Signed-off-by: daeinki --- diff --git a/board/samsung/universal/universal.c b/board/samsung/universal/universal.c index a61ce91..26071b2 100644 --- a/board/samsung/universal/universal.c +++ b/board/samsung/universal/universal.c @@ -2170,6 +2170,17 @@ void init_panel_info(vidinfo_t *vid) } #endif +#ifdef CONFIG_LCD +void fb_set_reserved_mem(void) +{ + unsigned int addr = CONFIG_FB_RESERVED_MEM_BASE; + + lcd_setmem(addr); + + gd->fb_base = addr; +} +#endif + static void setup_meminfo(void) { char meminfo[64] = {0, }; diff --git a/include/common.h b/include/common.h index 1805fda..7f083a7 100644 --- a/include/common.h +++ b/include/common.h @@ -306,6 +306,10 @@ void pciinfo (int, int); int misc_init_f (void); int misc_init_r (void); +#ifdef CONFIG_LCD +void fb_set_reserved_mem(void); +#endif + /* common/exports.c */ void jumptable_init(void); diff --git a/include/configs/s5pc1xx_universal.h b/include/configs/s5pc1xx_universal.h index 348de26..7e833d5 100644 --- a/include/configs/s5pc1xx_universal.h +++ b/include/configs/s5pc1xx_universal.h @@ -372,10 +372,11 @@ /* LCD */ #if 1 /* For LCD test */ -#define CONFIG_LCD 1 -#define CONFIG_S5PC1XXFB 1 -#define CONFIG_S6E63M0 1 -#define CONFIG_S6D16A0X 1 +#define CONFIG_FB_RESERVED_MEM_BASE 0x42504000 +#define CONFIG_LCD 1 +#define CONFIG_S5PC1XXFB 1 +#define CONFIG_S6E63M0 1 +#define CONFIG_S6D16A0X 1 #define CONFIG_CMD_BMP #endif diff --git a/lib_arm/board.c b/lib_arm/board.c index f5660a9..da989c6 100644 --- a/lib_arm/board.c +++ b/lib_arm/board.c @@ -318,6 +318,8 @@ void start_armboot (void) #endif /* CONFIG_VFD */ #ifdef CONFIG_LCD + fb_set_reserved_mem(); + /* board init may have inited fb_base */ if (!gd->fb_base) { # ifndef PAGE_SIZE