Skip to contentSkip to conversation

CPM2 Config Patch

U-Boot-Users Jon Loeliger 1 participant 1 message Dec 6, 2004

lore
Share & tools
lore
#0 lore raw

Wolfgang,

The following patch converts a bunch of CONFIG_<board> references into a feature-driven reference for the CPM2 on PQ2 and PQ3 boards. This patch is needed to re-gain consistency of the bd_t structure for passing CPM2 clocks to Linux. (Also fixes a problem where the second ethernet address is lost due to the inconsistency.)

Lots of other patches stand between the CVS top from a month a go and this patch. Please let me know if it doesn't apply cleanly and I'll regen it for you!

Thanks,
jdl

* Patch by Jon Loeliger, Kumar Gala, 2004-12-03
- Convert the CPM2 based functionality to use new CONFIG_CPM2 option rather than a myriad of CONFIG_MPC8560-like variants. Applies to MPC85xx and MPC8260 boards, includes stxgp3 and sbc8560. Eliminates the CONFIG_MPC8560 option entirely.

u-boot-pq3/board/cds/mpc8541cds/config.mk renamed from u-boot-20041018/board/cds/mpc8541cds/config.mk +1 -0
diff --exclude=CVS -u -r u-boot-public-cvs/u-boot-20041018/board/cds/mpc8541cds/config.mk internal-development/u-boot-pq3/board/cds/mpc8541cds/config.mk
@@ -27,4 +27,5 @@
 
 PLATFORM_CPPFLAGS += -DCONFIG_E500=1
 PLATFORM_CPPFLAGS += -DCONFIG_MPC85xx=1
+PLATFORM_CPPFLAGS += -DCONFIG_CPM2=1
 PLATFORM_CPPFLAGS += -DCONFIG_MPC8541=1
u-boot-pq3/board/cds/mpc8541cds/mpc8541cds.c renamed from u-boot-20041018/board/cds/mpc8541cds/mpc8541cds.c +155 -0

167 lines not on this page · raw message

u-boot-pq3/board/cds/mpc8555cds/config.mk renamed from u-boot-20041018/board/cds/mpc8555cds/config.mk +1 -0
diff --exclude=CVS -u -r u-boot-public-cvs/u-boot-20041018/board/cds/mpc8555cds/config.mk internal-development/u-boot-pq3/board/cds/mpc8555cds/config.mk
@@ -27,4 +27,5 @@
 
 PLATFORM_CPPFLAGS += -DCONFIG_E500=1
 PLATFORM_CPPFLAGS += -DCONFIG_MPC85xx=1
+PLATFORM_CPPFLAGS += -DCONFIG_CPM2=1
 PLATFORM_CPPFLAGS += -DCONFIG_MPC8555=1
u-boot-pq3/board/cds/mpc8555cds/mpc8555cds.c renamed from u-boot-20041018/board/cds/mpc8555cds/mpc8555cds.c +155 -0

167 lines not on this page · raw message

Binary files u-boot-public-cvs/u-boot-20041018/board/MAI/bios_emulator/scitech/bin-linux/glibc/nasm and internal-development/u-boot-pq3/board/MAI/bios_emulator/scitech/bin-linux/glibc/nasm differ

u-boot-pq3/board/mpc8560ads/config.mk renamed from u-boot-20041018/board/mpc8560ads/config.mk +1 -1
diff --exclude=CVS -u -r u-boot-public-cvs/u-boot-20041018/board/mpc8560ads/config.mk internal-development/u-boot-pq3/board/mpc8560ads/config.mk
@@ -29,5 +29,5 @@
 TEXT_BASE = 0xfff80000
 
 PLATFORM_CPPFLAGS += -DCONFIG_MPC85xx=1
-PLATFORM_CPPFLAGS += -DCONFIG_MPC8560=1
+PLATFORM_CPPFLAGS += -DCONFIG_CPM2=1
 PLATFORM_CPPFLAGS += -DCONFIG_E500=1
