Commit e425d18a authored by Alexander Potashev's avatar Alexander Potashev

RT106080. lib_arm: Allow manual setting of framebuffer address

parent 75261c55
......@@ -335,6 +335,9 @@ void start_armboot (void)
#ifdef CONFIG_LCD
/* board init may have inited fb_base */
if (!gd->fb_base) {
#ifdef CONFIG_FB_ADDR
gd->fb_base = CONFIG_FB_ADDR;
#else
# ifndef PAGE_SIZE
# define PAGE_SIZE 4096
# endif
......@@ -345,6 +348,7 @@ void start_armboot (void)
addr = (_bss_end + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1);
lcd_setmem (addr);
gd->fb_base = addr;
#endif /* CONFIG_FB_ADDR */
}
#endif /* CONFIG_LCD */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment