|
@@ -11,6 +11,7 @@
|
|
|
|
|
|
#include <common.h>
|
|
#include <common.h>
|
|
#include <console.h>
|
|
#include <console.h>
|
|
|
|
+#include <cpu.h>
|
|
#include <dm.h>
|
|
#include <dm.h>
|
|
#include <environment.h>
|
|
#include <environment.h>
|
|
#include <fdtdec.h>
|
|
#include <fdtdec.h>
|
|
@@ -165,6 +166,33 @@ static int print_resetinfo(void)
|
|
}
|
|
}
|
|
#endif
|
|
#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)
|
|
static int announce_dram_init(void)
|
|
{
|
|
{
|
|
puts("DRAM: ");
|
|
puts("DRAM: ");
|