u-boot-pq3/board/sbc8560/config.mk renamed from u-boot-20041018/board/sbc8560/config.mk +1 -1
diff --exclude=CVS -u -r u-boot-public-cvs/u-boot-20041018/board/sbc8560/config.mk internal-development/u-boot-pq3/board/sbc8560/config.mk
@@ -30,5 +30,5 @@
 TEXT_BASE = 0xfffc0000
 
 PLATFORM_CPPFLAGS += -DCONFIG_MPC85xx=1
-PLATFORM_CPPFLAGS += -DCONFIG_MPC8560=1
+PLATFORM_CPPFLAGS += -DCONFIG_CPM2=1
 PLATFORM_CPPFLAGS += -DCONFIG_E500=1
u-boot-pq3/board/stxgp3/config.mk renamed from u-boot-20041018/board/stxgp3/config.mk +1 -1
diff --exclude=CVS -u -r u-boot-public-cvs/u-boot-20041018/board/stxgp3/config.mk internal-development/u-boot-pq3/board/stxgp3/config.mk
@@ -29,5 +29,5 @@
 TEXT_BASE = 0xfff80000
 
 PLATFORM_CPPFLAGS += -DCONFIG_MPC85xx=1
-PLATFORM_CPPFLAGS += -DCONFIG_MPC8560=1
+PLATFORM_CPPFLAGS += -DCONFIG_CPM2=1
 PLATFORM_CPPFLAGS += -DCONFIG_E500=1

Only in internal-development/u-boot-pq3: CHANGELOG.moto

u-boot-pq3/common/cmd_bdinfo.c renamed from u-boot-20041018/common/cmd_bdinfo.c +2 -2
diff --exclude=CVS -u -r u-boot-public-cvs/u-boot-20041018/common/cmd_bdinfo.c internal-development/u-boot-pq3/common/cmd_bdinfo.c
@@ -68,13 +68,13 @@
 	print_str ("pci_busfreq",	    strmhz(buf, bd->bi_pci_busfreq));
 #endif
 #else	/* ! CONFIG_405GP, CONFIG_405CR, CONFIG_405EP, CONFIG_XILINX_ML300 */
-#if defined(CONFIG_8260) || defined(CONFIG_MPC8560)
+#if defined(CONFIG_CPM2)
 	print_str ("vco",	    strmhz(buf, bd->bi_vco));
 	print_str ("sccfreq",	    strmhz(buf, bd->bi_sccfreq));
 	print_str ("brgfreq",	    strmhz(buf, bd->bi_brgfreq));
 #endif
 	print_str ("intfreq",	    strmhz(buf, bd->bi_intfreq));
-#if defined(CONFIG_8260) || defined(CONFIG_MPC8560)
+#if defined(CONFIG_CPM2)
 	print_str ("cpmfreq",	    strmhz(buf, bd->bi_cpmfreq));
 #endif
 	print_str ("busfreq",	    strmhz(buf, bd->bi_busfreq));
u-boot-pq3/common/cmd_bootm.c renamed from u-boot-20041018/common/cmd_bootm.c +1 -1
diff --exclude=CVS -u -r u-boot-public-cvs/u-boot-20041018/common/cmd_bootm.c internal-development/u-boot-pq3/common/cmd_bootm.c
@@ -573,7 +573,7 @@
 		/* convert all clock information to MHz */
 		kbd->bi_intfreq /= 1000000L;
 		kbd->bi_busfreq /= 1000000L;
-#if defined(CONFIG_8260) || defined(CONFIG_MPC8560)
+#if defined(CONFIG_CPM2)
 		kbd->bi_cpmfreq /= 1000000L;
 		kbd->bi_brgfreq /= 1000000L;
 		kbd->bi_sccfreq /= 1000000L;
u-boot-pq3/cpu/mpc8260/config.mk renamed from u-boot-20041018/cpu/mpc8260/config.mk +1 -1
diff --exclude=CVS -u -r u-boot-public-cvs/u-boot-20041018/cpu/mpc8260/config.mk internal-development/u-boot-pq3/cpu/mpc8260/config.mk
@@ -23,5 +23,5 @@
 
 PLATFORM_RELFLAGS += -fPIC -ffixed-r14 -meabi
 
-PLATFORM_CPPFLAGS += -DCONFIG_8260 -ffixed-r2 -ffixed-r29 \
+PLATFORM_CPPFLAGS += -DCONFIG_8260 -DCONFIG_CPM2 -ffixed-r2 -ffixed-r29 \
 		     -mstring -mcpu=603e -mmultiple
u-boot-pq3/cpu/mpc85xx/commproc.c renamed from u-boot-20041018/cpu/mpc85xx/commproc.c +2 -2
diff --exclude=CVS -u -r u-boot-public-cvs/u-boot-20041018/cpu/mpc85xx/commproc.c internal-development/u-boot-pq3/cpu/mpc85xx/commproc.c
@@ -24,7 +24,7 @@
 #include <common.h>
 #include <asm/cpm_85xx.h>
 
-#if defined(CONFIG_MPC8560)
+#if defined(CONFIG_CPM2)
 /*
  * because we have stack and init data in dual port ram
  * we must reduce the size
@@ -211,4 +211,4 @@
 
 #endif	/* CONFIG_POST */
 
-#endif /* CONFIG_MPC8560 */
+#endif /* CONFIG_CPM2 */
u-boot-pq3/cpu/mpc85xx/cpu_init.c renamed from u-boot-20041018/cpu/mpc85xx/cpu_init.c +3 -3
diff --exclude=CVS -u -r u-boot-public-cvs/u-boot-20041018/cpu/mpc85xx/cpu_init.c internal-development/u-boot-pq3/cpu/mpc85xx/cpu_init.c
@@ -30,7 +30,7 @@
 #include <ioports.h>
 #include <asm/io.h>
 
-#ifdef CONFIG_MPC8560
+#ifdef CONFIG_CPM2
 static void config_8560_ioports (volatile immap_t * immr)
 {
 	int portnum;
@@ -115,7 +115,7 @@
 	memset ((void *) gd, 0, sizeof (gd_t));
 
 
-#ifdef CONFIG_MPC8560
+#ifdef CONFIG_CPM2
 	config_8560_ioports(immap);
 #endif
 
@@ -173,7 +173,7 @@
 	memctl->br7 = CFG_BR7_PRELIM;
 #endif
 
-#if defined(CONFIG_MPC8560)
+#if defined(CONFIG_CPM2)
 	m8560_cpm_reset();
 #endif
 }
u-boot-pq3/cpu/mpc85xx/ether_fcc.c renamed from u-boot-20041018/cpu/mpc85xx/ether_fcc.c +2 -2
diff --exclude=CVS -u -r u-boot-public-cvs/u-boot-20041018/cpu/mpc85xx/ether_fcc.c internal-development/u-boot-pq3/cpu/mpc85xx/ether_fcc.c
@@ -48,7 +48,7 @@
 #include <config.h>
 #include <net.h>
 
-#if defined(CONFIG_MPC8560)
+#if defined(CONFIG_CPM2)
 
 #if defined(CONFIG_ETHER_ON_FCC) && (CONFIG_COMMANDS & CFG_CMD_NET) && \
 	defined(CONFIG_NET_MULTI)
@@ -458,4 +458,4 @@
 
 #endif	/* CONFIG_ETHER_ON_FCC && CFG_CMD_NET && CONFIG_NET_MULTI */
 
-#endif /* CONFIG_MPC8560 */
+#endif /* CONFIG_CPM2 */
u-boot-pq3/cpu/mpc85xx/serial_scc.c renamed from u-boot-20041018/cpu/mpc85xx/serial_scc.c +2 -2
diff --exclude=CVS -u -r u-boot-public-cvs/u-boot-20041018/cpu/mpc85xx/serial_scc.c internal-development/u-boot-pq3/cpu/mpc85xx/serial_scc.c
@@ -35,7 +35,7 @@
 #include <common.h>
 #include <asm/cpm_85xx.h>
 
-#if defined(CONFIG_MPC8560)
+#if defined(CONFIG_CPM2)
 #if defined(CONFIG_CONS_ON_SCC)
 
 #if CONFIG_CONS_INDEX == 1	/* Console on SCC1 */
@@ -271,4 +271,4 @@
 
 #endif	/* CONFIG_CONS_ON_SCC */
 
-#endif /* CONFIG_MPC8560 */
+#endif /* CONFIG_CPM2 */
u-boot-pq3/cpu/mpc85xx/speed.c renamed from u-boot-20041018/cpu/mpc85xx/speed.c +2 -2
diff --exclude=CVS -u -r u-boot-public-cvs/u-boot-20041018/cpu/mpc85xx/speed.c internal-development/u-boot-pq3/cpu/mpc85xx/speed.c
@@ -82,7 +82,7 @@
 {
 	DECLARE_GLOBAL_DATA_PTR;
 	sys_info_t sys_info;
-#if defined(CONFIG_MPC8560)
+#if defined(CONFIG_CPM2)
 	volatile immap_t *immap = (immap_t *) CFG_IMMR;
 	uint sccr, dfbrg;
 
@@ -94,7 +94,7 @@
 	get_sys_info (&sys_info);
 	gd->cpu_clk = sys_info.freqProcessor;
 	gd->bus_clk = sys_info.freqSystemBus;
-#if defined(CONFIG_MPC8560)
+#if defined(CONFIG_CPM2)
 	gd->vco_out = 2*sys_info.freqSystemBus;
 	gd->cpm_clk = gd->vco_out / 2;
 	gd->scc_clk = gd->vco_out / 4;
u-boot-pq3/doc/README.mpc85xxads renamed from u-boot-20041018/doc/README.mpc85xxads +0 -1
diff --exclude=CVS -u -r u-boot-public-cvs/u-boot-20041018/doc/README.mpc85xxads internal-development/u-boot-pq3/doc/README.mpc85xxads
@@ -134,7 +134,6 @@
     CONFIG_E500		    BOOKE e500 family(Motorola)
     CONFIG_MPC85xx	    MPC8540,MPC8560 and their derivatives
     CONFIG_MPC8540	    MPC8540 specific
-    CONFIG_MPC8560	    MPC8560 specific
     CONFIG_MPC8540ADS	    MPC8540ADS board specific
     CONFIG_MPC8560ADS	    MPC8560ADS board specific
     CONFIG_TSEC_ENET	    Use on-chip 10/100/1000 ethernet for networking
u-boot-pq3/include/asm-ppc/global_data.h renamed from u-boot-20041018/include/asm-ppc/global_data.h +2 -2
diff --exclude=CVS -u -r u-boot-public-cvs/u-boot-20041018/include/asm-ppc/global_data.h internal-development/u-boot-pq3/include/asm-ppc/global_data.h
@@ -39,7 +39,7 @@
 	unsigned long	baudrate;
 	unsigned long	cpu_clk;	/* CPU clock in Hz!		*/
 	unsigned long	bus_clk;
-#if defined(CONFIG_8260) || defined(CONFIG_MPC8560)
+#if defined(CONFIG_CPM2)
 	/* There are many clocks on the MPC8260 - see page 9-5 */
 	unsigned long	vco_out;
 	unsigned long	cpm_clk;
@@ -56,7 +56,7 @@
 	unsigned long	env_addr;	/* Address  of Environment struct	*/
 	unsigned long	env_valid;	/* Checksum of Environment valid?	*/
 	unsigned long	have_console;	/* serial_init() was called		*/
-#if defined(CFG_ALLOC_DPRAM) || defined(CONFIG_8260) || defined(CONFIG_MPC8560)
+#if defined(CFG_ALLOC_DPRAM) || defined(CONFIG_CPM2)
 	unsigned int	dp_alloc_base;
 	unsigned int	dp_alloc_top;
 #endif
u-boot-pq3/include/asm-ppc/immap_85xx.h renamed from u-boot-20041018/include/asm-ppc/immap_85xx.h +1 -3
diff --exclude=CVS -u -r u-boot-public-cvs/u-boot-20041018/include/asm-ppc/immap_85xx.h internal-development/u-boot-pq3/include/asm-ppc/immap_85xx.h
@@ -1023,9 +1023,7 @@
 } ccsr_pic_t;
 
 /* CPM Block(0x8_0000-0xc_0000) */
-#if defined(CONFIG_MPC8540) \
-	|| defined(CONFIG_MPC8541) \
-	|| defined(CONFIG_MPC8555)
+#ifndef CONFIG_CPM2
 typedef struct ccsr_cpm {
 	char res[262144];
 } ccsr_cpm_t;
u-boot-pq3/include/asm-ppc/u-boot.h renamed from u-boot-20041018/include/asm-ppc/u-boot.h +1 -1
diff --exclude=CVS -u -r u-boot-public-cvs/u-boot-20041018/include/asm-ppc/u-boot.h internal-development/u-boot-pq3/include/asm-ppc/u-boot.h
@@ -51,7 +51,7 @@
 	unsigned short	bi_ethspeed;	/* Ethernet speed in Mbps */
 	unsigned long	bi_intfreq;	/* Internal Freq, in MHz */
 	unsigned long	bi_busfreq;	/* Bus Freq, in MHz */
-#if defined(CONFIG_8260) || defined(CONFIG_MPC8560)
+#if defined(CONFIG_CPM2)
 	unsigned long	bi_cpmfreq;	/* CPM_CLK Freq, in MHz */
 	unsigned long	bi_brgfreq;	/* BRG_CLK Freq, in MHz */
 	unsigned long	bi_sccfreq;	/* SCC_CLK Freq, in MHz */
u-boot-pq3/include/configs/MPC8541CDS.h renamed from u-boot-20041018/include/configs/MPC8541CDS.h +1 -0
diff --exclude=CVS -u -r u-boot-public-cvs/u-boot-20041018/include/configs/MPC8541CDS.h internal-development/u-boot-pq3/include/configs/MPC8541CDS.h
@@ -33,6 +33,7 @@
 #define CONFIG_BOOKE		1	/* BOOKE */
 #define CONFIG_E500		1	/* BOOKE e500 family */
 #define CONFIG_MPC85xx		1	/* MPC8540/60/55/41 */
+#define CONFIG_CPM2		1	/* has CPM2 */
 #define CONFIG_MPC8541		1	/* MPC8541 specific */
 #define CONFIG_MPC8541CDS	1	/* MPC8541CDS board specific */
 
u-boot-pq3/include/configs/MPC8555CDS.h renamed from u-boot-20041018/include/configs/MPC8555CDS.h +1 -0
diff --exclude=CVS -u -r u-boot-public-cvs/u-boot-20041018/include/configs/MPC8555CDS.h internal-development/u-boot-pq3/include/configs/MPC8555CDS.h
@@ -33,6 +33,7 @@
 #define CONFIG_BOOKE		1	/* BOOKE */
 #define CONFIG_E500		1	/* BOOKE e500 family */
 #define CONFIG_MPC85xx		1	/* MPC8540/60/55/41 */
+#define CONFIG_CPM2		1	/* has CPM2 */
 #define CONFIG_MPC8555		1	/* MPC8555 specific */
 #define CONFIG_MPC8555CDS	1	/* MPC8555CDS board specific */
 
