summaryrefslogtreecommitdiff
path: root/common/board_f.c
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2018-11-07 03:50:34 -0800
committerTom Rini <trini@konsulko.com>2018-11-07 12:13:35 -0500
commit5764ea2df4efadd1ef0576ec45f33e137ce5aad8 (patch)
treeaa81e5fe3cc1fb8dc311ed9cf3857d647426e799 /common/board_f.c
parentf63f65e489625c68ba3980b810de33a7a0a677f5 (diff)
Revert "board_f: Use static print_cpuinfo if CONFIG_CPU is active"
This reverts commit c0434407b595f785fc7401237896c48c791b45fd. It turns out commit c0434407b595 broke some boards which have DM CPU driver with CONFIG_DISPLAY_CPUINFO option on. These boards just fail to boot when print_cpuinfo() is called during boot. Fixes are already sent to ML and in u-boot-dm/next, however since we are getting close to the v2018.11 release, it's safer we revert the original commit. This commit should be reverted after v2018.11 release. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/board_f.c')
-rw-r--r--common/board_f.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/common/board_f.c b/common/board_f.c
index 213d0440667..afafec5e4d0 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -11,7 +11,6 @@
#include <common.h>
#include <console.h>
-#include <cpu.h>
#include <dm.h>
#include <environment.h>
#include <fdtdec.h>
@@ -166,33 +165,6 @@ static int print_resetinfo(void)
}
#endif
-#if defined(CONFIG_DISPLAY_CPUINFO) && CONFIG_IS_ENABLED(CPU)
-static int print_cpuinfo(void)
-{
- struct udevice *dev;
- char desc[512];
- int ret;
-
- ret = uclass_first_device_err(UCLASS_CPU, &dev);
- if (ret) {
- debug("%s: Could not get CPU device (err = %d)\n",
- __func__, ret);
- return ret;
- }
-
- ret = cpu_get_desc(dev, desc, sizeof(desc));
- if (ret) {
- debug("%s: Could not get CPU description (err = %d)\n",
- dev->name, ret);
- return ret;
- }
-
- printf("%s", desc);
-
- return 0;
-}
-#endif
-
static int announce_dram_init(void)
{
puts("DRAM: ");