add cpu node name
This commit is contained in:
parent
5b7e185f2a
commit
62414419fc
@ -27,6 +27,10 @@
|
||||
usbdp1 = &usbdp_phy1;
|
||||
};
|
||||
|
||||
system {
|
||||
cpu,model = "Rockchip RK3588";
|
||||
};
|
||||
|
||||
rkcif_mipi_lvds4: rkcif-mipi-lvds4 {
|
||||
compatible = "rockchip,rkcif-mipi-lvds";
|
||||
rockchip,hw = <&rkcif>;
|
||||
|
@ -6,6 +6,12 @@
|
||||
|
||||
#include "rk3588.dtsi"
|
||||
|
||||
/{
|
||||
system {
|
||||
cpu,model = "Rockchip RK3588J";
|
||||
};
|
||||
};
|
||||
|
||||
&cluster0_opp_table {
|
||||
/*
|
||||
* The Max frequency is 1296MHz in default normal mode.
|
||||
|
@ -5,3 +5,9 @@
|
||||
*/
|
||||
|
||||
#include "rk3588.dtsi"
|
||||
|
||||
/{
|
||||
system {
|
||||
cpu,model = "Rockchip RK3588M";
|
||||
};
|
||||
};
|
||||
|
@ -22,6 +22,10 @@
|
||||
#address-cells = <2>;
|
||||
#size-cells = <2>;
|
||||
|
||||
system {
|
||||
cpu,model = "Rockchip RK3588S";
|
||||
};
|
||||
|
||||
aliases {
|
||||
csi2dcphy0 = &csi2_dcphy0;
|
||||
csi2dcphy1 = &csi2_dcphy1;
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include <linux/sched.h>
|
||||
#include <linux/smp.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/of_platform.h>
|
||||
|
||||
unsigned int system_serial_low;
|
||||
EXPORT_SYMBOL(system_serial_low);
|
||||
@ -164,6 +165,9 @@ static const char *const compat_hwcap2_str[] = {
|
||||
static int c_show(struct seq_file *m, void *v)
|
||||
{
|
||||
int i, j;
|
||||
struct device_node *np;
|
||||
const char *cpu_model;
|
||||
|
||||
bool compat = personality(current->personality) == PER_LINUX32 ||
|
||||
is_compat_task();
|
||||
|
||||
@ -218,6 +222,12 @@ static int c_show(struct seq_file *m, void *v)
|
||||
}
|
||||
seq_puts(m, "\n");
|
||||
|
||||
np = of_find_node_by_path("/system");
|
||||
if (np) {
|
||||
if (!of_property_read_string(np, "cpu,model", &cpu_model))
|
||||
seq_printf(m, "cpu model\t: %s\n", cpu_model);
|
||||
of_node_put(np);
|
||||
}
|
||||
seq_printf(m, "CPU implementer\t: 0x%02x\n",
|
||||
MIDR_IMPLEMENTOR(midr));
|
||||
seq_printf(m, "CPU architecture: 8\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user