From 9b441dabdc1bb2ba917f40c0730c8c2eb8c498e5 Mon Sep 17 00:00:00 2001 From: daeinki Date: Fri, 19 Mar 2010 19:30:14 +0900 Subject: [PATCH] s5pc110: fb: moved framebuffer region to reserved one. this region reserved wouldn't be rewrited by kernel so it could avoid noise screen filled by garbages after hibernation resume has been completed. Signed-off-by: daeinki --- board/samsung/universal/universal.c | 11 +++++++++++ include/configs/s5pc1xx_universal.h | 1 + 2 files changed, 12 insertions(+) diff --git a/board/samsung/universal/universal.c b/board/samsung/universal/universal.c index 6ddf1ec..9359000 100644 --- a/board/samsung/universal/universal.c +++ b/board/samsung/universal/universal.c @@ -2268,6 +2268,17 @@ int board_init(void) gd->bd->bi_arch_number = MACH_TYPE_AQUILA; gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100; +#ifdef CONFIG_LCD + /* + * set reserved memory region for framebuffer. + * + * this region wouldn't be rewrited by kernel so + * could avoid nosie screen filled by garbages + * after hibernation resume has been completed. + */ + gd->fb_base = CONFIG_FB_RESERVED_MEM; +#endif + /* Check H/W Revision */ check_hw_revision(); diff --git a/include/configs/s5pc1xx_universal.h b/include/configs/s5pc1xx_universal.h index 348de26..4e4b988 100644 --- a/include/configs/s5pc1xx_universal.h +++ b/include/configs/s5pc1xx_universal.h @@ -373,6 +373,7 @@ /* LCD */ #if 1 /* For LCD test */ #define CONFIG_LCD 1 +#define CONFIG_FB_RESERVED_MEM 0x42504000 #define CONFIG_S5PC1XXFB 1 #define CONFIG_S6E63M0 1 #define CONFIG_S6D16A0X 1 -- 2.7.4