mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-18 14:48: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
|
#ifdef CONFIG_PWM_NX
|
||||||
#include <pwm.h>
|
#include <pwm.h>
|
||||||
#endif
|
#endif
|
||||||
|
#include <video.h>
|
||||||
#include <asm/global_data.h>
|
#include <asm/global_data.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
|
|
||||||
@ -492,12 +493,8 @@ int splash_screen_prepare(void)
|
|||||||
ARRAY_SIZE(splash_locations));
|
ARRAY_SIZE(splash_locations));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!err) {
|
if (!err)
|
||||||
char addr[64];
|
env_set_hex("fb_addr", video_get_fb());
|
||||||
|
|
||||||
sprintf(addr, "0x%lx", gd->fb_base);
|
|
||||||
env_set("fb_addr", addr);
|
|
||||||
}
|
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user