projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9bdb22
)
rk312x: cpu_subsys add cpu_type&&soc_type attr
author
陈亮
<cl@rock-chips.com>
Wed, 10 Sep 2014 02:39:52 +0000
(19:39 -0700)
committer
陈亮
<cl@rock-chips.com>
Wed, 10 Sep 2014 02:40:10 +0000
(19:40 -0700)
Signed-off-by: 陈亮 <cl@rock-chips.com>
arch/arm/mach-rockchip/cpu.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-rockchip/cpu.c
b/arch/arm/mach-rockchip/cpu.c
index 998dc9a6143f66ce2b04dc810ff4231755bc37b2..d9aaa12a07d1e2b76afb4bff11cf6cfb956668f2 100644
(file)
--- 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 = "";