summaryrefslogtreecommitdiffstats
path: root/drivers/soc/renesas/Makefile
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2016-11-14 19:37:08 +0100
committerSimon Horman <horms+renesas@verge.net.au>2016-11-23 20:22:21 +0100
commit8d6799a9ba23acd675f3243580ee6f1756fb4381 (patch)
treea65ddb09a2d5afdc39c830eb575520a32232a861 /drivers/soc/renesas/Makefile
parent5384f45cd9714287f198771bfb057eda799af9a8 (diff)
downloadlinux-stable-8d6799a9ba23acd675f3243580ee6f1756fb4381.tar.gz
linux-stable-8d6799a9ba23acd675f3243580ee6f1756fb4381.tar.bz2
linux-stable-8d6799a9ba23acd675f3243580ee6f1756fb4381.zip
soc: renesas: Identify SoC and register with the SoC bus
Identify the SoC type and revision, and register this information with the SoC bus, so it is available under /sys/devices/soc0/, and can be checked where needed using soc_device_match(). Identification is done using the Product Register or Common Chip Code Register, as declared in DT (PRR only for now), or using a hardcoded fallback if missing. Example: Detected Renesas R-Car Gen2 r8a7791 ES1.0 ... # cat /sys/devices/soc0/{machine,family,soc_id,revision} Koelsch R-Car Gen2 r8a7791 ES1.0 Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'drivers/soc/renesas/Makefile')
-rw-r--r--drivers/soc/renesas/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/soc/renesas/Makefile b/drivers/soc/renesas/Makefile
index 623039c3514c..f2737a9f96ae 100644
--- a/drivers/soc/renesas/Makefile
+++ b/drivers/soc/renesas/Makefile
@@ -1,3 +1,5 @@
+obj-$(CONFIG_SOC_BUS) += renesas-soc.o
+
obj-$(CONFIG_ARCH_R8A7779) += rcar-sysc.o r8a7779-sysc.o
obj-$(CONFIG_ARCH_R8A7790) += rcar-sysc.o r8a7790-sysc.o
obj-$(CONFIG_ARCH_R8A7791) += rcar-sysc.o r8a7791-sysc.o