projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a36338
)
arm: friendlyarm: Avoid accessing global_data fb_base
author
Simon Glass
<sjg@chromium.org>
Wed, 21 Aug 2024 16:18:58 +0000
(10:18 -0600)
committer
Tom Rini
<trini@konsulko.com>
Mon, 26 Aug 2024 20:05:38 +0000
(14:05 -0600)
Use the new video function to get the framebuffer base.
Signed-off-by: Simon Glass <sjg@chromium.org>
board/friendlyarm/nanopi2/board.c
patch
|
blob
|
history
diff --git
a/board/friendlyarm/nanopi2/board.c
b/board/friendlyarm/nanopi2/board.c
index c8cbc5a15fa8c5c8094bfc714855a1bc57343a34..b32dfc6b570ca32fec32e2c008c37e9be7c166c6 100644
(file)
--- a/
board/friendlyarm/nanopi2/board.c
+++ b/
board/friendlyarm/nanopi2/board.c
@@
-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;
}