mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-17 22:28:17 +01:00
arm: friendlyarm: Avoid accessing global_data fb_base
Use the new video function to get the framebuffer base. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
1a36338e68
commit
54a221d2cd
@ -11,6 +11,7 @@
|
||||
#ifdef CONFIG_PWM_NX
|
||||
#include <pwm.h>
|
||||
#endif
|
||||
#include <video.h>
|
||||
#include <asm/global_data.h>
|
||||
#include <asm/io.h>
|
||||
|
||||
@ -492,12 +493,8 @@ int splash_screen_prepare(void)
|
||||
ARRAY_SIZE(splash_locations));
|
||||
}
|
||||
|
||||
if (!err) {
|
||||
char addr[64];
|
||||
|
||||
sprintf(addr, "0x%lx", gd->fb_base);
|
||||
env_set("fb_addr", addr);
|
||||
}
|
||||
if (!err)
|
||||
env_set_hex("fb_addr", video_get_fb());
|
||||
|
||||
return err;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user