seq_puts(m, "\n");
#endif
- seq_printf(m, "Hardware\t: %s\n\n", "Amlogic");
+ seq_printf(m, "Hardware\t: %s\n", machine_model);
return 0;
}
phys_addr_t __fdt_pointer __initdata;
+const char *machine_model;
+EXPORT_SYMBOL(machine_model);
+
/*
* Standard memory resources
*/
static void __init setup_machine_fdt(phys_addr_t dt_phys)
{
void *dt_virt = fixmap_remap_fdt(dt_phys);
+ const char *name;
if (!dt_virt || !early_init_dt_scan(dt_virt)) {
pr_crit("\n"
cpu_relax();
}
- dump_stack_set_arch_desc("%s (DT)", of_flat_dt_get_machine_name());
+ name = of_flat_dt_get_machine_name();
+ if (!name)
+ return;
+
+ machine_model = name;
+
+ pr_info("Machine model: %s\n", name);
+ dump_stack_set_arch_desc("%s (DT)", name);
}
static void __init request_standard_resources(void)
#define MESON_CPU_VERSION_LVL_MISC 3
#define MESON_CPU_VERSION_LVL_MAX MESON_CPU_VERSION_LVL_MISC
+extern const char *machine_model;
+
#define CHIPID_LEN 16
void cpuinfo_get_chipid(unsigned char *cid, unsigned int size);
int meson_cpu_version_init(void);