Skip to content

Commit ca851c7

Browse files
committed
powerpc/cpm: Remove some cruft code and defines
Kill of some old defines and macros that we no longer use like CPM_MAP_ADDR and CPM_IRQ_OFFSET. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
1 parent 89d9334 commit ca851c7

4 files changed

Lines changed: 1 addition & 22 deletions

File tree

‎arch/powerpc/include/asm/cpm2.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
#include <asm/cpm.h>
1515
#include <sysdev/fsl_soc.h>
1616

17-
#ifdef CONFIG_PPC_85xx
18-
#define CPM_MAP_ADDR (get_immrbase() + 0x80000)
19-
#endif
20-
2117
/* CPM Command register.
2218
*/
2319
#define CPM_CR_RST ((uint)0x80000000)

‎arch/powerpc/platforms/82xx/pq2ads.h‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@
2424

2525
#include <linux/seq_file.h>
2626

27-
/* Backword-compatibility stuff for the drivers */
28-
#define CPM_MAP_ADDR ((uint)0xf0000000)
29-
#define CPM_IRQ_OFFSET 0
30-
3127
/* The ADS8260 has 16, 32-bit wide control/status registers, accessed
3228
* only on word boundaries.
3329
* Not all are used (yet), or are interesting to us (yet).
@@ -44,14 +40,5 @@
4440
#define BCSR3_FETHIEN2 ((uint)0x10000000) /* 0 == enable*/
4541
#define BCSR3_FETH2_RST ((uint)0x80000000) /* 0 == reset */
4642

47-
/* cpm serial driver works with constants below */
48-
49-
#define SIU_INT_SMC1 ((uint)0x04+CPM_IRQ_OFFSET)
50-
#define SIU_INT_SMC2 ((uint)0x05+CPM_IRQ_OFFSET)
51-
#define SIU_INT_SCC1 ((uint)0x28+CPM_IRQ_OFFSET)
52-
#define SIU_INT_SCC2 ((uint)0x29+CPM_IRQ_OFFSET)
53-
#define SIU_INT_SCC3 ((uint)0x2a+CPM_IRQ_OFFSET)
54-
#define SIU_INT_SCC4 ((uint)0x2b+CPM_IRQ_OFFSET)
55-
5643
#endif /* __MACH_ADS8260_DEFS */
5744
#endif /* __KERNEL__ */

‎arch/powerpc/platforms/8xx/mpc885ads.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@
1717

1818
#include <sysdev/fsl_soc.h>
1919

20-
#define MPC8xx_CPM_OFFSET (0x9c0)
21-
#define CPM_MAP_ADDR (get_immrbase() + MPC8xx_CPM_OFFSET)
22-
#define CPM_IRQ_OFFSET 16 // for compability with cpm_uart driver
23-
2420
/* Bits of interest in the BCSRs.
2521
*/
2622
#define BCSR1_ETHEN ((uint)0x20000000)

‎arch/powerpc/sysdev/cpm2.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ EXPORT_SYMBOL(cpm2_immr);
6161
void __init cpm2_reset(void)
6262
{
6363
#ifdef CONFIG_PPC_85xx
64-
cpm2_immr = ioremap(CPM_MAP_ADDR, CPM_MAP_SIZE);
64+
cpm2_immr = ioremap(get_immrbase() + 0x80000, CPM_MAP_SIZE);
6565
#else
6666
cpm2_immr = ioremap(get_immrbase(), CPM_MAP_SIZE);
6767
#endif

0 commit comments

Comments
 (0)