staging: regulator: hi6421v600-regulator: add it to the building system
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 17 Aug 2020 07:10:58 +0000 (09:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Aug 2020 14:15:27 +0000 (16:15 +0200)
Change the binding logic to ensure that the PMIC SPMI
driver will run before the regulator code and add it to the
building system.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/2992dc49945dcfb07c4bd96fa5c288c4e679701a.1597647359.git.mchehab+huawei@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/hikey9xx/Kconfig
drivers/staging/hikey9xx/Makefile

index 7ca083b7e94dd58f8fd0a801a87a2d02da7443ca..76267b9be562965630eca279fec9b3492d85f5bc 100644 (file)
@@ -15,7 +15,6 @@ config MFD_HI6421_SPMI
        tristate "HiSilicon Hi6421v600 SPMI PMU/Codec IC"
        depends on OF
        select MFD_CORE
-       select REGMAP_MMIO
        help
          Add support for HiSilicon Hi6421v600 SPMI PMIC. Hi6421 includes
          multi-functions, such as regulators, RTC, codec, Coulomb counter,
@@ -25,3 +24,12 @@ config MFD_HI6421_SPMI
          individual components like voltage regulators under corresponding
          menus in order to enable them.
          We communicate with the Hi6421v600 via a SPMI bus.
+
+# to be placed at drivers/regulator
+config REGULATOR_HI6421V600
+       tristate "HiSilicon Hi6421v600 PMIC voltage regulator support"
+       depends on MFD_HI6421_PMIC && OF
+       help
+         This driver provides support for the voltage regulators on
+         HiSilicon Hi6421v600 PMU / Codec IC.
+         This is used on Kirin 3670 boards, like HiKey 970.
index 79de37da7a8fdc6d83e8d5f74e4744515e1aa65d..9371dcc3d35bbdd5448b4eb8cc1bfc118dcf39b2 100644 (file)
@@ -1,4 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
 
-obj-$(CONFIG_SPMI_HISI3670)    += hisi-spmi-controller.o
-obj-$(CONFIG_MFD_HI6421_SPMI)  += hi6421-spmi-pmic.o
+obj-$(CONFIG_SPMI_HISI3670)            += hisi-spmi-controller.o
+obj-$(CONFIG_MFD_HI6421_SPMI)          += hi6421-spmi-pmic.o
+obj-$(CONFIG_REGULATOR_HI6421V600)     += hi6421v600-regulator.o