Skip to contentSkip to conversation

CPM: Always use new binding.

PATCH Applied Scott Wood 2 participants 5 messages Apr 10, 2008 – Apr 14, 2008

Subsystems (3)
lore
Share & tools
lore

Scott Wood

author
#0 lore raw

PATCH 1/1 CPM: Always use new binding.

The kconfig entry can go away once arch/ppc and references to the config in drivers are removed.

---
 arch/powerpc/platforms/82xx/Kconfig |    3 -
 arch/powerpc/platforms/85xx/Kconfig |    8 -
 arch/powerpc/platforms/8xx/Kconfig  |    4 -
 arch/powerpc/platforms/Kconfig      |    8 +-
 arch/powerpc/sysdev/cpm1.c          |  112 -------
 arch/powerpc/sysdev/cpm2.c          |   97 -------
 arch/powerpc/sysdev/cpm_common.c    |    3 -
 arch/powerpc/sysdev/fsl_soc.c       |  541 -----------------------------------
 8 files changed, 1 insertions(+), 775 deletions(-)
arch/powerpc/platforms/82xx/Kconfig +0 -3
index 4fad6c7..917ac88 100644
@@ -11,7 +11,6 @@ config MPC8272_ADS
 	select 8260
 	select FSL_SOC
 	select PQ2_ADS_PCI_PIC if PCI
-	select PPC_CPM_NEW_BINDING
 	help
 	  This option enables support for the MPC8272 ADS board
 
@@ -22,7 +21,6 @@ config PQ2FADS
 	select 8260
 	select FSL_SOC
 	select PQ2_ADS_PCI_PIC if PCI
-	select PPC_CPM_NEW_BINDING
 	help
 	  This option enables support for the PQ2FADS board
 
@@ -31,7 +29,6 @@ config EP8248E
 	select 8272
 	select 8260
 	select FSL_SOC
-	select PPC_CPM_NEW_BINDING
 	select MDIO_BITBANG
 	help
 	  This enables support for the Embedded Planet EP8248E board.
arch/powerpc/platforms/85xx/Kconfig +0 -8
index 28bc6e5..7ff29d5 100644
@@ -19,7 +19,6 @@ config MPC8540_ADS
 config MPC8560_ADS
 	bool "Freescale MPC8560 ADS"
 	select DEFAULT_UIMAGE
-	select PPC_CPM_NEW_BINDING
 	select CPM2
 	help
 	  This option enables support for the MPC 8560 ADS board
@@ -48,7 +47,6 @@ config MPC85xx_DS
 
 config KSI8560
         bool "Emerson KSI8560"
-        select PPC_CPM_NEW_BINDING
         select DEFAULT_UIMAGE
         help
           This option enables support for the Emerson KSI8560 board
@@ -60,14 +58,12 @@ config STX_GP3
 	  board.
 	select CPM2
 	select DEFAULT_UIMAGE
-	select PPC_CPM_NEW_BINDING
 
 config TQM8540
 	bool "TQ Components TQM8540"
 	help
 	  This option enables support for the TQ Components TQM8540 board.
 	select DEFAULT_UIMAGE
-	select PPC_CPM_NEW_BINDING
 	select TQM85xx
 
 config TQM8541
@@ -75,7 +71,6 @@ config TQM8541
 	help
 	  This option enables support for the TQ Components TQM8541 board.
 	select DEFAULT_UIMAGE
-	select PPC_CPM_NEW_BINDING
 	select TQM85xx
 	select CPM2
 
@@ -84,7 +79,6 @@ config TQM8555
 	help
 	  This option enables support for the TQ Components TQM8555 board.
 	select DEFAULT_UIMAGE
-	select PPC_CPM_NEW_BINDING
 	select TQM85xx
 	select CPM2
 
@@ -93,7 +87,6 @@ config TQM8560
 	help
 	  This option enables support for the TQ Components TQM8560 board.
 	select DEFAULT_UIMAGE
-	select PPC_CPM_NEW_BINDING
 	select TQM85xx
 	select CPM2
 
@@ -106,7 +99,6 @@ config SBC8548
 config SBC8560
 	bool "Wind River SBC8560"
 	select DEFAULT_UIMAGE
-	select PPC_CPM_NEW_BINDING if CPM2
 	help
 	  This option enables support for the Wind River SBC8560 board
 
arch/powerpc/platforms/8xx/Kconfig +0 -4
index 7fd224c..6fc849e 100644
@@ -18,7 +18,6 @@ config MPC8XXFADS
 config MPC86XADS
 	bool "MPC86XADS"
 	select CPM1
-	select PPC_CPM_NEW_BINDING
 	help
 	  MPC86x Application Development System by Freescale Semiconductor.
 	  The MPC86xADS is meant to serve as a platform for s/w and h/w
@@ -27,7 +26,6 @@ config MPC86XADS
 config MPC885ADS
 	bool "MPC885ADS"
 	select CPM1
