Skip to contentSkip to conversation

power: TWL4030: Move CONFIG_TWL4030_POWER to Kconfig

PATCH New Adam Ford 3 participants 14 messages Apr 26, 2017 – May 10, 2017 Arm (32-bit)

lore
Share & tools
lore

Adam Ford

author
#0 lore raw

cover power: TWL4030: Move CONFIG_TWL4030_POWER to Kconfig

This series will move CONFIG_TWL4030_POWER to Kconfig from include/configs. It will enable it by default when selecting OMAP34XX and remove it from a small handful of include/config files that are not yet using ti_omap3_common.h as well as ti_omap3_common.h. I do not have the other hardware, but I tested this with a Logic PD Torpedo based on a DM3730 (OMAP3630) without issue.

Adam Ford (2):
power: twl4030: Move CONFIG_TWL4030_POWER to Kconfig
power: twl4030: Remove CONFIG_TWL4030_POWER from include/configs

 arch/arm/Kconfig                  | 1 +
 drivers/power/Kconfig             | 7 +++++++
 include/configs/cm_t35.h          | 1 -
 include/configs/nokia_rx51.h      | 1 -
 include/configs/omap3_evm.h       | 1 -
 include/configs/sniper.h          | 6 ------
 include/configs/tao3530.h         | 1 -
 include/configs/ti_omap3_common.h | 3 ---
 include/configs/tricorder.h       | 1 -
 scripts/config_whitelist.txt      | 1 -
 10 files changed, 8 insertions(+), 15 deletions(-)
Signature · 1 line
2.7.4
author
#1 lore raw

PATCH 1/2 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.

arch/arm/Kconfig +1 -0
index 7812f21..f9ecded 100644
@@ -702,6 +702,7 @@ config OMAP34XX
 	imply SPL_POWER_SUPPORT
 	imply SPL_SERIAL_SUPPORT
 	imply SYS_THUMB_BUILD
+	imply TWL4030_POWER
 
 config OMAP44XX
 	bool "OMAP44XX SoC"
drivers/power/Kconfig +7 -0
index 64e5bc2..4b00b35 100644
@@ -304,4 +304,11 @@ config SY8106A_VOUT1_VOLT
 	is typically used to power the VDD-CPU and should be 1200mV.
 	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
Signature · 1 line
2.7.4
#3 lore raw

PATCH 1/2 power: twl4030: Move CONFIG_TWL4030_POWER to Kconfig

In reply to Adam Ford

arch/arm/Kconfig

Quoted 8 lines · Adam Ford

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

arch/arm/Kconfig +0 -0
index 7812f21..f9ecded 100644

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170510/be46b870/attachment.sig>
author
#4 lore raw

PATCH 2/2 power: twl4030: Remove CONFIG_TWL4030_POWER from include/configs

In reply to Adam Ford

With the addition of Kconfig now having CONFIG_TWL4030_POWER and with that being the default when OMAP34XX is selected, this is no longer needed in include/configs and can be removed from the whitelist.

This has only been tested on logic PD DM3730 using ti_omap3_common.h

include/configs/cm_t35.h +0 -1
index 8e6571b..8d15c78 100644
@@ -109,7 +109,6 @@
 /*
  * TWL4030
  */
-#define CONFIG_TWL4030_POWER
 #define CONFIG_TWL4030_LED
 
 /*
include/configs/nokia_rx51.h +0 -1
index e99968c..c2c02b1 100644
@@ -128,7 +128,6 @@
 /*
  * TWL4030
  */
-#define CONFIG_TWL4030_POWER
 #define CONFIG_TWL4030_LED
 #define CONFIG_TWL4030_KEYPAD
 
include/configs/omap3_evm.h +0 -1
index 329dc73..bf5b2f5 100644
@@ -89,7 +89,6 @@
 #define CONFIG_SDRC			/* The chip has SDRC controller */
 
 #define CONFIG_OMAP3_EVM		/* This is a OMAP3 EVM */
-#define CONFIG_TWL4030_POWER		/* with TWL4030 PMIC */
 
 /*
  * Clock related definitions
include/configs/sniper.h +0 -6
index 6ddb83f..5214827 100644
@@ -83,12 +83,6 @@
 #define CONFIG_I2C_MULTI_BUS
 
 /*
- * Power
- */
-
-#define CONFIG_TWL4030_POWER
-
-/*
  * Input
  */
 
