Skip to content

Commit b5677d8

Browse files
JochenFriedrichkumargala
authored andcommitted
[POWERPC] CPM: Rename commproc to cpm1 and cpm2_common.c to cpm2.c
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>
1 parent 02753cb commit b5677d8

28 files changed

Lines changed: 38 additions & 38 deletions

File tree

‎arch/powerpc/platforms/8xx/ep88xc.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <asm/io.h>
1717
#include <asm/udbg.h>
1818
#include <asm/commproc.h>
19+
#include <asm/cpm1.h>
1920

2021
#include "mpc8xx.h"
2122

‎arch/powerpc/platforms/8xx/mpc86xads_setup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include <asm/system.h>
2323
#include <asm/time.h>
2424
#include <asm/8xx_immap.h>
25-
#include <asm/commproc.h>
25+
#include <asm/cpm1.h>
2626
#include <asm/fs_pd.h>
2727
#include <asm/udbg.h>
2828

‎arch/powerpc/platforms/8xx/mpc885ads_setup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#include <asm/time.h>
3737
#include <asm/mpc8xx.h>
3838
#include <asm/8xx_immap.h>
39-
#include <asm/commproc.h>
39+
#include <asm/cpm1.h>
4040
#include <asm/fs_pd.h>
4141
#include <asm/udbg.h>
4242

‎arch/powerpc/sysdev/Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ endif
3737
# Temporary hack until we have migrated to asm-powerpc
3838
ifeq ($(ARCH),powerpc)
3939
obj-$(CONFIG_CPM) += cpm_common.o
40-
obj-$(CONFIG_CPM2) += cpm2_common.o cpm2_pic.o
40+
obj-$(CONFIG_CPM2) += cpm2.o cpm2_pic.o
4141
obj-$(CONFIG_PPC_DCR) += dcr.o
42-
obj-$(CONFIG_8xx) += mpc8xx_pic.o commproc.o
42+
obj-$(CONFIG_8xx) += mpc8xx_pic.o cpm1.o
4343
obj-$(CONFIG_UCODE_PATCH) += micropatch.o
4444
endif
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include <asm/page.h>
3434
#include <asm/pgtable.h>
3535
#include <asm/8xx_immap.h>
36-
#include <asm/commproc.h>
36+
#include <asm/cpm1.h>
3737
#include <asm/io.h>
3838
#include <asm/tlbflush.h>
3939
#include <asm/rheap.h>
@@ -290,7 +290,7 @@ cpm_setbrg(uint brg, uint rate)
290290
out_be32(bp, (((BRG_UART_CLK / rate) - 1) << 1) | CPM_BRG_EN);
291291
else
292292
out_be32(bp, (((BRG_UART_CLK_DIV16 / rate) - 1) << 1) |
293-
CPM_BRG_EN | CPM_BRG_DIV16);
293+
CPM_BRG_EN | CPM_BRG_DIV16);
294294
}
295295

296296
#ifndef CONFIG_PPC_CPM_NEW_BINDING
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,7 @@ cpm2_fastbrg(uint brg, uint rate, int div16)
153153

154154
if (brg < 4) {
155155
bp = cpm2_map_size(im_brgc1, 16);
156-
}
157-
else {
156+
} else {
158157
bp = cpm2_map_size(im_brgc5, 16);
159158
brg -= 4;
160159
}

‎arch/powerpc/sysdev/micropatch.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include <asm/page.h>
1717
#include <asm/pgtable.h>
1818
#include <asm/8xx_immap.h>
19-
#include <asm/commproc.h>
19+
#include <asm/cpm1.h>
2020

2121
/*
2222
* I2C/SPI relocation patch arrays.

‎arch/ppc/8260_io/enet.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* This version of the driver is somewhat selectable for the different
1111
* processor/board combinations. It works for the boards I know about
1212
* now, and should be easily modified to include others. Some of the
13-
* configuration information is contained in <asm/commproc.h> and the
13+
* configuration information is contained in <asm/cpm1.h> and the
1414
* remainder is here.
1515
*
1616
* Buffer descriptors are kept in the CPM dual port RAM, and the frame

‎arch/ppc/8xx_io/commproc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include <asm/page.h>
3535
#include <asm/pgtable.h>
3636
#include <asm/8xx_immap.h>
37-
#include <asm/commproc.h>
37+
#include <asm/cpm1.h>
3838
#include <asm/io.h>
3939
#include <asm/tlbflush.h>
4040
#include <asm/rheap.h>

‎arch/ppc/8xx_io/enet.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* This version of the driver is somewhat selectable for the different
99
* processor/board combinations. It works for the boards I know about
1010
* now, and should be easily modified to include others. Some of the
11-
* configuration information is contained in <asm/commproc.h> and the
11+
* configuration information is contained in <asm/cpm1.h> and the
1212
* remainder is here.
1313
*
1414
* Buffer descriptors are kept in the CPM dual port RAM, and the frame
@@ -43,7 +43,7 @@
4343
#include <asm/pgtable.h>
4444
#include <asm/mpc8xx.h>
4545
#include <asm/uaccess.h>
46-
#include <asm/commproc.h>
46+
#include <asm/cpm1.h>
4747
#include <asm/cacheflush.h>
4848

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

8686
/* The transmitter timeout

0 commit comments

Comments
 (0)