[PATCH 1/5] soc: fsl: add support for arm64/Layerscape SOC specific drivers

From: ying.zhang22455
Date: Fri Apr 21 2017 - 03:58:29 EST


From: Stuart Yoder <stuart.yoder@xxxxxxx>

Signed-off-by: Zhang Ying-22455 <ying.zhang22455@xxxxxxx>
---
drivers/soc/Kconfig | 13 +++++++++++++
drivers/soc/fsl/Kconfig | 3 +++
drivers/soc/fsl/Kconfig.arm | 16 ++++++++++++++++
drivers/soc/fsl/Makefile | 1 +
4 files changed, 33 insertions(+)
create mode 100644 drivers/soc/fsl/Kconfig.arm

diff --git a/drivers/soc/Kconfig b/drivers/soc/Kconfig
index f09023f..157992b 100644
--- a/drivers/soc/Kconfig
+++ b/drivers/soc/Kconfig
@@ -13,4 +13,17 @@ source "drivers/soc/ux500/Kconfig"
source "drivers/soc/versatile/Kconfig"
source "drivers/soc/zte/Kconfig"

+config FSL_SOC_DRIVERS
+ bool "Freescale Soc Drivers"
+ depends on FSL_SOC || ARCH_MXC
+ default n
+ help
+ Say y here to enable Freescale Soc Device Drivers support.
+ The Soc Drivers provides the device driver that is a specific block
+ or feature on Freescale platform.
+
+if FSL_SOC_DRIVERS
+ source "drivers/soc/fsl/Kconfig"
+endif
+
endmenu
diff --git a/drivers/soc/fsl/Kconfig b/drivers/soc/fsl/Kconfig
index 7a9fb9b..333ecfb 100644
--- a/drivers/soc/fsl/Kconfig
+++ b/drivers/soc/fsl/Kconfig
@@ -16,3 +16,6 @@ config FSL_GUTS
Initially only reading SVR and registering soc device are supported.
Other guts accesses, such as reading RCW, should eventually be moved
into this driver as well.
+if ARM || ARM64
+source "drivers/soc/fsl/Kconfig.arm"
+endif
diff --git a/drivers/soc/fsl/Kconfig.arm b/drivers/soc/fsl/Kconfig.arm
new file mode 100644
index 0000000..47ec165
--- /dev/null
+++ b/drivers/soc/fsl/Kconfig.arm
@@ -0,0 +1,16 @@
+#
+# Freescale ARM SOC Drivers
+#
+
+config LS_SOC_DRIVERS
+ bool "Layerscape Soc Drivers"
+ depends on ARCH_LAYERSCAPE
+ default n
+ help
+ Say y here to enable Freescale Layerscape Soc Device Drivers support.
+ The Soc Drivers provides the device driver that is a specific block
+ or feature on Layerscape platform.
+
+if LS_SOC_DRIVERS
+ source "drivers/soc/fsl/layerscape/Kconfig"
+endif
diff --git a/drivers/soc/fsl/Makefile b/drivers/soc/fsl/Makefile
index 44b3beb..2b61dad 100644
--- a/drivers/soc/fsl/Makefile
+++ b/drivers/soc/fsl/Makefile
@@ -6,3 +6,4 @@ obj-$(CONFIG_FSL_DPAA) += qbman/
obj-$(CONFIG_QUICC_ENGINE) += qe/
obj-$(CONFIG_CPM) += qe/
obj-$(CONFIG_FSL_GUTS) += guts.o
+obj-$(CONFIG_LS_SOC_DRIVERS) += layerscape/
--
2.1.0.27.g96db324