soc: rockchip: add cpuinfo support

Set system_serial_low/high from eFuse ID.
Serial can read from /proc/cpuinfo.

Change-Id: If412fc5a89a5e5092b510452fc5a126fdd374ac2
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
Tao Huang
2017-04-06 20:27:14 +08:00
parent a97ecd3b34
commit 374a8f27c2
2 changed files with 11 additions and 0 deletions

View File

@@ -7,6 +7,16 @@ source "drivers/soc/rockchip/Kconfig.cpu"
# Rockchip Soc drivers
#
config ROCKCHIP_CPUINFO
tristate "Rockchip cpuinfo support"
depends on (ROCKCHIP_EFUSE || ROCKCHIP_OTP) && (ARM64 || ARM)
help
Say y here to enable Rockchip cpuinfo support.
Set system_serial_low/high from eFuse ID.
Serial can read from /proc/cpuinfo.
If unsure, say N.
config ROCKCHIP_GRF
bool
default y

View File

@@ -2,6 +2,7 @@
#
# Rockchip Soc drivers
#
obj-$(CONFIG_ROCKCHIP_CPUINFO) += rockchip-cpuinfo.o
obj-$(CONFIG_ROCKCHIP_GRF) += grf.o
obj-$(CONFIG_ROCKCHIP_IODOMAIN) += io-domain.o
obj-$(CONFIG_ROCKCHIP_PM_DOMAINS) += pm_domains.o