-	select PPC_CPM_NEW_BINDING
 	help
 	  Freescale Semiconductor MPC885 Application Development System (ADS).
 	  Also known as DUET.
@@ -37,7 +35,6 @@ config MPC885ADS
 config PPC_EP88XC
 	bool "Embedded Planet EP88xC (a.k.a. CWH-PPC-885XN-VE)"
 	select CPM1
-	select PPC_CPM_NEW_BINDING
 	help
 	  This enables support for the Embedded Planet EP88xC board.
 
@@ -47,7 +44,6 @@ config PPC_EP88XC
 config PPC_ADDER875
 	bool "Analogue & Micro Adder 875"
 	select CPM1
-	select PPC_CPM_NEW_BINDING
 	select REDBOOT
 	help
 	  This enables support for the Analogue & Micro Adder 875
arch/powerpc/platforms/Kconfig +1 -7
index a578b96..f38c50b 100644
@@ -290,13 +290,7 @@ config CPM2
 config PPC_CPM_NEW_BINDING
 	bool
 	depends on CPM1 || CPM2
-	help
-	  Select this if your board has been converted to use the new
-	  device tree bindings for CPM, and no longer needs the
-	  ioport callbacks or the platform device glue code.
-
-	  The fs_enet and cpm_uart drivers will be built as
-	  of_platform devices.
+	default y
 
 config AXON_RAM
 	tristate "Axon DDR2 memory device driver"
arch/powerpc/sysdev/cpm1.c +0 -112

131 lines not on this page · raw message

arch/powerpc/sysdev/cpm2.c +0 -97

116 lines not on this page · raw message

arch/powerpc/sysdev/cpm_common.c +0 -3
index 165981c..cb7df2d 100644
@@ -58,7 +58,6 @@ void __init udbg_init_cpm(void)
 }
 #endif
 
-#ifdef CONFIG_PPC_CPM_NEW_BINDING
 static spinlock_t cpm_muram_lock;
 static rh_block_t cpm_boot_muram_rh_block[16];
 static rh_info_t cpm_muram_info;
@@ -199,5 +198,3 @@ dma_addr_t cpm_muram_dma(void __iomem *addr)
 	return muram_pbase + ((u8 __iomem *)addr - muram_vbase);
 }
 EXPORT_SYMBOL(cpm_muram_dma);
-
-#endif /* CONFIG_PPC_CPM_NEW_BINDING */
arch/powerpc/sysdev/fsl_soc.c +0 -541

547 lines not on this page · raw message

Signature · 1 line
1.5.4.4
#1 lore raw
Quoted 2 lines · Scott Wood

The kconfig entry can go away once arch/ppc and references to the config in drivers are removed.

just to be clear. arch/powerpc will always just use the new binding and arch/ppc uses the old (or has the option)?

- k

author
#2 lore raw
Quoted 8 lines · Kumar Gala
Quoted 3 lines · Scott Wood

The kconfig entry can go away once arch/ppc and references to the config in
drivers are removed.

just to be clear. arch/powerpc will always just use the new binding and arch/ppc uses the old (or has the option)?

Yes, CONFIG_PPC_NEW_BINDING is effectively an alias for CONFIG_PPC_MERGE after this patch (but I figure there's no point changing the drivers to use the latter, just to make another change in a couple months when arch/ppc dies).

-Scott

#3 lore raw
Quoted 7 lines · Scott Wood
Quoted 6 lines · Kumar Gala
Quoted 3 lines · Scott Wood

The kconfig entry can go away once arch/ppc and references to the config in
drivers are removed.

Quoted 7 lines
Quoted 2 lines

just to be clear. arch/powerpc will always just use the new binding and arch/ppc uses the old (or has the option)?

Yes, CONFIG_PPC_NEW_BINDING is effectively an alias for CONFIG_PPC_MERGE after this patch (but I figure there's no point changing the drivers to use the latter, just to make another change in a couple months when arch/ppc dies).

Ok (just wanted to make sure I was clear) and agreed on not wanting to change the drivers.

- k

Applied
#4 lore raw
In reply to Scott Wood
Quoted 5 lines · Scott Wood

The kconfig entry can go away once arch/ppc and references to the config in drivers are removed.

---

Quoted 10 lines
arch/powerpc/platforms/82xx/Kconfig |    3 -
arch/powerpc/platforms/85xx/Kconfig |    8 -
arch/powerpc/platforms/8xx/Kconfig  |    4 -
arch/powerpc/platforms/Kconfig      |    8 +-
arch/powerpc/sysdev/cpm1.c          |  112 -------
arch/powerpc/sysdev/cpm2.c          |   97 -------
arch/powerpc/sysdev/cpm_common.c    |    3 -
arch/powerpc/sysdev/fsl_soc.c       |  541  
-----------------------------------
8 files changed, 1 insertions(+), 775 deletions(-)

applied.

- k