]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
gpio: adp5585: Add SPL config for ADP5585 driver
authorYe Li <ye.li@nxp.com>
Sun, 29 Sep 2024 01:32:26 +0000 (09:32 +0800)
committerFabio Estevam <festevam@gmail.com>
Fri, 4 Oct 2024 12:14:29 +0000 (09:14 -0300)
So we can disable to build ADP5585 in SPL to save size

Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Alice Guo <alice.guo@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
drivers/gpio/Kconfig
drivers/gpio/Makefile

index 3996333fe8dc6df4ad9ce2d24fb97dff088558d0..1e5711663eb8adc4109cb9793c49e679025e2ef6 100644 (file)
@@ -700,4 +700,10 @@ config RZG2L_GPIO
          Support the gpio functionality of the pin function controller (PFC)
          on the Renesas RZ/G2L SoC family.
 
+config SPL_ADP5585_GPIO
+       bool "ADP5585 GPIO driver in SPL"
+       depends on SPL_DM_GPIO && SPL_I2C
+       help
+         Support ADP5585 GPIO expander in SPL.
+
 endif
index da0faf052464c52070e5ad41f25e32b8cf74349d..56c20e4c635c08673d2900746f787bf4fc388dcb 100644 (file)
@@ -76,5 +76,5 @@ obj-$(CONFIG_SL28CPLD_GPIO)   += sl28cpld-gpio.o
 obj-$(CONFIG_ZYNQMP_GPIO_MODEPIN)      += zynqmp_gpio_modepin.o
 obj-$(CONFIG_SLG7XL45106_I2C_GPO)      += gpio_slg7xl45106.o
 obj-$(CONFIG_FTGPIO010)                += ftgpio010.o
-obj-$(CONFIG_ADP5585_GPIO)     += adp5585_gpio.o
+obj-$(CONFIG_$(SPL_)ADP5585_GPIO)      += adp5585_gpio.o
 obj-$(CONFIG_RZG2L_GPIO)       += rzg2l-gpio.o