From 374a8f27c2c6ac2aae38dc2819c3e65c27a417ac Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Thu, 6 Apr 2017 20:27:14 +0800 Subject: [PATCH] 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 --- drivers/soc/rockchip/Kconfig | 10 ++++++++++ drivers/soc/rockchip/Makefile | 1 + 2 files changed, 11 insertions(+) diff --git a/drivers/soc/rockchip/Kconfig b/drivers/soc/rockchip/Kconfig index 7c29ae5afe97..93f3eff897b6 100644 --- a/drivers/soc/rockchip/Kconfig +++ b/drivers/soc/rockchip/Kconfig @@ -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 diff --git a/drivers/soc/rockchip/Makefile b/drivers/soc/rockchip/Makefile index f6dc129ce404..219bfae97c2b 100644 --- a/drivers/soc/rockchip/Makefile +++ b/drivers/soc/rockchip/Makefile @@ -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