s5pc110: fb: moved framebuffer region to reserved one.
authordaeinki <inki.dae@samsung.com>
Fri, 19 Mar 2010 07:37:12 +0000 (16:37 +0900)
committerdaeinki <inki.dae@samsung.com>
Fri, 19 Mar 2010 07:37:12 +0000 (16:37 +0900)
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 <inki.dae@samsung.com>
board/samsung/universal/universal.c
include/common.h
include/configs/s5pc1xx_universal.h
lib_arm/board.c

index a61ce91..26071b2 100644 (file)
@@ -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, };
index 1805fda..7f083a7 100644 (file)
@@ -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);
 
index 348de26..7e833d5 100644 (file)
 
 /* 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
 
index f5660a9..da989c6 100644 (file)
@@ -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