Skip to content

Commit

Permalink
[POWERPC] CPM: Rename commproc to cpm1 and cpm2_common.c to cpm2.c
Browse files Browse the repository at this point in the history
Rename commproc.[ch] to cpm1.[ch] to be more consistent with cpm2. Also
rename cpm2_common.c to cpm2.c as suggested by Scott Wood. Adjust the
includes accordingly.

Signed-off-by: Jochen Friedrich <jochen@scram.de>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
Jochen Friedrich authored and Kumar Gala committed Jan 28, 2008
1 parent 02753cb commit b5677d8
Show file tree
Hide file tree
Showing 28 changed files with 38 additions and 38 deletions.
1 change: 1 addition & 0 deletions arch/powerpc/platforms/8xx/ep88xc.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <asm/io.h>
#include <asm/udbg.h>
#include <asm/commproc.h>
#include <asm/cpm1.h>

#include "mpc8xx.h"

Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/8xx/mpc86xads_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <asm/system.h>
#include <asm/time.h>
#include <asm/8xx_immap.h>
#include <asm/commproc.h>
#include <asm/cpm1.h>
#include <asm/fs_pd.h>
#include <asm/udbg.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/8xx/mpc885ads_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include <asm/time.h>
#include <asm/mpc8xx.h>
#include <asm/8xx_immap.h>
#include <asm/commproc.h>
#include <asm/cpm1.h>
#include <asm/fs_pd.h>
#include <asm/udbg.h>

Expand Down
4 changes: 2 additions & 2 deletions arch/powerpc/sysdev/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ endif
# Temporary hack until we have migrated to asm-powerpc
ifeq ($(ARCH),powerpc)
obj-$(CONFIG_CPM) += cpm_common.o
obj-$(CONFIG_CPM2) += cpm2_common.o cpm2_pic.o
obj-$(CONFIG_CPM2) += cpm2.o cpm2_pic.o
obj-$(CONFIG_PPC_DCR) += dcr.o
obj-$(CONFIG_8xx) += mpc8xx_pic.o commproc.o
obj-$(CONFIG_8xx) += mpc8xx_pic.o cpm1.o
obj-$(CONFIG_UCODE_PATCH) += micropatch.o
endif
4 changes: 2 additions & 2 deletions arch/powerpc/sysdev/commproc.c → arch/powerpc/sysdev/cpm1.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/8xx_immap.h>
#include <asm/commproc.h>
#include <asm/cpm1.h>
#include <asm/io.h>
#include <asm/tlbflush.h>
#include <asm/rheap.h>
Expand Down Expand Up @@ -290,7 +290,7 @@ cpm_setbrg(uint brg, uint rate)
out_be32(bp, (((BRG_UART_CLK / rate) - 1) << 1) | CPM_BRG_EN);
else
out_be32(bp, (((BRG_UART_CLK_DIV16 / rate) - 1) << 1) |
CPM_BRG_EN | CPM_BRG_DIV16);
CPM_BRG_EN | CPM_BRG_DIV16);
}

#ifndef CONFIG_PPC_CPM_NEW_BINDING
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ cpm2_fastbrg(uint brg, uint rate, int div16)

if (brg < 4) {
bp = cpm2_map_size(im_brgc1, 16);
}
else {
} else {
bp = cpm2_map_size(im_brgc5, 16);
brg -= 4;
}
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/sysdev/micropatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/8xx_immap.h>
#include <asm/commproc.h>
#include <asm/cpm1.h>

/*
* I2C/SPI relocation patch arrays.
Expand Down
2 changes: 1 addition & 1 deletion arch/ppc/8260_io/enet.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* This version of the driver is somewhat selectable for the different
* processor/board combinations. It works for the boards I know about
* now, and should be easily modified to include others. Some of the
* configuration information is contained in <asm/commproc.h> and the
* configuration information is contained in <asm/cpm1.h> and the
* remainder is here.
*
* Buffer descriptors are kept in the CPM dual port RAM, and the frame
Expand Down
2 changes: 1 addition & 1 deletion arch/ppc/8xx_io/commproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/8xx_immap.h>
#include <asm/commproc.h>
#include <asm/cpm1.h>
#include <asm/io.h>
#include <asm/tlbflush.h>
#include <asm/rheap.h>
Expand Down
6 changes: 3 additions & 3 deletions arch/ppc/8xx_io/enet.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* This version of the driver is somewhat selectable for the different
* processor/board combinations. It works for the boards I know about
* now, and should be easily modified to include others. Some of the
* configuration information is contained in <asm/commproc.h> and the
* configuration information is contained in <asm/cpm1.h> and the
* remainder is here.
*
* Buffer descriptors are kept in the CPM dual port RAM, and the frame
Expand Down Expand Up @@ -43,7 +43,7 @@
#include <asm/pgtable.h>
#include <asm/mpc8xx.h>
#include <asm/uaccess.h>
#include <asm/commproc.h>
#include <asm/cpm1.h>
#include <asm/cacheflush.h>

/*
Expand Down Expand Up @@ -80,7 +80,7 @@
* programming documents for details unique to your board.
*
* For the TQM8xx(L) modules, there is no control register interface.
* All functions are directly controlled using I/O pins. See <asm/commproc.h>.
* All functions are directly controlled using I/O pins. See <asm/cpm1.h>.
*/

/* The transmitter timeout
Expand Down
2 changes: 1 addition & 1 deletion arch/ppc/8xx_io/fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
#include <asm/mpc8xx.h>
#include <asm/irq.h>
#include <asm/uaccess.h>
#include <asm/commproc.h>
#include <asm/cpm1.h>

#ifdef CONFIG_USE_MDIO
/* Forward declarations of some structures to support different PHYs
Expand Down
2 changes: 1 addition & 1 deletion arch/ppc/8xx_io/micropatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/8xx_immap.h>
#include <asm/commproc.h>
#include <asm/cpm1.h>

/*
* I2C/SPI relocation patch arrays.
Expand Down
2 changes: 1 addition & 1 deletion arch/ppc/boot/simple/iic.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <linux/types.h>
#include <asm/uaccess.h>
#include <asm/mpc8xx.h>
#include <asm/commproc.h>
#include <asm/cpm1.h>


/* IIC functions.
Expand Down
2 changes: 1 addition & 1 deletion arch/ppc/boot/simple/m8xx_tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <linux/types.h>
#include <asm/uaccess.h>
#include <asm/mpc8xx.h>
#include <asm/commproc.h>
#include <asm/cpm1.h>

#ifdef CONFIG_MBX
#define MBX_CSR1 ((volatile u_char *)0xfa100000)
Expand Down
2 changes: 1 addition & 1 deletion arch/ppc/kernel/ppc_ksyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#include <asm/dcr.h>

#ifdef CONFIG_8xx
#include <asm/commproc.h>
#include <asm/cpm1.h>
#endif

extern void transfer_to_handler(void);
Expand Down
2 changes: 1 addition & 1 deletion arch/ppc/platforms/mpc866ads_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include <asm/time.h>
#include <asm/ppcboot.h>
#include <asm/8xx_immap.h>
#include <asm/commproc.h>
#include <asm/cpm1.h>
#include <asm/ppc_sys.h>
#include <asm/mpc8xx.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/ppc/platforms/mpc885ads_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <asm/time.h>
#include <asm/ppcboot.h>
#include <asm/8xx_immap.h>
#include <asm/commproc.h>
#include <asm/cpm1.h>
#include <asm/ppc_sys.h>

extern unsigned char __res[];
Expand Down
2 changes: 1 addition & 1 deletion arch/ppc/syslib/mpc8xx_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <linux/device.h>
#include <linux/serial_8250.h>
#include <linux/mii.h>
#include <asm/commproc.h>
#include <asm/cpm1.h>
#include <asm/mpc8xx.h>
#include <asm/irq.h>
#include <asm/ppc_sys.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/ppc/xmon/start_8xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <linux/kernel.h>
#include <asm/8xx_immap.h>
#include <asm/mpc8xx.h>
#include <asm/commproc.h>
#include <asm/cpm1.h>

extern void xmon_printf(const char *fmt, ...);
extern int xmon_8xx_write(char *str, int nb);
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/fec_8xx/fec_8xx-netta.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <asm/mpc8xx.h>
#include <asm/irq.h>
#include <asm/uaccess.h>
#include <asm/commproc.h>
#include <asm/cpm1.h>

#include "fec_8xx.h"

Expand Down
2 changes: 1 addition & 1 deletion drivers/net/fec_8xx/fec_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include <asm/mpc8xx.h>
#include <asm/irq.h>
#include <asm/uaccess.h>
#include <asm/commproc.h>
#include <asm/cpm1.h>

#include "fec_8xx.h"

Expand Down
2 changes: 1 addition & 1 deletion drivers/net/fec_8xx/fec_mii.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include <asm/mpc8xx.h>
#include <asm/irq.h>
#include <asm/uaccess.h>
#include <asm/commproc.h>
#include <asm/cpm1.h>

/*************************************************/

Expand Down
2 changes: 1 addition & 1 deletion drivers/net/fs_enet/fs_enet.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <asm/fs_pd.h>

#ifdef CONFIG_CPM1
#include <asm/commproc.h>
#include <asm/cpm1.h>

struct fec_info {
fec_t __iomem *fecp;
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/fs_enet/mac-fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include <asm/8xx_immap.h>
#include <asm/pgtable.h>
#include <asm/mpc8xx.h>
#include <asm/commproc.h>
#include <asm/cpm1.h>
#endif

#ifdef CONFIG_PPC_CPM_NEW_BINDING
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/fs_enet/mac-scc.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include <asm/8xx_immap.h>
#include <asm/pgtable.h>
#include <asm/mpc8xx.h>
#include <asm/commproc.h>
#include <asm/cpm1.h>
#endif

#ifdef CONFIG_PPC_CPM_NEW_BINDING
Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/cpm_uart/cpm_uart_cpm1.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef CPM_UART_CPM1_H
#define CPM_UART_CPM1_H

#include <asm/commproc.h>
#include <asm/cpm1.h>

/* defines for IRQs */
#ifndef CONFIG_PPC_CPM_NEW_BINDING
Expand Down
8 changes: 4 additions & 4 deletions include/asm-powerpc/commproc.h → include/asm-powerpc/cpm1.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* IDMA1 space. The remaining DP RAM is available for buffer descriptors
* or other use.
*/
#ifndef __CPM_8XX__
#define __CPM_8XX__
#ifndef __CPM1__
#define __CPM1__

#include <asm/8xx_immap.h>
#include <asm/ptrace.h>
Expand Down Expand Up @@ -82,7 +82,7 @@ extern int cpm_dpfree(unsigned long offset);
extern unsigned long cpm_dpalloc_fixed(unsigned long offset, uint size, uint align);
extern void cpm_dpdump(void);
extern void *cpm_dpram_addr(unsigned long offset);
extern uint cpm_dpram_phys(u8* addr);
extern uint cpm_dpram_phys(u8 *addr);
#endif

extern void cpm_setbrg(uint brg, uint rate);
Expand Down Expand Up @@ -747,4 +747,4 @@ enum cpm_clk {

int cpm1_clk_setup(enum cpm_clk_target target, int clock, int mode);

#endif /* __CPM_8XX__ */
#endif /* __CPM1__ */
8 changes: 4 additions & 4 deletions include/asm-ppc/commproc.h → include/asm-ppc/cpm1.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* IDMA1 space. The remaining DP RAM is available for buffer descriptors
* or other use.
*/
#ifndef __CPM_8XX__
#define __CPM_8XX__
#ifndef __CPM1__
#define __CPM1__

#include <asm/8xx_immap.h>
#include <asm/ptrace.h>
Expand Down Expand Up @@ -72,7 +72,7 @@ extern int cpm_dpfree(unsigned long offset);
extern unsigned long cpm_dpalloc_fixed(unsigned long offset, uint size, uint align);
extern void cpm_dpdump(void);
extern void *cpm_dpram_addr(unsigned long offset);
extern uint cpm_dpram_phys(u8* addr);
extern uint cpm_dpram_phys(u8 *addr);
extern void cpm_setbrg(uint brg, uint rate);

extern void cpm_load_patch(volatile immap_t *immr);
Expand Down Expand Up @@ -685,4 +685,4 @@ typedef struct risc_timer_pram {
extern void cpm_install_handler(int vec, void (*handler)(void *), void *dev_id);
extern void cpm_free_handler(int vec);

#endif /* __CPM_8XX__ */
#endif /* __CPM1__ */

0 comments on commit b5677d8

Please sign in to comment.