File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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)
Original file line number Diff line number Diff line change 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).
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__ */
Original file line number Diff line number Diff line change 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)
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ EXPORT_SYMBOL(cpm2_immr);
6161void __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
You can’t perform that action at this time.
0 commit comments