]>
Commit | Line | Data |
---|---|---|
46263f2d | 1 | /* |
1b387ef5 | 2 | * SPDX-License-Identifier: GPL-2.0 IBM-pibs |
46263f2d | 3 | */ |
0442ed86 WD |
4 | |
5 | #ifndef __PPC405_H__ | |
6 | #define __PPC405_H__ | |
7 | ||
c821b5f1 GE |
8 | /* Define bits and masks for real-mode storage attribute control registers */ |
9 | #define PPC_128MB_SACR_BIT(addr) ((addr) >> 27) | |
10 | #define PPC_128MB_SACR_VALUE(addr) PPC_REG_VAL(PPC_128MB_SACR_BIT(addr),1) | |
11 | ||
dbcc3571 | 12 | #define CONFIG_SYS_DCACHE_SIZE (16 << 10) /* For AMCC 405 CPUs */ |
9b94ac61 | 13 | |
5e7abce9 SR |
14 | /* DCR registers */ |
15 | #define PLB0_ACR 0x0087 | |
16 | ||
afabb498 SR |
17 | /* SDR registers */ |
18 | #define SDR0_PINSTP 0x0040 | |
aee747f1 | 19 | |
afabb498 SR |
20 | /* CPR registers */ |
21 | #define CPR0_CLKUPD 0x0020 | |
22 | #define CPR0_PLLC 0x0040 | |
23 | #define CPR0_PLLD 0x0060 | |
24 | #define CPR0_CPUD 0x0080 | |
25 | #define CPR0_PLBD 0x00a0 | |
26 | #define CPR0_OPBD0 0x00c0 | |
27 | #define CPR0_PERD 0x00e0 | |
dbbd1257 | 28 | |
10320173 | 29 | /* |
afabb498 | 30 | * DMA |
10320173 | 31 | */ |
afabb498 SR |
32 | #define DMA_DCR_BASE 0x0100 |
33 | #define DMACR0 (DMA_DCR_BASE + 0x00) /* DMA channel control reg 0 */ | |
34 | #define DMACT0 (DMA_DCR_BASE + 0x01) /* DMA count reg 0 */ | |
35 | #define DMADA0 (DMA_DCR_BASE + 0x02) /* DMA destination address reg 0 */ | |
36 | #define DMASA0 (DMA_DCR_BASE + 0x03) /* DMA source address reg 0 */ | |
37 | #define DMASB0 (DMA_DCR_BASE + 0x04) /* DMA sg descriptor addr 0 */ | |
38 | #define DMACR1 (DMA_DCR_BASE + 0x08) /* DMA channel control reg 1 */ | |
39 | #define DMACT1 (DMA_DCR_BASE + 0x09) /* DMA count reg 1 */ | |
40 | #define DMADA1 (DMA_DCR_BASE + 0x0a) /* DMA destination address reg 1 */ | |
41 | #define DMASA1 (DMA_DCR_BASE + 0x0b) /* DMA source address reg 1 */ | |
42 | #define DMASB1 (DMA_DCR_BASE + 0x0c) /* DMA sg descriptor addr 1 */ | |
43 | #define DMACR2 (DMA_DCR_BASE + 0x10) /* DMA channel control reg 2 */ | |
44 | #define DMACT2 (DMA_DCR_BASE + 0x11) /* DMA count reg 2 */ | |
45 | #define DMADA2 (DMA_DCR_BASE + 0x12) /* DMA destination address reg 2 */ | |
46 | #define DMASA2 (DMA_DCR_BASE + 0x13) /* DMA source address reg 2 */ | |
47 | #define DMASB2 (DMA_DCR_BASE + 0x14) /* DMA sg descriptor addr 2 */ | |
48 | #define DMACR3 (DMA_DCR_BASE + 0x18) /* DMA channel control reg 3 */ | |
49 | #define DMACT3 (DMA_DCR_BASE + 0x19) /* DMA count reg 3 */ | |
50 | #define DMADA3 (DMA_DCR_BASE + 0x1a) /* DMA destination address reg 3 */ | |
51 | #define DMASA3 (DMA_DCR_BASE + 0x1b) /* DMA source address reg 3 */ | |
52 | #define DMASB3 (DMA_DCR_BASE + 0x1c) /* DMA sg descriptor addr 3 */ | |
53 | #define DMASR (DMA_DCR_BASE + 0x20) /* DMA status reg */ | |
54 | #define DMASGC (DMA_DCR_BASE + 0x23) /* DMA scatter/gather command reg*/ | |
55 | #define DMAADR (DMA_DCR_BASE + 0x24) /* DMA address decode reg */ | |
dbbd1257 | 56 | |
0442ed86 | 57 | #endif /* __PPC405_H__ */ |