From 7b7f7e8ddb180b4c3e905f06109ac3f0bb39e327 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=99=88=E4=BA=AE?= Date: Tue, 9 Sep 2014 19:39:52 -0700 Subject: [PATCH] rk312x: cpu_subsys add cpu_type&&soc_type attr MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈亮 --- arch/arm/mach-rockchip/cpu.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 = ""; -- 2.34.1