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>
+#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, };
static void setup_meminfo(void)
{
char meminfo[64] = {0, };
int misc_init_f (void);
int misc_init_r (void);
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);
/* common/exports.c */
void jumptable_init(void);
/* LCD */
#if 1 /* For LCD test */
/* 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
#define CONFIG_CMD_BMP
#endif
#endif /* CONFIG_VFD */
#ifdef CONFIG_LCD
#endif /* CONFIG_VFD */
#ifdef CONFIG_LCD
+ fb_set_reserved_mem();
+
/* board init may have inited fb_base */
if (!gd->fb_base) {
# ifndef PAGE_SIZE
/* board init may have inited fb_base */
if (!gd->fb_base) {
# ifndef PAGE_SIZE