power: TWL4030: Move CONFIG_TWL4030_POWER to Kconfig
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
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
@@ -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
@@ -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
PATCH 1/2 power: twl4030: Move CONFIG_TWL4030_POWER to Kconfig
Quoted 4 lines · Adam Ford
As requested, I added the
CONFIG_TWL4030_POWERtoKconfigand made it the implied default when selecting OMAP34XX as a platform.Signed-off-by Adam Ford <[email protected]>
PATCH 1/2 power: twl4030: Move CONFIG_TWL4030_POWER to Kconfig
In reply to Adam Fordarch/arm/Kconfig
Quoted 8 lines · Adam Ford
As requested, I added the
CONFIG_TWL4030_POWERtoKconfigand made it the implied default when selecting OMAP34XX as a platform.Signed-off-by Adam Ford <[email protected]>Reviewed-by Simon Glass <[email protected]>arch/arm/Kconfig +0
-0
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>
PATCH 2/2 power: twl4030: Remove CONFIG_TWL4030_POWER from include/configs
In reply to Adam FordWith 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
@@ -109,7 +109,6 @@/* * TWL4030 */ -#define CONFIG_TWL4030_POWER #define CONFIG_TWL4030_LED /*
include/configs/nokia_rx51.h +0 -1
@@ -128,7 +128,6 @@/* * TWL4030 */ -#define CONFIG_TWL4030_POWER #define CONFIG_TWL4030_LED #define CONFIG_TWL4030_KEYPAD
include/configs/omap3_evm.h +0 -1
@@ -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
@@ -83,12 +83,6 @@#define CONFIG_I2C_MULTI_BUS /* -* Power -*/ - -#define CONFIG_TWL4030_POWER - -/* * Input */
include/configs/tao3530.h +0 -1
@@ -90,7 +90,6 @@/* * TWL4030 */ -#define CONFIG_TWL4030_POWER #define CONFIG_TWL4030_LED /*
include/configs/ti_omap3_common.h +0 -3
@@ -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
@@ -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
@@ -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
PATCH 2/2 power: twl4030: Remove CONFIG_TWL4030_POWER from include/configs
Quoted 9 lines · Adam Ford
With the addition of
Kconfignow havingCONFIG_TWL4030_POWERand with that being the default when OMAP34XX is selected, this is no longer needed ininclude/configsand can be removed from the whitelist.This has only been tested on logic PD DM3730 using
ti_omap3_common.hSigned-off-by Adam Ford <[email protected]>
Missing -- here?
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
Kconfignow havingCONFIG_TWL4030_POWERand with that being the default when OMAP34XX is selected, this is no longer needed ininclude/configsand 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.hSigned-off-by Adam Ford <[email protected]>Missing -- here?
I am not sure what you're saying.
adam
Quoted 2 lines
Reviewed-by Simon Glass <[email protected]>
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
Kconfignow havingCONFIG_TWL4030_POWERand with that being the default when OMAP34XX is selected, this is no longer needed ininclude/configsand 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.hSigned-off-by Adam Ford <[email protected]>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
Reviewed-by Simon Glass <[email protected]>
PATCH 2/2 power: twl4030: Remove CONFIG_TWL4030_POWER from include/configs
In reply to Adam Fordinclude/configs/cm_t35.h
Quoted 12 lines · Adam Ford
With the addition of
Kconfignow havingCONFIG_TWL4030_POWERand with that being the default when OMAP34XX is selected, this is no longer needed ininclude/configsand can be removed from the whitelist.This has only been tested on logic PD DM3730 using
ti_omap3_common.hSigned-off-by Adam Ford <[email protected]>Reviewed-by Simon Glass <[email protected]>include/configs/cm_t35.h +0
-0
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>
cover power: TWL4030: Move CONFIG_TWL4030_POWER to Kconfig
In reply to Adam FordQuoted 10 lines · Adam Ford
This series will move
CONFIG_TWL4030_POWERtoKconfigfrominclude/configs. It will enable it by default when selecting OMAP34XX and remove it from a small handful ofinclude/configfiles that are not yet usingti_omap3_common.has well asti_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: MoveCONFIG_TWL4030_POWERtoKconfig
power: twl4030: RemoveCONFIG_TWL4030_POWERfrominclude/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>
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_POWERtoKconfigfrominclude/configs. It will enable it by default when selecting OMAP34XX and remove it from a small handful ofinclude/configfiles that are not yet usingti_omap3_common.has well asti_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: MoveCONFIG_TWL4030_POWERtoKconfig
power: twl4030: RemoveCONFIG_TWL4030_POWERfrominclude/configsQuoted 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
Kconfigand 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
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_POWERtoKconfigfrominclude/configs. It will enable it by default when selecting OMAP34XX and remove it from a small handful ofinclude/configfiles that are not yet usingti_omap3_common.has well asti_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: MoveCONFIG_TWL4030_POWERtoKconfig
power: twl4030: RemoveCONFIG_TWL4030_POWERfrominclude/configsarch/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
Kconfigand 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>
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_POWERtoKconfigfrominclude/configs. It will enable it by default when selecting OMAP34XX and remove it from a small handful ofinclude/configfiles that are not yet usingti_omap3_common.has well asti_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: MoveCONFIG_TWL4030_POWERtoKconfig
power: twl4030: RemoveCONFIG_TWL4030_POWERfrominclude/configsarch/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
Kconfigand 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
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_POWERtoKconfigfrominclude/configs. It will enable it by default when selecting OMAP34XX and remove it from a small handful ofinclude/configfiles that are not yet usingti_omap3_common.has well asti_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: MoveCONFIG_TWL4030_POWERtoKconfig
power: twl4030: RemoveCONFIG_TWL4030_POWERfrominclude/configsarch/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
Kconfigand 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
Kconfigmigration, 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>