ARM: add PROC_DEVICETREE support in Kconfig
Subsystems (4)
PATCH 1/1 ARM: add PROC_DEVICETREE support in Kconfig
From: Xiao Jiang <[email protected]>
Since more and more arm chips support device tree, it'd be better add PROC_DEVICETREE in arch/arm/Kconfig to avoid duplicate code.
--- arch/arm/Kconfig | 1 + arch/arm/configs/at91_dt_defconfig | 1 - arch/arm/configs/tegra_defconfig | 1 - arch/arm/plat-omap/Kconfig | 1 - 4 files changed, 1 insertions(+), 3 deletions(-)
arch/arm/Kconfig +1 -0
@@ -1864,6 +1864,7 @@ config USE_OF select OF select OF_EARLY_FLATTREE select IRQ_DOMAIN + select PROC_DEVICETREE if PROC_FS help Include support for flattened device tree machine descriptions.
arch/arm/configs/at91_dt_defconfig +0 -1
@@ -64,7 +64,6 @@ CONFIG_MTD_NAND=y CONFIG_MTD_NAND_ATMEL=y CONFIG_MTD_UBI=y CONFIG_MTD_UBI_GLUEBI=y -CONFIG_PROC_DEVICETREE=y CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_COUNT=4
arch/arm/configs/tegra_defconfig +0 -1
@@ -72,7 +72,6 @@ CONFIG_IPV6_TUNNEL=y CONFIG_IPV6_MULTIPLE_TABLES=y # CONFIG_WIRELESS is not set # CONFIG_FIRMWARE_IN_KERNEL is not set -CONFIG_PROC_DEVICETREE=y CONFIG_BLK_DEV_LOOP=y CONFIG_AD525X_DPOT=y CONFIG_AD525X_DPOT_I2C=y
arch/arm/plat-omap/Kconfig +0 -1
@@ -27,7 +27,6 @@ config ARCH_OMAP2PLUS select GENERIC_IRQ_CHIP select OMAP_DM_TIMER select USE_OF - select PROC_DEVICETREE if PROC_FS help "Systems based on OMAP2, OMAP3 or OMAP4"
Signature · 1 line
1.7.3
Quoted 5 lines · On 18:38 Fri 06 Jul , jgq516 at gmail.com wrote:
From: Xiao Jiang <[email protected]>
Since more and more arm chips support device tree, it'd be better add
PROC_DEVICETREEinarch/arm/Kconfigto avoid duplicate code.
Best Regards,
J.
Quoted 59 lines
Signed-off-by Xiao Jiang <[email protected]>--- arch/arm/Kconfig | 1 + arch/arm/configs/at91_dt_defconfig | 1 - arch/arm/configs/tegra_defconfig | 1 - arch/arm/plat-omap/Kconfig | 1 - 4 files changed, 1 insertions(+), 3 deletions(-)arch/arm/Kconfig +1
-0@@ -1864,6 +1864,7 @@ config USE_OF select OF select OF_EARLY_FLATTREE select IRQ_DOMAIN + select PROC_DEVICETREE if PROC_FS help Include support for flattened device tree machine descriptions.arch/arm/configs/at91_dt_defconfig +0
-1@@ -64,7 +64,6 @@ CONFIG_MTD_NAND=y CONFIG_MTD_NAND_ATMEL=y CONFIG_MTD_UBI=y CONFIG_MTD_UBI_GLUEBI=y -CONFIG_PROC_DEVICETREE=y CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_COUNT=4arch/arm/configs/tegra_defconfig +0
-1@@ -72,7 +72,6 @@ CONFIG_IPV6_TUNNEL=y CONFIG_IPV6_MULTIPLE_TABLES=y # CONFIG_WIRELESS is not set # CONFIG_FIRMWARE_IN_KERNEL is not set -CONFIG_PROC_DEVICETREE=y CONFIG_BLK_DEV_LOOP=y CONFIG_AD525X_DPOT=y CONFIG_AD525X_DPOT_I2C=yarch/arm/plat-omap/Kconfig +0
-1@@ -27,7 +27,6 @@ config ARCH_OMAP2PLUS select GENERIC_IRQ_CHIP select OMAP_DM_TIMER select USE_OF - select PROC_DEVICETREE if PROC_FS help "Systems based on OMAP2, OMAP3 or OMAP4"Signature · 1 line
1.7.3
Quoted 4 lines · On 07/06/2012 05:38 AM, jgq516 at gmail.com wrote:
From: Xiao Jiang <[email protected]>
Since more and more arm chips support device tree, it'd be better add
PROC_DEVICETREEinarch/arm/Kconfigto avoid duplicate code.
I think this should remain user choice. If its going to be selected, then you might as well just remove the option altogether. Perhaps just make the option default to yes.
Rob
Quoted 57 lines
Signed-off-by Xiao Jiang <[email protected]>--- arch/arm/Kconfig | 1 + arch/arm/configs/at91_dt_defconfig | 1 - arch/arm/configs/tegra_defconfig | 1 - arch/arm/plat-omap/Kconfig | 1 - 4 files changed, 1 insertions(+), 3 deletions(-)arch/arm/Kconfig +1
-0@@ -1864,6 +1864,7 @@ config USE_OF select OF select OF_EARLY_FLATTREE select IRQ_DOMAIN + select PROC_DEVICETREE if PROC_FS help Include support for flattened device tree machine descriptions.arch/arm/configs/at91_dt_defconfig +0
-1@@ -64,7 +64,6 @@ CONFIG_MTD_NAND=y CONFIG_MTD_NAND_ATMEL=y CONFIG_MTD_UBI=y CONFIG_MTD_UBI_GLUEBI=y -CONFIG_PROC_DEVICETREE=y CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_COUNT=4arch/arm/configs/tegra_defconfig +0
-1@@ -72,7 +72,6 @@ CONFIG_IPV6_TUNNEL=y CONFIG_IPV6_MULTIPLE_TABLES=y # CONFIG_WIRELESS is not set # CONFIG_FIRMWARE_IN_KERNEL is not set -CONFIG_PROC_DEVICETREE=y CONFIG_BLK_DEV_LOOP=y CONFIG_AD525X_DPOT=y CONFIG_AD525X_DPOT_I2C=yarch/arm/plat-omap/Kconfig +0
-1@@ -27,7 +27,6 @@ config ARCH_OMAP2PLUS select GENERIC_IRQ_CHIP select OMAP_DM_TIMER select USE_OF - select PROC_DEVICETREE if PROC_FS help "Systems based on OMAP2, OMAP3 or OMAP4"
PATCH 1/1 ARM: add PROC_DEVICETREE support in Kconfig
2012/7/6 Rob Herring <[email protected]>
Quoted 12 lines · On 07/06/2012 05:38 AM, jgq516 at gmail.com wrote:
Quoted 3 lines
From: Xiao Jiang <[email protected]>
Since more and more arm chips support device tree, it'd be better add
PROC_DEVICETREEQuoted 1 line
in
arch/arm/Kconfigto avoid duplicate code.I think this should remain user choice. If its going to be selected, then you might as well just remove the option altogether. Perhaps just make the option default to yes.
Hmm, sounds reasonable from your point. So the better choice is to set the
option default to Y if the board has dt support just like tegra_defconfig and at91_dt_defconfig, right? thanks.
Regards,
Xiao
Rob
Quoted 52 lines
Review
Quoted 22 lines
Signed-off-by Xiao Jiang <[email protected]>--- arch/arm/Kconfig | 1 + arch/arm/configs/at91_dt_defconfig | 1 - arch/arm/configs/tegra_defconfig | 1 - arch/arm/plat-omap/Kconfig | 1 - 4 files changed, 1 insertions(+), 3 deletions(-)arch/arm/Kconfig +1
-0@@ -1864,6 +1864,7 @@ config USE_OF select OF select OF_EARLY_FLATTREE select IRQ_DOMAIN + select PROC_DEVICETREE if PROC_FS help Include support for flattened device tree machine descriptions.(quoted diff) +0
-0b/arch/arm/configs/at91_dt_defconfig
Review
Quoted 12 lines
index 67bc571..b856cb6 100644
arch/arm/configs/at91_dt_defconfig +0
-1@@ -64,7 +64,6 @@ CONFIG_MTD_NAND=y CONFIG_MTD_NAND_ATMEL=y CONFIG_MTD_UBI=y CONFIG_MTD_UBI_GLUEBI=y -CONFIG_PROC_DEVICETREE=y CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_COUNT=4(quoted diff) +0
-0b/arch/arm/configs/tegra_defconfig
Quoted 16 lines
index 1198dd6..43e7b65 100644
arch/arm/configs/tegra_defconfig +0
-1@@ -72,7 +72,6 @@ CONFIG_IPV6_TUNNEL=y CONFIG_IPV6_MULTIPLE_TABLES=y # CONFIG_WIRELESS is not set # CONFIG_FIRMWARE_IN_KERNEL is not set -CONFIG_PROC_DEVICETREE=y CONFIG_BLK_DEV_LOOP=y CONFIG_AD525X_DPOT=y CONFIG_AD525X_DPOT_I2C=yarch/arm/plat-omap/Kconfig +0
-0@@ -27,7 +27,6 @@ config ARCH_OMAP2PLUS
Quoted 11 lines
arch/arm/plat-omap/Kconfig config ARCH_OMAP2PLUS · line 32
Quoted 8 lines
arch/arm/plat-omap/Kconfig +0
-1select GENERIC_IRQ_CHIP select OMAP_DM_TIMER select USE_OF - select PROC_DEVICETREE if PROC_FS help "Systems based on OMAP2, OMAP3 or OMAP4"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20120707/d56f2dbc/attachment-0001.html>
Quoted 9 lines · Xiao Jiang
2012/7/6 Rob Herring <[email protected]>
Quoted 8 lines · On 07/06/2012 05:38 AM, jgq516 at gmail.com wrote:
Quoted 5 lines
From: Xiao Jiang <[email protected]>
Since more and more arm chips support device tree, it'd be better add
PROC_DEVICETREE
inarch/arm/Kconfigto avoid duplicate code.
Quoted 7 lines
Quoted 4 lines
I think this should remain user choice. If its going to be selected, then you might as well just remove the option altogether. Perhaps just make the option default to yes.
Hmm, sounds reasonable from your point. So the better choice is to set the option default to Y if the board has dt support just like
tegra_defconfigandat91_dt_defconfig, right? thanks.
Why bother? If the defconfigs select it then most users basing their config from that will be just fine.
PROC_DEVICETREE is 100% optional, it's useful to get runtime access to the contents of the device tree but it's not required for the kernel to boot.
-Olof
PATCH 1/1 ARM: add PROC_DEVICETREE support in Kconfig
2012/7/7 Olof Johansson <[email protected]>
Quoted 19 lines · Xiao Jiang
Quoted 9 lines
2012/7/6 Rob Herring <[email protected]>
Quoted 8 lines · On 07/06/2012 05:38 AM, jgq516 at gmail.com wrote:
Quoted 5 lines
From: Xiao Jiang <[email protected]>
Since more and more arm chips support device tree, it'd be better add
PROC_DEVICETREE
inarch/arm/Kconfigto avoid duplicate code.Quoted 5 lines
Quoted 4 lines
I think this should remain user choice. If its going to be selected, then you might as well just remove the option altogether. Perhaps just make the option default to yes.
Hmm, sounds reasonable from your point. So the better choice is to set
the
Quoted 2 lines
option default to Y if the board has dt support just like
tegra_defconfigandat91_dt_defconfig, right? thanks.
Quoted 8 lines
Why bother? If the defconfigs select it then most users basing their config from that will be just fine.
PROC_DEVICETREEis 100% optional, it's useful to get runtime access to the contents of the device tree but it's not required for the kernel to boot.Got it, thanks.
Regards,
Xiao
Quoted 3 lines
-Olof
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20120707/e1b4c8b6/attachment-0001.html>