include/configs/tao3530.h +0 -1
index 3f2da57..3ea2caf 100644
@@ -90,7 +90,6 @@
 /*
  * TWL4030
  */
-#define CONFIG_TWL4030_POWER
 #define CONFIG_TWL4030_LED
 
 /*
include/configs/ti_omap3_common.h +0 -3
index 0147662..393d867 100644
@@ -58,9 +58,6 @@
 
 #define CONFIG_SYS_MONITOR_LEN		(256 << 10)
 
-/* TWL4030 */
-#define CONFIG_TWL4030_POWER
-
 /* SPL */
 #define CONFIG_SPL_TEXT_BASE		0x40200800
 #define CONFIG_SPL_LDSCRIPT		"arch/arm/mach-omap2/u-boot-spl.lds"
include/configs/tricorder.h +0 -1
index fc70be1..9741ca5 100644
@@ -82,7 +82,6 @@
 #define CONFIG_SYS_EEPROM_BUS_NUM	1
 
 /* TWL4030 */
-#define CONFIG_TWL4030_POWER
 #define CONFIG_TWL4030_LED
 
 /* Board NAND Info */
scripts/config_whitelist.txt +0 -1
index 5e515d2..d39a16e 100644
@@ -6360,7 +6360,6 @@ CONFIG_TUXX1
 CONFIG_TWL4030_INPUT
 CONFIG_TWL4030_KEYPAD
 CONFIG_TWL4030_LED
-CONFIG_TWL4030_POWER
 CONFIG_TWL4030_PWM
 CONFIG_TWL4030_USB
 CONFIG_TWL6030_INPUT
Signature · 1 line
2.7.4
#5 lore raw

PATCH 2/2 power: twl4030: Remove CONFIG_TWL4030_POWER from include/configs

Quoted 9 lines · Adam Ford

With the addition of Kconfig now having CONFIG_TWL4030_POWER and with that being the default when OMAP34XX is selected, this is no longer needed in include/configs and can be removed from the whitelist.

This has only been tested on logic PD DM3730 using ti_omap3_common.h

Missing -- here?

author
#6 lore raw

PATCH 2/2 power: twl4030: Remove CONFIG_TWL4030_POWER from include/configs

Quoted 6 lines · Simon Glass
Quoted 5 lines · Adam Ford

With the addition of Kconfig now having CONFIG_TWL4030_POWER and with that being the default when OMAP34XX is selected, this is no longer needed in include/configs and can be removed from the whitelist.

Quoted 6 lines
Quoted 4 lines

This has only been tested on logic PD DM3730 using ti_omap3_common.h

Missing -- here?

I am not sure what you're saying.

adam

Quoted 2 lines
#7 lore raw

PATCH 2/2 power: twl4030: Remove CONFIG_TWL4030_POWER from include/configs

Hi Adam,

Quoted 7 lines · Adam Ford
Quoted 6 lines · Simon Glass
Quoted 5 lines · Adam Ford

With the addition of Kconfig now having CONFIG_TWL4030_POWER and with that being the default when OMAP34XX is selected, this is no longer needed in include/configs and can be removed from the whitelist.

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

This has only been tested on logic PD DM3730 using ti_omap3_common.h

Missing -- here?

I am not sure what you're saying.

Normally there is a line in the patch like this:

---

which separates the commit message from the patch. How did you generate this patch?

Quoted 4 lines

adam

Quoted 2 lines
#8 lore raw

PATCH 2/2 power: twl4030: Remove CONFIG_TWL4030_POWER from include/configs

In reply to Adam Ford

include/configs/cm_t35.h

Quoted 12 lines · Adam Ford

With the addition of Kconfig now having CONFIG_TWL4030_POWER and with that being the default when OMAP34XX is selected, this is no longer needed in include/configs and can be removed from the whitelist.

This has only been tested on logic PD DM3730 using ti_omap3_common.h

include/configs/cm_t35.h +0 -0
index 8e6571b..8d15c78 100644

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170510/b0a14087/attachment-0001.sig>
#9 lore raw

cover power: TWL4030: Move CONFIG_TWL4030_POWER to Kconfig

In reply to Adam Ford
Quoted 10 lines · Adam Ford

This series will move CONFIG_TWL4030_POWER to Kconfig from include/configs. It will enable it by default when selecting OMAP34XX and remove it from a small handful of include/config files that are not yet using ti_omap3_common.h as well as ti_omap3_common.h. I do not have the other hardware, but I tested this with a Logic PD Torpedo based on a DM3730 (OMAP3630) without issue.

Adam Ford (2):
power: twl4030: Move CONFIG_TWL4030_POWER to Kconfig
power: twl4030: Remove CONFIG_TWL4030_POWER from include/configs

Quoted 11 lines
 arch/arm/Kconfig                  | 1 +
 drivers/power/Kconfig             | 7 +++++++
 include/configs/cm_t35.h          | 1 -
 include/configs/nokia_rx51.h      | 1 -
 include/configs/omap3_evm.h       | 1 -
 include/configs/sniper.h          | 6 ------
 include/configs/tao3530.h         | 1 -
 include/configs/ti_omap3_common.h | 3 ---
 include/configs/tricorder.h       | 1 -
 scripts/config_whitelist.txt      | 1 -
 10 files changed, 8 insertions(+), 15 deletions(-)

This looks good, but should just be a single patch that adds to Kconfig and updates the include files. Thanks for doing this!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170426/182a9d65/attachment.sig>
author
#10 lore raw

cover power: TWL4030: Move CONFIG_TWL4030_POWER to Kconfig

Quoted 24 lines · Tom Rini
Quoted 10 lines · Adam Ford

This series will move CONFIG_TWL4030_POWER to Kconfig from include/configs. It will enable it by default when selecting OMAP34XX and remove it from a small handful of include/config files that are not yet using ti_omap3_common.h as well as ti_omap3_common.h. I do not have the other hardware, but I tested this with a Logic PD Torpedo based on a DM3730 (OMAP3630) without issue.

Adam Ford (2):
power: twl4030: Move CONFIG_TWL4030_POWER to Kconfig
power: twl4030: Remove CONFIG_TWL4030_POWER from include/configs

Quoted 11 lines
 arch/arm/Kconfig                  | 1 +
 drivers/power/Kconfig             | 7 +++++++
 include/configs/cm_t35.h          | 1 -
 include/configs/nokia_rx51.h      | 1 -
 include/configs/omap3_evm.h       | 1 -
 include/configs/sniper.h          | 6 ------
 include/configs/tao3530.h         | 1 -
 include/configs/ti_omap3_common.h | 3 ---
 include/configs/tricorder.h       | 1 -
 scripts/config_whitelist.txt      | 1 -
 10 files changed, 8 insertions(+), 15 deletions(-)
Quoted 2 lines

This looks good, but should just be a single patch that adds to Kconfig and updates the include files. Thanks for doing this!

Do you want me to re-post with a V2 with them merged?

Quoted 3 lines

--
Tom

#11 lore raw

cover power: TWL4030: Move CONFIG_TWL4030_POWER to Kconfig

Quoted 25 lines · Adam Ford
Quoted 24 lines · Tom Rini
Quoted 21 lines · Adam Ford

This series will move CONFIG_TWL4030_POWER to Kconfig from include/configs. It will enable it by default when selecting OMAP34XX and remove it from a small handful of include/config files that are not yet using ti_omap3_common.h as well as ti_omap3_common.h. I do not have the other hardware, but I tested this with a Logic PD Torpedo based on a DM3730 (OMAP3630) without issue.

Adam Ford (2):
power: twl4030: Move CONFIG_TWL4030_POWER to Kconfig
power: twl4030: Remove CONFIG_TWL4030_POWER from include/configs

 arch/arm/Kconfig                  | 1 +
 drivers/power/Kconfig             | 7 +++++++
 include/configs/cm_t35.h          | 1 -
 include/configs/nokia_rx51.h      | 1 -
 include/configs/omap3_evm.h       | 1 -
 include/configs/sniper.h          | 6 ------
 include/configs/tao3530.h         | 1 -
 include/configs/ti_omap3_common.h | 3 ---
 include/configs/tricorder.h       | 1 -
 scripts/config_whitelist.txt      | 1 -
 10 files changed, 8 insertions(+), 15 deletions(-)
Quoted 4 lines
Quoted 2 lines

This looks good, but should just be a single patch that adds to Kconfig and updates the include files. Thanks for doing this!

Do you want me to re-post with a V2 with them merged?

