summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-12-13 20:49:13 +0000
committerTom Rini <trini@ti.com>2013-02-04 09:05:45 -0500
commitc8fcd0f279657da4ddb3beb90058483b5b38de31 (patch)
treeecfc544fcb878fdd4e876d65e153e1b0f63a190c /common
parent50b1fa399608652a47c1d2ae6d49754b86165ba8 (diff)
downloadblackbird-obmc-uboot-c8fcd0f279657da4ddb3beb90058483b5b38de31.tar.gz
blackbird-obmc-uboot-c8fcd0f279657da4ddb3beb90058483b5b38de31.zip
Only use fb_base if we have a display
The ideal of having a frame buffer when there isn't a display is not that useful. Change the bdinfo command to expect this only when we have an lcd or video display. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_bdinfo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c
index 82a3693359..6800c4f9ce 100644
--- a/common/cmd_bdinfo.c
+++ b/common/cmd_bdinfo.c
@@ -377,7 +377,9 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
print_num("reloc off", gd->reloc_off);
print_num("irq_sp", gd->irq_sp); /* irq stack pointer */
print_num("sp start ", gd->start_addr_sp);
+#if defined(CONFIG_LCD) || defined(CONFIG_VIDEO)
print_num("FB base ", gd->fb_base);
+#endif
/*
* TODO: Currently only support for davinci SOC's is added.
* Remove this check once all the board implement this.
@@ -463,7 +465,9 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
print_eth(0);
printf("ip_addr = %s\n", getenv("ipaddr"));
#endif
+#if defined(CONFIG_LCD) || defined(CONFIG_VIDEO)
print_num("FB base ", gd->fb_base);
+#endif
return 0;
}
OpenPOWER on IntegriCloud