From: Minkyu Kang Date: Tue, 18 Jan 2011 05:10:28 +0000 (+0900) Subject: fb: use CONFIG_FB_ADDR config X-Git-Tag: v0.2~55 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=93c0ece7c941c9cfa5a3b53d199b74e12d3dd43f;p=kernel%2Fu-boot.git fb: use CONFIG_FB_ADDR config Signed-off-by: Minkyu Kang --- diff --git a/board/samsung/f1_c110/f1.c b/board/samsung/f1_c110/f1.c index 92bc557..43ee29e 100644 --- a/board/samsung/f1_c110/f1.c +++ b/board/samsung/f1_c110/f1.c @@ -56,7 +56,6 @@ DECLARE_GLOBAL_DATA_PTR; static unsigned int board_rev; static unsigned int battery_soc; static struct s5pc110_gpio *gpio; -extern vidinfo_t panel_info; enum { I2C_2, @@ -942,17 +941,6 @@ int board_init(void) /* Set Initial global variables */ gpio = (struct s5pc110_gpio *)samsung_get_base_gpio(); -#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/board/samsung/universal_c100/universal.c b/board/samsung/universal_c100/universal.c index 9fd9819..e2deff2 100644 --- a/board/samsung/universal_c100/universal.c +++ b/board/samsung/universal_c100/universal.c @@ -2458,17 +2458,6 @@ 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/board/samsung/universal_c110/universal.c b/board/samsung/universal_c110/universal.c index ab34f43..8d85e2c 100644 --- a/board/samsung/universal_c110/universal.c +++ b/board/samsung/universal_c110/universal.c @@ -60,7 +60,6 @@ static unsigned int arch_number; static unsigned int board_rev; static unsigned int battery_soc; static struct s5pc110_gpio *gpio; -extern vidinfo_t panel_info; enum { I2C_2, @@ -2613,17 +2612,6 @@ int board_init(void) /* Set Initial global variables */ gpio = (struct s5pc110_gpio *)samsung_get_base_gpio(); -#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(); @@ -2639,11 +2627,6 @@ int dram_init(void) { gd->ram_size = PHYS_SDRAM_1_SIZE; -#ifdef CONFIG_LCD - /* Initialize the panel info */ - memset(&panel_info, 0x0, sizeof(panel_info)); -#endif - return 0; } diff --git a/board/samsung/universal_c210/universal.c b/board/samsung/universal_c210/universal.c index 366d1cf..a5223c2 100644 --- a/board/samsung/universal_c210/universal.c +++ b/board/samsung/universal_c210/universal.c @@ -44,7 +44,6 @@ static struct s5pc210_gpio_part2 *gpio2; static unsigned int battery_soc; static unsigned int board_rev; -extern vidinfo_t panel_info; u32 get_board_rev(void) { @@ -181,17 +180,6 @@ int board_init(void) gd->bd->bi_arch_number = MACH_TYPE; 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_hw_revision(); return 0; @@ -213,11 +201,6 @@ int dram_init(void) /* Reset on fsa9480 */ check_micro_usb(1); -#ifdef CONFIG_LCD - /* Initialize the panel info */ - memset(&panel_info, 0x0, sizeof(panel_info)); -#endif - return 0; } diff --git a/include/configs/s5pc100_universal.h b/include/configs/s5pc100_universal.h index acc05ec..3283132 100644 --- a/include/configs/s5pc100_universal.h +++ b/include/configs/s5pc100_universal.h @@ -413,7 +413,7 @@ /* LCD */ #if 1 /* For LCD test */ #define CONFIG_LCD 1 -#define CONFIG_FB_RESERVED_MEM 0x42504000 +#define CONFIG_FB_ADDR 0x42504000 #define CONFIG_S5PC1XXFB 1 #define CONFIG_DSIM 1 #define CONFIG_S6E63M0 1 diff --git a/include/configs/s5pc110_f1.h b/include/configs/s5pc110_f1.h index 54201f6..fe61dcb 100644 --- a/include/configs/s5pc110_f1.h +++ b/include/configs/s5pc110_f1.h @@ -427,7 +427,7 @@ /* LCD */ #if 0 /* For LCD test */ #define CONFIG_LCD 1 -#define CONFIG_FB_RESERVED_MEM 0x42504000 +#define CONFIG_FB_ADDR 0x42504000 #define CONFIG_S5PC1XXFB 1 #define CONFIG_DSIM 1 #define CONFIG_S6E63M0 1 diff --git a/include/configs/s5pc110_universal.h b/include/configs/s5pc110_universal.h index 1dcde3e..99eda4d 100644 --- a/include/configs/s5pc110_universal.h +++ b/include/configs/s5pc110_universal.h @@ -434,7 +434,7 @@ /* LCD */ #if 1 /* For LCD test */ #define CONFIG_LCD 1 -#define CONFIG_FB_RESERVED_MEM 0x42504000 +#define CONFIG_FB_ADDR 0x42504000 #define CONFIG_S5PC1XXFB 1 #define CONFIG_DSIM 1 #define CONFIG_S6E63M0 1 diff --git a/include/configs/s5pc210_universal.h b/include/configs/s5pc210_universal.h index a587559..2f0666b 100644 --- a/include/configs/s5pc210_universal.h +++ b/include/configs/s5pc210_universal.h @@ -401,7 +401,7 @@ /* LCD */ #if 1 #define CONFIG_LCD 1 -#define CONFIG_FB_RESERVED_MEM 0x52504000 +#define CONFIG_FB_ADDR 0x52504000 #define CONFIG_S5PC1XXFB 1 #define CONFIG_LD9040 1 #define CONFIG_DSIM 1