spl: dm: Kconfig: split REGMAP/SYSCON support for TPL from SPL
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Wed, 28 Jun 2017 23:38:49 +0000 (01:38 +0200)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Sun, 13 Aug 2017 15:12:20 +0000 (17:12 +0200)
This change introduces TPL variants of the REGMAP and SYSCON config
options (i.e. TPL_REGMAP and TPL_SYSCON in analogy to SPL_REGMAP and
SPL_SYSCON) in preparation of a finer-grained feature selection for
building feature-rich TPL variants.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
drivers/core/Kconfig
drivers/core/Makefile

index 79a25c6f06f5f6b3fac625790c384eb15137a0b6..7afef1f9a3f6f273894ca9207d7de4a274ba0fa6 100644 (file)
@@ -105,6 +105,16 @@ config SPL_REGMAP
          support any bus type (I2C, SPI) but so far this only supports
          direct memory access.
 
          support any bus type (I2C, SPI) but so far this only supports
          direct memory access.
 
+config TPL_REGMAP
+       bool "Support register maps in TPL"
+       depends on TPL_DM
+       help
+         Hardware peripherals tend to have one or more sets of registers
+         which can be accessed to control the hardware. A register map
+         models this with a simple read/write interface. It can in principle
+         support any bus type (I2C, SPI) but so far this only supports
+         direct memory access.
+
 config SYSCON
        bool "Support system controllers"
        depends on REGMAP
 config SYSCON
        bool "Support system controllers"
        depends on REGMAP
@@ -123,6 +133,15 @@ config SPL_SYSCON
          by this uclass, including accessing registers via regmap and
          assigning a unique number to each.
 
          by this uclass, including accessing registers via regmap and
          assigning a unique number to each.
 
+config TPL_SYSCON
+       bool "Support system controllers in TPL"
+       depends on TPL_REGMAP
+       help
+         Many SoCs have a number of system controllers which are dealt with
+         as a group by a single driver. Some common functionality is provided
+         by this uclass, including accessing registers via regmap and
+         assigning a unique number to each.
+
 config DEVRES
        bool "Managed device resources"
        depends on DM
 config DEVRES
        bool "Managed device resources"
        depends on DM
index fd2d4de0c832d6a83006a454c0277c296ccaad99..3d68c70b57c5e6549e5d1f2f6f4ba5b81a060707 100644 (file)
@@ -9,8 +9,8 @@ obj-$(CONFIG_DEVRES) += devres.o
 obj-$(CONFIG_$(SPL_)DM_DEVICE_REMOVE)  += device-remove.o
 obj-$(CONFIG_$(SPL_)SIMPLE_BUS)        += simple-bus.o
 obj-$(CONFIG_DM)       += dump.o
 obj-$(CONFIG_$(SPL_)DM_DEVICE_REMOVE)  += device-remove.o
 obj-$(CONFIG_$(SPL_)SIMPLE_BUS)        += simple-bus.o
 obj-$(CONFIG_DM)       += dump.o
-obj-$(CONFIG_$(SPL_)REGMAP)    += regmap.o
-obj-$(CONFIG_$(SPL_)SYSCON)    += syscon-uclass.o
+obj-$(CONFIG_$(SPL_TPL_)REGMAP)        += regmap.o
+obj-$(CONFIG_$(SPL_TPL_)SYSCON)        += syscon-uclass.o
 obj-$(CONFIG_OF_LIVE) += of_access.o of_addr.o
 ifndef CONFIG_DM_DEV_READ_INLINE
 obj-$(CONFIG_OF_CONTROL) += read.o
 obj-$(CONFIG_OF_LIVE) += of_access.o of_addr.o
 ifndef CONFIG_DM_DEV_READ_INLINE
 obj-$(CONFIG_OF_CONTROL) += read.o