Remove left-over targets/motorola/*, fix Dell PowerEdge 1850 name.
[coreboot.git] / src / mainboard / embeddedplanet / ep405pc / ep405pc.cfg
1 ; bdiGDB configuration file for the Embedded Planet EP405PC
2 ; ---------------------------------------------------------
3 ;
4 [INIT]
5 ; init core register
6 WSPR    954     0x00000000      ;DCWR: Disable data cache write-thru
7 WSPR    1018    0x00000000      ;DCCR: Disable data cache
8 WSPR    1019    0x00000000      ;ICCR: Disable instruction cache
9 WSPR    981     0x00000000      ;EVPR: Exception Vector Table @0x00000000
10
11 ; Setup SDRAM Controller
12 WDCR    16      0x00000080      ;Select SDRAM0_TR
13 WDCR    17      0x010E8016      ;TR: SDRAM Timing Register
14 WDCR    16      0x00000040      ;Select SDRAM0_B0CR
15 WDCR    17      0x00084001      ;Select bank 0
16 WDCR    16      0x00000030      ;Select SDRAM0_RTR
17 WDCR    17      0x08080000      ;RTR: Refresh Timing Register
18 WDCR    16      0x00000094      ;Select SDRAM0_ECCCFG
19 WDCR    17      0x00000000      ;ECC: Disabled
20 WDCR    16      0x00000034      ;Select SDRAM0_PMIT
21 WDCR    17      0x0F000000      ;PMIT: Power Management Idle Timer
22 DELAY   1                       ;Wait for SDRAM powerup
23 WDCR    16      0x00000020      ;Select SDRAM0_CFG
24 WDCR    17      0x80C00000      ;CFG: Enable
25
26 ; MMU
27 WM32    0xf0    0x00000000      ;invalidate page table base
28
29 ; EBC
30 WDCR    0x12    0x00000004      ;Select EBC0_B4CR
31 WDCR    0x13    0xF4058000      ;Set NVRTC/BCSR
32 WDCR    0x12    0x00000014      ;Select EBC0_B4AP
33 WDCR    0x13    0x04050000      ;Set NVRTC/BCSR timing
34 WM8     0xF4000003    0x20      ;Enable UART0
35 WM8     0xF4000009    0x07      ;LED
36 DELAY 500
37 WM8     0xF4000009    0x0b      ;LED
38 DELAY 500
39 WM8     0xF4000009    0x0d      ;LED
40 DELAY 500
41 WM8     0xF4000009    0x0e      ;LED
42 DELAY 500
43
44 [TARGET]
45 JTAGCLOCK   0                   ;use 16 MHz JTAG clock
46 CPUTYPE     405                 ;the used target CPU type
47 BDIMODE     AGENT               ;the BDI working mode (LOADONLY | AGENT)
48 ;WAKEUP      3000                ;wakeup time after reset
49 BREAKMODE   HARD                ;SOFT or HARD, HARD uses PPC hardware breakpoint
50 STEPMODE    JTAG                ;JTAG or HWBP, HWPB uses one or two hardware breakpoints
51 VECTOR      CATCH               ;catch unhandled exceptions
52 MMU         XLAT 0xC0000000     ;enable virtual address mode
53 PTBASE      0x000000f0          ;address where kernel/user stores pointer to page table
54 SIO         2002 9600              ;TCP port for serial IO
55 ;SIO         2002 115200              ;TCP port for serial IO
56
57 ;REGLIST     SPR                 ;select register to transfer to GDB
58 ;REGLIST     ALL                 ;select register to transfer to GDB
59 ;SCANPRED    2 2                 ;JTAG devices connected before PPC400
60 ;SCANSUCC    3 3                 ;JTAG devices connected after PPC400
61
62 [HOST]
63 IP          10.0.1.2
64 FORMAT      ELF
65 FILE        coreboot.elf
66 ;START       0x200000
67 LOAD        MANUAL              ;load code MANUAL or AUTO after reset
68 DEBUGPORT   2001
69 DUMP        dump.bin            ;Linux: dump.bin must already exist and public writable
70
71 [FLASH]
72 WORKSPACE   0x00004000  ;workspace in target RAM for fast programming algorithm
73 CHIPTYPE    AM29BX16       ;Flash type (AM29F | AM29BX8 | AM29BX16 | I28BX8 | I28BX16)
74 CHIPSIZE    0x400000    ;The size of one flash chip in bytes (e.g. AM29F040 = 0x80000)
75 BUSWIDTH    16          ;The width of the flash memory bus in bits (8 | 16 | 32)
76 ERASE       0xFFF80000  ;erase sector 0 of flash in U7 (AM29F040)
77 ERASE       0xFFF90000  ;erase sector 1 of flash
78 ERASE       0xFFFA0000  ;erase sector 2 of flash
79 ERASE       0xFFFB0000  ;erase sector 3 of flash
80 ERASE       0xFFFC0000  ;erase sector 4 of flash
81 ERASE       0xFFFD0000  ;erase sector 5 of flash
82 ERASE       0xFFFE0000  ;erase sector 6 of flash
83 ERASE       0xFFFF0000  ;erase sector 7 of flash
84
85 [REGS]
86 IDCR1   0x010   0x011   ;MEMCFGADR and MEMCFGDATA
87 IDCR2   0x012   0x013   ;EBCCFGADR and EBCCFGDATA
88 IDCR3   0x014   0x015   ;KIAR and KIDR
89 FILE    reg405gp.def