浏览代码

power: twl4030: Move CONFIG_TWL4030_POWER to Kconfig

As requested, I added the CONFIG_TWL4030_POWER to Kconfig and made it
the implied default when selecting OMAP34XX as a platform.

Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Adam Ford 8 年之前
父节点
当前提交
7815c709ab
共有 2 个文件被更改,包括 8 次插入0 次删除
  1. 1 0
      arch/arm/mach-omap2/Kconfig
  2. 7 0
      drivers/power/Kconfig

+ 1 - 0
arch/arm/mach-omap2/Kconfig

@@ -79,6 +79,7 @@ config OMAP34XX
 	imply SPL_POWER_SUPPORT
 	imply SPL_POWER_SUPPORT
 	imply SPL_SERIAL_SUPPORT
 	imply SPL_SERIAL_SUPPORT
 	imply SYS_THUMB_BUILD
 	imply SYS_THUMB_BUILD
+	imply TWL4030_POWER
 
 
 config OMAP44XX
 config OMAP44XX
 	bool "OMAP44XX SoC"
 	bool "OMAP44XX SoC"

+ 7 - 0
drivers/power/Kconfig

@@ -308,4 +308,11 @@ config SY8106A_VOUT1_VOLT
 	is typically used to power the VDD-CPU and should be 1200mV.
 	is typically used to power the VDD-CPU and should be 1200mV.
 	Values can range from 680mV till 1950mV.
 	Values can range from 680mV till 1950mV.
 
 
+config TWL4030_POWER
+	depends on OMAP34XX
+	bool "Enable driver for TI TWL4030 power management chip"
+	---help---
+	The TWL4030 in a combination audio CODEC/power management with
+	GPIO and it is commonly used with the OMAP3 family of processors
+
 endmenu
 endmenu