u-boot-pq3/include/configs/MPC8560ADS.h renamed from u-boot-20041018/include/configs/MPC8560ADS.h +1 -1
diff --exclude=CVS -u -r u-boot-public-cvs/u-boot-20041018/include/configs/MPC8560ADS.h internal-development/u-boot-pq3/include/configs/MPC8560ADS.h
@@ -38,7 +38,7 @@
 #define CONFIG_BOOKE		1	/* BOOKE */
 #define CONFIG_E500		1	/* BOOKE e500 family */
 #define CONFIG_MPC85xx		1	/* MPC8540/MPC8560 */
-#define CONFIG_MPC8560		1	/* MPC8560 specific */
+#define CONFIG_CPM2		1	/* has CPM2 */
 #define CONFIG_MPC8560ADS	1	/* MPC8560ADS board specific */
 
 #define CONFIG_PCI
u-boot-pq3/include/configs/SBC8540.h renamed from u-boot-20041018/include/configs/SBC8540.h +1 -1
diff --exclude=CVS -u -r u-boot-public-cvs/u-boot-20041018/include/configs/SBC8540.h internal-development/u-boot-pq3/include/configs/SBC8540.h
@@ -46,7 +46,7 @@
 #define CONFIG_MPC85xx_REV1	1	/* MPC85xx Rev 1.0 chip		*/
 
 
-#define CONFIG_MPC8560		1	/* MPC8560 (CPU) specific		*/
+#define CONFIG_CPM2		1	/* has CPM2 */
 
 #define CONFIG_SBC8540      	1   	/* configuration for SBC8560 board */
 
u-boot-pq3/include/configs/sbc8560.h renamed from u-boot-20041018/include/configs/sbc8560.h +1 -1
diff --exclude=CVS -u -r u-boot-public-cvs/u-boot-20041018/include/configs/sbc8560.h internal-development/u-boot-pq3/include/configs/sbc8560.h
@@ -40,7 +40,7 @@
 #define CONFIG_MPC85xx_REV1	1	/* MPC85xx Rev 1.0 chip		*/
 
 
-#define CONFIG_MPC8560		1	/* MPC8560 specific		*/
+#define CONFIG_CPM2		1	/* has CPM2 */
 #define CONFIG_SBC8560		1	/* configuration for SBC8560 board */
 
 /* XXX flagging this as something I might want to delete */
u-boot-pq3/include/configs/SBC8560.h renamed from u-boot-20041018/include/configs/SBC8560.h +1 -1
diff --exclude=CVS -u -r u-boot-public-cvs/u-boot-20041018/include/configs/SBC8560.h internal-development/u-boot-pq3/include/configs/SBC8560.h
@@ -46,7 +46,7 @@
 #define CONFIG_MPC85xx_REV1	1	/* MPC85xx Rev 1.0 chip		*/
 
 
-#define CONFIG_MPC8560		1	/* MPC8560 (CPU) specific		*/
+#define CONFIG_CPM2		1	/* has CPM2 */
 #define CONFIG_SBC8560      	1   	/* configuration for SBC8560 board */
 
 #define CONFIG_MPC8560ADS	1	/* MPC8560ADS board specific (supplement)	*/
u-boot-pq3/include/configs/stxgp3.h renamed from u-boot-20041018/include/configs/stxgp3.h +1 -1
diff --exclude=CVS -u -r u-boot-public-cvs/u-boot-20041018/include/configs/stxgp3.h internal-development/u-boot-pq3/include/configs/stxgp3.h
@@ -39,7 +39,7 @@
 #define CONFIG_BOOKE		1	/* BOOKE		*/
 #define CONFIG_E500		1	/* BOOKE e500 family	*/
 #define CONFIG_MPC85xx		1	/* MPC8540/MPC8560	*/
-#define CONFIG_MPC8560		1	/* MPC8560 specific	*/
+#define CONFIG_CPM2		1	/* has CPM2 */
 #define CONFIG_STXGP3		1	/* Silicon Tx GPPP board specific*/
 
 #undef  CONFIG_PCI	         	/* pci ethernet support	*/