No, that's OK. Just keep in mind in case anyone else has comments. Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170426/3650f704/attachment.sig>
author
#12 lore raw

cover power: TWL4030: Move CONFIG_TWL4030_POWER to Kconfig

Quoted 26 lines · Tom Rini
Quoted 25 lines · Adam Ford
Quoted 24 lines · Tom Rini
Quoted 21 lines · Adam Ford

This series will move CONFIG_TWL4030_POWER to Kconfig from include/configs. It will enable it by default when selecting OMAP34XX and remove it from a small handful of include/config files that are not yet using ti_omap3_common.h as well as ti_omap3_common.h. I do not have the other hardware, but I tested this with a Logic PD Torpedo based on a DM3730 (OMAP3630) without issue.

Adam Ford (2):
power: twl4030: Move CONFIG_TWL4030_POWER to Kconfig
power: twl4030: Remove CONFIG_TWL4030_POWER from include/configs

 arch/arm/Kconfig                  | 1 +
 drivers/power/Kconfig             | 7 +++++++
 include/configs/cm_t35.h          | 1 -
 include/configs/nokia_rx51.h      | 1 -
 include/configs/omap3_evm.h       | 1 -
 include/configs/sniper.h          | 6 ------
 include/configs/tao3530.h         | 1 -
 include/configs/ti_omap3_common.h | 3 ---
 include/configs/tricorder.h       | 1 -
 scripts/config_whitelist.txt      | 1 -
 10 files changed, 8 insertions(+), 15 deletions(-)
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

This looks good, but should just be a single patch that adds to Kconfig and updates the include files. Thanks for doing this!

Do you want me to re-post with a V2 with them merged?

No, that's OK. Just keep in mind in case anyone else has comments. Thanks!

So, call me oblivious, but I just learned about moveconfigs.py (facepalm)

I was going tackle more Kconfig migration, but I was struggling figuring out how to autoupdate defconfigs. Is there an example I can follow?

adam

Quoted 2 lines

--
Tom

#13 lore raw

cover power: TWL4030: Move CONFIG_TWL4030_POWER to Kconfig

Quoted 36 lines · Adam Ford
Quoted 26 lines · Tom Rini
Quoted 25 lines · Adam Ford
Quoted 24 lines · Tom Rini
Quoted 21 lines · Adam Ford

This series will move CONFIG_TWL4030_POWER to Kconfig from include/configs. It will enable it by default when selecting OMAP34XX and remove it from a small handful of include/config files that are not yet using ti_omap3_common.h as well as ti_omap3_common.h. I do not have the other hardware, but I tested this with a Logic PD Torpedo based on a DM3730 (OMAP3630) without issue.

Adam Ford (2):
power: twl4030: Move CONFIG_TWL4030_POWER to Kconfig
power: twl4030: Remove CONFIG_TWL4030_POWER from include/configs

 arch/arm/Kconfig                  | 1 +
 drivers/power/Kconfig             | 7 +++++++
 include/configs/cm_t35.h          | 1 -
 include/configs/nokia_rx51.h      | 1 -
 include/configs/omap3_evm.h       | 1 -
 include/configs/sniper.h          | 6 ------
 include/configs/tao3530.h         | 1 -
 include/configs/ti_omap3_common.h | 3 ---
 include/configs/tricorder.h       | 1 -
 scripts/config_whitelist.txt      | 1 -
 10 files changed, 8 insertions(+), 15 deletions(-)
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

This looks good, but should just be a single patch that adds to Kconfig and updates the include files. Thanks for doing this!

Do you want me to re-post with a V2 with them merged?

No, that's OK. Just keep in mind in case anyone else has comments. Thanks!

Quoted 5 lines

So, call me oblivious, but I just learned about moveconfigs.py (facepalm)

I was going tackle more Kconfig migration, but I was struggling figuring out how to autoupdate defconfigs. Is there an example I can follow?

Well, my workflow is to add X to the Kconfig file and run my moveconfig.py wrapper for the new option, and then check over the changes, to see if I should use imply or default y if ... in places. And I start out by doing a moveconfig.py -sC to re-sync all defconfigs first so I don't see that noise.

My wrapper around moveconfig.py is just to make sure PATH has all of the cross toolchains, and then to set CROSS_COMPILE_xxx for a lot of architectures.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170427/a2f5ca86/attachment.sig>