mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-18 10:54:37 +00:00
arm: ronetix: 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
54a221d2cd
commit
4b39b56c3a
1 changed files with 4 additions and 2 deletions
|
@ -9,6 +9,7 @@
|
|||
|
||||
#include <config.h>
|
||||
#include <init.h>
|
||||
#include <video.h>
|
||||
#include <asm/global_data.h>
|
||||
#include <linux/sizes.h>
|
||||
#include <asm/io.h>
|
||||
|
@ -110,11 +111,12 @@ int dram_init_banksize(void)
|
|||
#ifdef CONFIG_DISPLAY_BOARDINFO
|
||||
int checkboard (void)
|
||||
{
|
||||
ulong fb_base = video_get_fb();
|
||||
char *ss;
|
||||
|
||||
printf ("Board : Ronetix PM9263\n");
|
||||
|
||||
switch (gd->fb_base) {
|
||||
switch (fb_base) {
|
||||
case PHYS_PSRAM:
|
||||
ss = "(PSRAM)";
|
||||
break;
|
||||
|
@ -127,7 +129,7 @@ int checkboard (void)
|
|||
ss = "";
|
||||
break;
|
||||
}
|
||||
printf("Video memory : 0x%08lX %s\n", gd->fb_base, ss );
|
||||
printf("Video memory : 0x%08lX %s\n", fb_base, ss);
|
||||
|
||||
printf ("\n");
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue