]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[POWERPC] CPM: Rename commproc to cpm1 and cpm2_common.c to cpm2.c
authorJochen Friedrich <jochen@scram.de>
Fri, 25 Jan 2008 14:31:42 +0000 (15:31 +0100)
committerKumar Gala <galak@kernel.crashing.org>
Mon, 28 Jan 2008 14:31:05 +0000 (08:31 -0600)
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>
28 files changed:
arch/powerpc/platforms/8xx/ep88xc.c
arch/powerpc/platforms/8xx/mpc86xads_setup.c
arch/powerpc/platforms/8xx/mpc885ads_setup.c
arch/powerpc/sysdev/Makefile
arch/powerpc/sysdev/cpm1.c [moved from arch/powerpc/sysdev/commproc.c with 99% similarity]
arch/powerpc/sysdev/cpm2.c [moved from arch/powerpc/sysdev/cpm2_common.c with 99% similarity]
arch/powerpc/sysdev/micropatch.c
arch/ppc/8260_io/enet.c
arch/ppc/8xx_io/commproc.c
arch/ppc/8xx_io/enet.c
arch/ppc/8xx_io/fec.c
arch/ppc/8xx_io/micropatch.c
arch/ppc/boot/simple/iic.c
arch/ppc/boot/simple/m8xx_tty.c
arch/ppc/kernel/ppc_ksyms.c
arch/ppc/platforms/mpc866ads_setup.c
arch/ppc/platforms/mpc885ads_setup.c
arch/ppc/syslib/mpc8xx_devices.c
arch/ppc/xmon/start_8xx.c
drivers/net/fec_8xx/fec_8xx-netta.c
drivers/net/fec_8xx/fec_main.c
drivers/net/fec_8xx/fec_mii.c
drivers/net/fs_enet/fs_enet.h
drivers/net/fs_enet/mac-fec.c
drivers/net/fs_enet/mac-scc.c
drivers/serial/cpm_uart/cpm_uart_cpm1.h
include/asm-powerpc/cpm1.h [moved from include/asm-powerpc/commproc.h with 99% similarity]
include/asm-ppc/cpm1.h [moved from include/asm-ppc/commproc.h with 99% similarity]

index 4897edab1ae1543084dffee0217c1ba47442fed0..a8dffa005775f167b02949b04f58d9d38a296f0e 100644 (file)
@@ -16,6 +16,7 @@
 #include <asm/io.h>
 #include <asm/udbg.h>
 #include <asm/commproc.h>
+#include <asm/cpm1.h>
 
 #include "mpc8xx.h"
 
index c0dda534f44d99ff3670f52f8d5c0ea1265262e9..c028a5b71bbb8a52ef454f90cc1cdf260eac88ad 100644 (file)
@@ -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>
 
index 3be115e525fc08f23f25354991cc7a6edb8eb64e..6e7ded0233f678c08f98c1ab077bc6b8ff934876 100644 (file)
@@ -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>
 
index 702916bf28fa2c6fc09e97e2b4bb037928b03d3e..15f3e8527d770b3fda725e9b5cd84339b04893fc 100644 (file)
@@ -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
similarity index 99%
rename from arch/powerpc/sysdev/commproc.c
rename to arch/powerpc/sysdev/cpm1.c
index ef82587d4d286786538ba9827fcef9a8c774ba61..df8bd2b6479665ee9e56c8e163e20ebe912bcf7f 100644 (file)
@@ -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>
@@ -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
similarity index 99%
rename from arch/powerpc/sysdev/cpm2_common.c
rename to arch/powerpc/sysdev/cpm2.c
index f7188e2ba6696e21197dfbb5c9794f44306a8876..7be7112321242649f5c81150850e539a822d73fa 100644 (file)
@@ -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;
        }
index 712b10a55f87bf1964f96d89e83d939ff06e8cd4..d8d602840757cad9301fd5a2a38f2ed7ee6dec6b 100644 (file)
@@ -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.
index 615b6583d9b01084831bd8eea5ed00aecf9ab30b..3ea4db2cc9e9c916ed93950520a76b68e59bdc1b 100644 (file)
@@ -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
index 3f93af83b5140210d928f3ba57a73a698d4ec82b..9d656de0f0f19357d7f48724743bb6945ef7ba93 100644 (file)
@@ -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>
index eace3bc118d2092252da1765699cf2e056fe5f24..c6d047ae77ac5d9f93b4f86be0c9ce716e476362 100644 (file)
@@ -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
@@ -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>
 
 /*
@@ -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
index 0288279be9aad8d22ff1a7406eca2a67781833ec..11b0aa6ca97ecece995babf498fff580fabe1975 100644 (file)
@@ -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
index cfad46ba17e38040ef7f51922edfb7c1ae282cae..9a5d95da7c286c6763c8682fb6c186ae4c9974be 100644 (file)
@@ -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.
index e4efd838bfaad51a05ae10b8945270bc1edf3279..5e91489426b46485a787a51520f7b207e6aaa3d5 100644 (file)
@@ -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.
index ea615d8ca541a233d9ebaf88d1ffc6edf862c643..f28924e6aeb430803df7442e15b5c8d0842ba1df 100644 (file)
@@ -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)
index 22494ec123ea4261511e525286e9593f8a5b636c..0d53dc378c7dc8923a921b1048dc985d2f75a202 100644 (file)
@@ -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);
index bf72204125c57ec77553368a7d67b7cef3f655a6..62370f4a5a0f8718594e6a19de9c705822c2ea90 100644 (file)
@@ -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>
 
index 87deaefd6c5b9faf0889f64561643e9016152500..ba06cc08cdab7740da0838c3c6d7424aec0ac371 100644 (file)
@@ -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[];
index c05ac87ece4cb9516489e61b6ad1f1e3fb01ccc7..80804eee5795937af05a7ff13e5a5592f63a3005 100644 (file)
@@ -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>
index a48bd594cf61a181b56c608e15b85c6f0babbd30..30974068c22399dfdc3450d8b04f3484377104ac 100644 (file)
@@ -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);
index e492eb84f94811bd8037bd56a3730441acf87e29..79deee222e2815306a0fd0531948ffe92b3a13a5 100644 (file)
@@ -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"
 
index ab9637ab3a8d9ccf9ff26e7356a70a559227139d..ca8d2e83ab036ff174cf2f655d4dd50b08def39b 100644 (file)
@@ -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"
 
index e8e10a02d202948429c4445e535cf6a0ffbb9f49..3b6ca29d31f253ef0d9fcde1279d9875bcd62f70 100644 (file)
@@ -34,7 +34,7 @@
 #include <asm/mpc8xx.h>
 #include <asm/irq.h>
 #include <asm/uaccess.h>
-#include <asm/commproc.h>
+#include <asm/cpm1.h>
 
 /*************************************************/
 
index c675e29aadcc39c9e4e1abf3727a5a3a952064c8..e05389c49bbb141e253bbeed681fe763aec7a2a8 100644 (file)
@@ -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;
index c1fee48517e3eaaab58ed60a66be363db9b3c1c8..8a311d1e435b131a202588d903f557368fbe60f2 100644 (file)
@@ -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
index fe3d8a621c3355661d75f80a0b9b446ae25216a2..d7ca31945c828f04f0c430e19569a98fe3c958f0 100644 (file)
@@ -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
index 9b5465fb0bbb3a5b330e51e8bad8ec2a2c7e2c13..ddf46d3c964b0aefa131e3860671f3304c6881c1 100644 (file)
@@ -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
similarity index 99%
rename from include/asm-powerpc/commproc.h
rename to include/asm-powerpc/cpm1.h
index ec87b8fff07508b37ca0538f825338ba41e656f0..901a00b48959f4a79969a596d6e1e7fc955d0e85 100644 (file)
@@ -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>
@@ -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(u8addr);
+extern uint cpm_dpram_phys(u8 *addr);
 #endif
 
 extern void cpm_setbrg(uint brg, uint rate);
@@ -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__ */
similarity index 99%
rename from include/asm-ppc/commproc.h
rename to include/asm-ppc/cpm1.h
index 5418d6de17370f8fd2e40ff46e9f54c429d0f7fa..03035acd85c60dcc15c2fabece39a00ce12ba3f2 100644 (file)
@@ -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>
@@ -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(u8addr);
+extern uint cpm_dpram_phys(u8 *addr);
 extern void cpm_setbrg(uint brg, uint rate);
 
 extern void cpm_load_patch(volatile immap_t *immr);
@@ -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__ */