u-boot-pq3/include/ioports.h renamed from u-boot-20041018/include/ioports.h +1 -1
diff --exclude=CVS -u -r u-boot-public-cvs/u-boot-20041018/include/ioports.h internal-development/u-boot-pq3/include/ioports.h
@@ -25,7 +25,7 @@
  * the internal memory map aligns the above structure on
  * a 0x20 byte boundary
  */
-#ifdef CONFIG_MPC8560
+#ifdef CONFIG_MPC85xx
 #define ioport_addr(im, idx) (ioport_t *)((uint)&((im)->im_cpm.im_cpm_iop) + ((idx)*0x20))
 #else
 #define ioport_addr(im, idx) (ioport_t *)((uint)&(im)->im_ioport + ((idx)*0x20))
u-boot-pq3/include/net.h renamed from u-boot-20041018/include/net.h +1 -1
diff --exclude=CVS -u -r u-boot-public-cvs/u-boot-20041018/include/net.h internal-development/u-boot-pq3/include/net.h
@@ -29,7 +29,7 @@
 # endif
 #endif	/* CONFIG_MPC5xxx */
 
-#if !defined(CONFIG_NET_MULTI) && (defined(CONFIG_8260) || defined(CONFIG_MPC8560))
+#if !defined(CONFIG_NET_MULTI) && defined(CONFIG_CPM2)
 #include <config.h>
 #if defined(CONFIG_ETHER_ON_FCC)
 #if defined(CONFIG_ETHER_ON_SCC)
u-boot-pq3/lib_ppc/board.c renamed from u-boot-20041018/lib_ppc/board.c +5 -5
diff --exclude=CVS -u -r u-boot-public-cvs/u-boot-20041018/lib_ppc/board.c internal-development/u-boot-pq3/lib_ppc/board.c
@@ -50,7 +50,7 @@
 #include <net.h>
 #include <serial.h>
 #ifdef CFG_ALLOC_DPRAM
-#if !(defined(CONFIG_8260)||defined(CONFIG_MPC8560))
+#if !defined(CONFIG_CPM2)
 #include <commproc.h>
 #endif
 #endif
@@ -272,7 +272,7 @@
 	init_timebase,
 #endif
 #ifdef CFG_ALLOC_DPRAM
-#if !(defined(CONFIG_8260) || defined(CONFIG_MPC8560))
+#if !defined(CONFIG_CPM2)
 	dpram_init,
 #endif
 #endif
@@ -357,7 +357,7 @@
 	/* compiler optimization barrier needed for GCC >= 3.4 */
 	__asm__ __volatile__("": : :"memory");
 
-#if !(defined(CONFIG_8260) || defined(CONFIG_MPC8560))
+#if !defined(CONFIG_CPM2)
 	/* Clear initial global data */
 	memset ((void *) gd, 0, sizeof (gd_t));
 #endif
@@ -495,12 +495,12 @@
 	WATCHDOG_RESET ();
 	bd->bi_intfreq = gd->cpu_clk;	/* Internal Freq, in Hz */
 	bd->bi_busfreq = gd->bus_clk;	/* Bus Freq,      in Hz */
-#if defined(CONFIG_8260) || defined(CONFIG_MPC8560)
+#if defined(CONFIG_CPM2)
 	bd->bi_cpmfreq = gd->cpm_clk;
 	bd->bi_brgfreq = gd->brg_clk;
 	bd->bi_sccfreq = gd->scc_clk;
 	bd->bi_vco     = gd->vco_out;
-#endif /* CONFIG_8260 */
+#endif /* CONFIG_CPM2 */
 #if defined(CONFIG_MPC5xxx)
 	bd->bi_ipbfreq = gd->ipb_clk;
 	bd->bi_pcifreq = gd->pci_clk;