From: 陈亮 Date: Wed, 10 Sep 2014 02:39:52 +0000 (-0700) Subject: rk312x: cpu_subsys add cpu_type&&soc_type attr X-Git-Tag: firefly_0821_release~4730 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7b7f7e8ddb180b4c3e905f06109ac3f0bb39e327;p=firefly-linux-kernel-4.4.55.git rk312x: cpu_subsys add cpu_type&&soc_type attr Signed-off-by: 陈亮 --- diff --git a/arch/arm/mach-rockchip/cpu.c b/arch/arm/mach-rockchip/cpu.c index 998dc9a6143f..d9aaa12a07d1 100644 --- a/arch/arm/mach-rockchip/cpu.c +++ b/arch/arm/mach-rockchip/cpu.c @@ -23,6 +23,8 @@ static ssize_t type_show(struct device *dev, struct device_attribute *attr, char type = "rk30xx"; else if (cpu_is_rk2928()) type = "rk2928"; + else if (cpu_is_rk312x()) + type = "rk312x"; else type = ""; @@ -65,6 +67,10 @@ static ssize_t soc_show(struct device *dev, struct device_attribute *attr, char soc = "rk3068"; else if (soc_is_rk3000()) soc = "rk3000"; + else if (soc_is_rk3126()) + soc = "rk3126"; + else if (soc_is_rk3128()) + soc = "rk3128"; else soc = "";