Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 1 | /* |
| 2 | * init.S |
| 3 | * ------ |
| 4 | * |
| 5 | * Wind River PPMC 7xx/74xx init code. |
| 6 | * |
| 7 | * By Richard Danter (richard.danter@windriver.com) |
| 8 | * Copyright (C) 2005 Wind River Systems |
| 9 | * |
| 10 | * NOTE: The following code was generated automatically by Workbench |
| 11 | * from the ppmc7400_107.reg register file. |
| 12 | */ |
| 13 | |
| 14 | #include <ppc_asm.tmpl> |
| 15 | |
| 16 | |
| 17 | .globl board_asm_init |
| 18 | board_asm_init: |
| 19 | |
| 20 | lis r4,0xFEC0 |
| 21 | ori r4,r4,0x0000 |
| 22 | lis r5,0xFEE0 |
| 23 | ori r5,r5,0x0000 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 24 | lis r3,0x8000 # ADDR_00 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 25 | ori r3,r3,0x0000 |
| 26 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 27 | li r3,0x1057 # VENDOR |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 28 | li r8, 0x0 |
| 29 | sthbrx r3,r8,r5 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 30 | lis r3,0x8000 # ADDR_02 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 31 | ori r3,r3,0x0002 |
| 32 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 33 | li r3,0x0004 # ID |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 34 | li r8, 0x2 |
| 35 | sthbrx r3,r8,r5 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 36 | lis r3,0x8000 # ADDR_04 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 37 | ori r3,r3,0x0004 |
| 38 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 39 | li r3,0x0006 # PCICMD |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 40 | li r8, 0x0 |
| 41 | sthbrx r3,r8,r5 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 42 | lis r3,0x8000 # ADDR_06 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 43 | ori r3,r3,0x0006 |
| 44 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 45 | li r3,0x00A0 # PCISTAT |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 46 | li r8, 0x2 |
| 47 | sthbrx r3,r8,r5 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 48 | lis r3,0x8000 # ADDR_08 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 49 | ori r3,r3,0x0008 |
| 50 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 51 | li r3,0x10 # REVID |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 52 | stb r3,0x0(r5) |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 53 | lis r3,0x8000 # ADDR_09 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 54 | ori r3,r3,0x0009 |
| 55 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 56 | li r3,0x00 # PROGIR |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 57 | stb r3,0x1(r5) |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 58 | lis r3,0x8000 # ADDR_0A |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 59 | ori r3,r3,0x000A |
| 60 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 61 | li r3,0x00 # SUBCCODE |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 62 | stb r3,0x2(r5) |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 63 | lis r3,0x8000 # ADDR_0B |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 64 | ori r3,r3,0x000B |
| 65 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 66 | li r3,0x06 # PBCCR |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 67 | stb r3,0x3(r5) |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 68 | lis r3,0x8000 # ADDR_0C |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 69 | ori r3,r3,0x000C |
| 70 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 71 | li r3,0x08 # PCLSR |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 72 | stb r3,0x0(r5) |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 73 | lis r3,0x8000 # ADDR_0D |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 74 | ori r3,r3,0x000D |
| 75 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 76 | li r3,0x00 # PLTR |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 77 | stb r3,0x1(r5) |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 78 | lis r3,0x8000 # ADDR_0E |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 79 | ori r3,r3,0x000E |
| 80 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 81 | li r3,0x00 # HEADTYPE |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 82 | stb r3,0x2(r5) |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 83 | lis r3,0x8000 # ADDR_0F |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 84 | ori r3,r3,0x000F |
| 85 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 86 | li r3,0x00 # BISTCTRL |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 87 | stb r3,0x3(r5) |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 88 | lis r3,0x8000 # ADDR_10 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 89 | ori r3,r3,0x0010 |
| 90 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 91 | lis r3,0x0000 # LMBAR |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 92 | ori r3,r3,0x0008 |
| 93 | li r8, 0x0 |
| 94 | stwbrx r3,r8,r5 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 95 | lis r3,0x8000 # ADDR_14 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 96 | ori r3,r3,0x0014 |
| 97 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 98 | lis r3,0xF000 # PCSRBAR |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 99 | ori r3,r3,0x0000 |
| 100 | li r8, 0x0 |
| 101 | stwbrx r3,r8,r5 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 102 | lis r3,0x8000 # ADDR_3C |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 103 | ori r3,r3,0x003C |
| 104 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 105 | li r3,0x00 # ILR |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 106 | stb r3,0x0(r5) |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 107 | lis r3,0x8000 # ADDR_3D |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 108 | ori r3,r3,0x003D |
| 109 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 110 | li r3,0x01 # INTPIN |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 111 | stb r3,0x1(r5) |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 112 | lis r3,0x8000 # ADDR_3E |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 113 | ori r3,r3,0x003E |
| 114 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 115 | li r3,0x00 # MIN_GNT |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 116 | stb r3,0x2(r5) |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 117 | lis r3,0x8000 # ADDR_3F |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 118 | ori r3,r3,0x003F |
| 119 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 120 | li r3,0x00 # MAX_LAT |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 121 | stb r3,0x3(r5) |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 122 | lis r3,0x8000 # ADDR_40 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 123 | ori r3,r3,0x0040 |
| 124 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 125 | li r3,0x00 # BUSNB |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 126 | stb r3,0x0(r5) |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 127 | lis r3,0x8000 # ADDR_41 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 128 | ori r3,r3,0x0041 |
| 129 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 130 | li r3,0x00 # SBUSNB |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 131 | stb r3,0x1(r5) |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 132 | lis r3,0x8000 # ADDR_46 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 133 | ori r3,r3,0x0046 |
| 134 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 135 | # li r3,0xE080 # PCIARB |
| 136 | li r3,-0x1F80 # PCIARB |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 137 | li r8, 0x2 |
| 138 | sthbrx r3,r8,r5 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 139 | lis r3,0x8000 # ADDR_70 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 140 | ori r3,r3,0x0070 |
| 141 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 142 | li r3,0x0000 # PMCR1 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 143 | li r8, 0x0 |
| 144 | sthbrx r3,r8,r5 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 145 | lis r3,0x8000 # ADDR_72 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 146 | ori r3,r3,0x0072 |
| 147 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 148 | li r3,0xC0 # PMCR2 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 149 | stb r3,0x2(r5) |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 150 | lis r3,0x8000 # ADDR_73 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 151 | ori r3,r3,0x0073 |
| 152 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 153 | li r3,0xEF # ODCR |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 154 | stb r3,0x3(r5) |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 155 | lis r3,0x8000 # ADDR_74 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 156 | ori r3,r3,0x0074 |
| 157 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 158 | li r3,0x7D00 # CLKDCR |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 159 | li r8, 0x0 |
| 160 | sthbrx r3,r8,r5 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 161 | lis r3,0x8000 # ADDR_76 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 162 | ori r3,r3,0x0076 |
| 163 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 164 | li r3,0x00 # MDCR |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 165 | stb r3,0x2(r5) |
| 166 | lis r6,0xFCE0 |
| 167 | ori r6,r6,0x0000 # r6 is the EUMBAR Base Address |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 168 | lis r3,0x8000 # ADDR_78 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 169 | ori r3,r3,0x0078 |
| 170 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 171 | lis r3,0xFCE0 # EUMBBAR |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 172 | ori r3,r3,0x0000 |
| 173 | li r8, 0x0 |
| 174 | stwbrx r3,r8,r5 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 175 | lis r3,0x8000 # ADDR_80 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 176 | ori r3,r3,0x0080 |
| 177 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 178 | lis r3,0xFFFF # MSADDR1 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 179 | ori r3,r3,0x4000 |
| 180 | li r8, 0x0 |
| 181 | stwbrx r3,r8,r5 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 182 | lis r3,0x8000 # ADDR_84 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 183 | ori r3,r3,0x0084 |
| 184 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 185 | lis r3,0xFFFF # MSADDR2 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 186 | ori r3,r3,0xFFFF |
| 187 | li r8, 0x0 |
| 188 | stwbrx r3,r8,r5 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 189 | lis r3,0x8000 # ADDR_88 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 190 | ori r3,r3,0x0088 |
| 191 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 192 | lis r3,0x0303 # EMSADDR1 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 193 | ori r3,r3,0x0000 |
| 194 | li r8, 0x0 |
| 195 | stwbrx r3,r8,r5 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 196 | lis r3,0x8000 # ADDR_8C |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 197 | ori r3,r3,0x008C |
| 198 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 199 | lis r3,0x0303 # EMSADDR2 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 200 | ori r3,r3,0x0303 |
| 201 | li r8, 0x0 |
| 202 | stwbrx r3,r8,r5 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 203 | lis r3,0x8000 # ADDR_90 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 204 | ori r3,r3,0x0090 |
| 205 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 206 | lis r3,0xFFFF # EMEADDR1 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 207 | ori r3,r3,0x7F3F |
| 208 | li r8, 0x0 |
| 209 | stwbrx r3,r8,r5 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 210 | lis r3,0x8000 # ADDR_94 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 211 | ori r3,r3,0x0094 |
| 212 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 213 | lis r3,0xFFFF # EMEADDR2 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 214 | ori r3,r3,0xFFFF |
| 215 | li r8, 0x0 |
| 216 | stwbrx r3,r8,r5 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 217 | lis r3,0x8000 # ADDR_98 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 218 | ori r3,r3,0x0098 |
| 219 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 220 | lis r3,0x0303 # EXTEMEM1 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 221 | ori r3,r3,0x0000 |
| 222 | li r8, 0x0 |
| 223 | stwbrx r3,r8,r5 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 224 | lis r3,0x8000 # ADDR_9C |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 225 | ori r3,r3,0x009C |
| 226 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 227 | lis r3,0x0303 # EXTEMEM2 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 228 | ori r3,r3,0x0303 |
| 229 | li r8, 0x0 |
| 230 | stwbrx r3,r8,r5 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 231 | lis r3,0x8000 # ADDR_A0 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 232 | ori r3,r3,0x00A0 |
| 233 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 234 | li r3,0x03 # MEMBNKEN |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 235 | stb r3,0x0(r5) |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 236 | lis r3,0x8000 # ADDR_A3 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 237 | ori r3,r3,0x00A3 |
| 238 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 239 | li r3,0x00 # MEMPMODE |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 240 | stb r3,0x3(r5) |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 241 | lis r3,0x8000 # ADDR_B8 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 242 | ori r3,r3,0x00B8 |
| 243 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 244 | li r3,0x00 # ECCCNT |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 245 | stb r3,0x0(r5) |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 246 | lis r3,0x8000 # ADDR_B9 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 247 | ori r3,r3,0x00B9 |
| 248 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 249 | li r3,0x00 # ECCTRG |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 250 | stb r3,0x1(r5) |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 251 | lis r3,0x8000 # ADDR_C0 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 252 | ori r3,r3,0x00C0 |
| 253 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 254 | li r3,0xFF # ERRENR1 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 255 | stb r3,0x0(r5) |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 256 | lis r3,0x8000 # ADDR_C1 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 257 | ori r3,r3,0x00C1 |
| 258 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 259 | li r3,0x00 # ERRDR1 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 260 | stb r3,0x1(r5) |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 261 | lis r3,0x8000 # ADDR_C3 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 262 | ori r3,r3,0x00C3 |
| 263 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 264 | li r3,0x50 # IPBESR |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 265 | stb r3,0x3(r5) |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 266 | lis r3,0x8000 # ADDR_C4 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 267 | ori r3,r3,0x00C4 |
| 268 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 269 | li r3,0xBF # ERRENR2 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 270 | stb r3,0x0(r5) |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 271 | lis r3,0x8000 # ADDR_C5 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 272 | ori r3,r3,0x00C5 |
| 273 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 274 | li r3,0x00 # ERRDR2 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 275 | stb r3,0x1(r5) |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 276 | lis r3,0x8000 # ADDR_C7 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 277 | ori r3,r3,0x00C7 |
| 278 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 279 | li r3,0x00 # PCIBESR |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 280 | stb r3,0x3(r5) |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 281 | lis r3,0x8000 # ADDR_C8 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 282 | ori r3,r3,0x00C8 |
| 283 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 284 | lis r3,0x0000 # BERRADDR |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 285 | ori r3,r3,0xE0FE |
| 286 | li r8, 0x0 |
| 287 | stwbrx r3,r8,r5 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 288 | lis r3,0x8000 # ADDR_E0 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 289 | ori r3,r3,0x00E0 |
| 290 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 291 | li r3,0xC0 # AMBOR |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 292 | stb r3,0x0(r5) |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 293 | lis r3,0x8000 # ADDR_F4 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 294 | ori r3,r3,0x00F4 |
| 295 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 296 | lis r3,0x0000 # MCCR2 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 297 | ori r3,r3,0x020C |
| 298 | li r8, 0x0 |
| 299 | stwbrx r3,r8,r5 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 300 | lis r3,0x8000 # ADDR_F8 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 301 | ori r3,r3,0x00F8 |
| 302 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 303 | lis r3,0x0230 # MCCR3 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 304 | ori r3,r3,0x0000 |
| 305 | li r8, 0x0 |
| 306 | stwbrx r3,r8,r5 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 307 | lis r3,0x8000 # ADDR_FC |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 308 | ori r3,r3,0x00FC |
| 309 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 310 | lis r3,0x2532 # MCCR4 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 311 | ori r3,r3,0x2220 |
| 312 | li r8, 0x0 |
| 313 | stwbrx r3,r8,r5 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 314 | lis r3,0x8000 # ADDR_F0 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 315 | ori r3,r3,0x00F0 |
| 316 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 317 | lis r3,0xFFC8 # MCCR1 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 318 | ori r3,r3,0x0000 |
| 319 | li r8, 0x0 |
| 320 | stwbrx r3,r8,r5 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 321 | lis r3,0x8000 # ADDR_A8 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 322 | ori r3,r3,0x00A8 |
| 323 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 324 | lis r3,0xFF14 # PICR1 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 325 | ori r3,r3,0x1CC8 |
| 326 | li r8, 0x0 |
| 327 | stwbrx r3,r8,r5 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 328 | lis r3,0x8000 # ADDR_AC |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 329 | ori r3,r3,0x00AC |
| 330 | stwbrx r3,0,r4 |
Wolfgang Denk | ba94093 | 2006-07-19 13:50:38 +0200 | [diff] [blame] | 331 | lis r3,0x0000 # PICR2 |
Heiko Schocher | d7f77fb | 2006-06-19 11:02:41 +0200 | [diff] [blame] | 332 | ori r3,r3,0x0000 |
| 333 | li r8, 0x0 |
| 334 | stwbrx r3,r8,r5 |
| 335 | |
| 336 | blr |