wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Board specific setup info |
| 3 | * |
| 4 | * (C) Copyright 2003 |
| 5 | * Texas Instruments, <www.ti.com> |
| 6 | * |
| 7 | * -- Some bits of code used from rrload's head_OMAP1510.s -- |
| 8 | * Copyright (C) 2002 RidgeRun, Inc. |
| 9 | * |
| 10 | * See file CREDITS for list of people who contributed to this |
| 11 | * project. |
| 12 | * |
| 13 | * This program is free software; you can redistribute it and/or |
| 14 | * modify it under the terms of the GNU General Public License as |
| 15 | * published by the Free Software Foundation; either version 2 of |
| 16 | * the License, or (at your option) any later version. |
| 17 | * |
| 18 | * This program is distributed in the hope that it will be useful, |
| 19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 21 | * GNU General Public License for more details. |
| 22 | * |
| 23 | * You should have received a copy of the GNU General Public License |
| 24 | * along with this program; if not, write to the Free Software |
| 25 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 26 | * MA 02111-1307 USA |
| 27 | */ |
| 28 | |
| 29 | #include <config.h> |
| 30 | #include <version.h> |
| 31 | |
| 32 | #if defined(CONFIG_OMAP1510) |
| 33 | #include <./configs/omap1510.h> |
| 34 | #endif |
| 35 | |
| 36 | #define OMAP1510_CLKS ((1<<EN_XORPCK)|(1<<EN_PERCK)|(1<<EN_TIMCK)|(1<<EN_GPIOCK)) |
| 37 | |
| 38 | |
| 39 | _TEXT_BASE: |
Wolfgang Denk | 0708bc6 | 2010-10-07 21:51:12 +0200 | [diff] [blame] | 40 | .word CONFIG_SYS_TEXT_BASE /* sdram load addr from config.mk */ |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 41 | |
Wolfgang Denk | 7f88a5e | 2005-10-06 17:08:18 +0200 | [diff] [blame] | 42 | .globl lowlevel_init |
| 43 | lowlevel_init: |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 44 | |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 45 | /* |
| 46 | * Configure 1510 pins functions to match our board. |
| 47 | */ |
| 48 | ldr r0, REG_PULL_DWN_CTRL_0 |
| 49 | ldr r1, VAL_PULL_DWN_CTRL_0 |
| 50 | str r1, [r0] |
| 51 | ldr r0, REG_PULL_DWN_CTRL_1 |
| 52 | ldr r1, VAL_PULL_DWN_CTRL_1 |
| 53 | str r1, [r0] |
| 54 | ldr r0, REG_PULL_DWN_CTRL_2 |
| 55 | ldr r1, VAL_PULL_DWN_CTRL_2 |
| 56 | str r1, [r0] |
| 57 | ldr r0, REG_PULL_DWN_CTRL_3 |
| 58 | ldr r1, VAL_PULL_DWN_CTRL_3 |
| 59 | str r1, [r0] |
| 60 | ldr r0, REG_FUNC_MUX_CTRL_4 |
| 61 | ldr r1, VAL_FUNC_MUX_CTRL_4 |
| 62 | str r1, [r0] |
| 63 | ldr r0, REG_FUNC_MUX_CTRL_5 |
| 64 | ldr r1, VAL_FUNC_MUX_CTRL_5 |
| 65 | str r1, [r0] |
| 66 | ldr r0, REG_FUNC_MUX_CTRL_6 |
| 67 | ldr r1, VAL_FUNC_MUX_CTRL_6 |
| 68 | str r1, [r0] |
| 69 | ldr r0, REG_FUNC_MUX_CTRL_7 |
| 70 | ldr r1, VAL_FUNC_MUX_CTRL_7 |
| 71 | str r1, [r0] |
| 72 | ldr r0, REG_FUNC_MUX_CTRL_8 |
| 73 | ldr r1, VAL_FUNC_MUX_CTRL_8 |
| 74 | str r1, [r0] |
| 75 | ldr r0, REG_FUNC_MUX_CTRL_9 |
| 76 | ldr r1, VAL_FUNC_MUX_CTRL_9 |
| 77 | str r1, [r0] |
| 78 | ldr r0, REG_FUNC_MUX_CTRL_A |
| 79 | ldr r1, VAL_FUNC_MUX_CTRL_A |
| 80 | str r1, [r0] |
| 81 | ldr r0, REG_FUNC_MUX_CTRL_B |
| 82 | ldr r1, VAL_FUNC_MUX_CTRL_B |
| 83 | str r1, [r0] |
| 84 | ldr r0, REG_FUNC_MUX_CTRL_C |
| 85 | ldr r1, VAL_FUNC_MUX_CTRL_C |
| 86 | str r1, [r0] |
wdenk | 7eaacc5 | 2003-08-29 22:00:43 +0000 | [diff] [blame] | 87 | ldr r0, REG_FUNC_MUX_CTRL_D |
| 88 | ldr r1, VAL_FUNC_MUX_CTRL_D |
| 89 | str r1, [r0] |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 90 | ldr r0, REG_VOLTAGE_CTRL_0 |
| 91 | ldr r1, VAL_VOLTAGE_CTRL_0 |
| 92 | str r1, [r0] |
| 93 | ldr r0, REG_TEST_DBG_CTRL_0 |
| 94 | ldr r1, VAL_TEST_DBG_CTRL_0 |
| 95 | str r1, [r0] |
| 96 | ldr r0, REG_MOD_CONF_CTRL_0 |
| 97 | ldr r1, VAL_MOD_CONF_CTRL_0 |
| 98 | str r1, [r0] |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 99 | |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 100 | /* Move to 1510 mode */ |
| 101 | ldr r0, REG_COMP_MODE_CTRL_0 |
| 102 | ldr r1, VAL_COMP_MODE_CTRL_0 |
| 103 | str r1, [r0] |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 104 | |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 105 | /* Set up Traffic Ctlr*/ |
| 106 | ldr r0, REG_TC_IMIF_PRIO |
| 107 | mov r1, #0x0 |
| 108 | str r1, [r0] |
| 109 | ldr r0, REG_TC_EMIFS_PRIO |
| 110 | str r1, [r0] |
| 111 | ldr r0, REG_TC_EMIFF_PRIO |
| 112 | str r1, [r0] |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 113 | |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 114 | ldr r0, REG_TC_EMIFS_CONFIG |
| 115 | ldr r1, [r0] |
| 116 | bic r1, r1, #0x08 /* clear the global power-down enable PDE bit */ |
| 117 | bic r1, r1, #0x01 /* write protect flash by clearing the WP bit */ |
| 118 | str r1, [r0] /* EMIFS GlB Configuration. (value 0x12 most likely) */ |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 119 | |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 120 | /* Setup some clock domains */ |
| 121 | ldr r1, =OMAP1510_CLKS |
| 122 | ldr r0, REG_ARM_IDLECT2 |
| 123 | strh r1, [r0] /* CLKM, Clock domain control. */ |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 124 | |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 125 | mov r1, #0x01 /* PER_EN bit */ |
| 126 | ldr r0, REG_ARM_RSTCT2 |
| 127 | strh r1, [r0] /* CLKM; Peripheral reset. */ |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 128 | |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 129 | /* Set CLKM to Sync-Scalable */ |
| 130 | /* I supposidly need to enable the dsp clock before switching */ |
| 131 | mov r1, #0x1000 |
| 132 | ldr r0, REG_ARM_SYSST |
| 133 | strh r1, [r0] |
| 134 | mov r0, #0x400 |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 135 | 1: |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 136 | subs r0, r0, #0x1 /* wait for any bubbles to finish */ |
| 137 | bne 1b |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 138 | |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 139 | ldr r1, VAL_ARM_CKCTL /* use 12Mhz ref, PER must be <= 50Mhz so /2 */ |
| 140 | ldr r0, REG_ARM_CKCTL |
| 141 | strh r1, [r0] |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 142 | |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 143 | /* setup DPLL 1 */ |
| 144 | ldr r1, VAL_DPLL1_CTL |
| 145 | ldr r0, REG_DPLL1_CTL |
| 146 | strh r1, [r0] |
| 147 | ands r1, r1, #0x10 /* Check if PLL is enabled. */ |
| 148 | beq lock_end /* Do not look for lock if BYPASS selected */ |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 149 | 2: |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 150 | ldrh r1, [r0] |
| 151 | ands r1, r1, #0x01 /* Check the LOCK bit. */ |
| 152 | beq 2b /* ...loop until bit goes hi. */ |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 153 | lock_end: |
| 154 | |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 155 | /* Set memory timings corresponding to the new clock speed */ |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 156 | |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 157 | /* Check execution location to determine current execution location |
| 158 | * and branch to appropriate initialization code. |
| 159 | */ |
| 160 | mov r0, #0x10000000 /* Load physical SDRAM base. */ |
| 161 | mov r1, pc /* Get current execution location. */ |
wdenk | 17b211b | 2004-10-11 23:10:30 +0000 | [diff] [blame] | 162 | /* Zero all but top 6 bits of PC, as they alone detect whether an |
wdenk | adf849c | 2004-10-10 22:44:24 +0000 | [diff] [blame] | 163 | * address is in the range 0x1000:0000-0x13ff:ffff, the 64M sized |
| 164 | * valid range for SDRAM on the OMAP 1510/5910. |
| 165 | */ |
| 166 | and r1, r1, #0xfc000000 |
| 167 | cmp r1, r0 /* Compare. */ |
| 168 | beq skip_sdram /* Skip over EMIF-fast initialization |
| 169 | * if running from SDRAM. |
| 170 | */ |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 171 | |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 172 | /* |
| 173 | * Delay for SDRAM initialization. |
| 174 | */ |
| 175 | mov r3, #0x1800 /* value should be checked */ |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 176 | 3: |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 177 | subs r3, r3, #0x1 /* Decrement count */ |
| 178 | bne 3b |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 179 | |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 180 | /* |
| 181 | * Set SDRAM control values. Disable refresh before MRS command. |
| 182 | */ |
| 183 | ldr r0, VAL_TC_EMIFF_SDRAM_CONFIG /* get good value */ |
| 184 | bic r3, r0, #0xC /* (BIT3|BIT2) ulConfig with auto-refresh disabled. */ |
| 185 | orr r3, r3, #0x8000000 /* (BIT27) Disable CLK when Power down or Self-Refresh */ |
| 186 | orr r3, r3, #0x4000000 /* BIT26 Power Down Enable */ |
| 187 | ldr r2, REG_TC_EMIFF_SDRAM_CONFIG /* Point to configuration register. */ |
| 188 | str r3, [r2] /* Store the passed value with AR disabled. */ |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 189 | |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 190 | ldr r1, VAL_TC_EMIFF_MRS /* get MRS value */ |
| 191 | ldr r2, REG_TC_EMIFF_MRS /* Point to MRS register. */ |
| 192 | str r1, [r2] /* Store the passed value.*/ |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 193 | |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 194 | ldr r2, REG_TC_EMIFF_SDRAM_CONFIG /* Point to configuration register. */ |
| 195 | str r0, [r2] /* Store the passed value. */ |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 196 | |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 197 | /* |
| 198 | * Delay for SDRAM initialization. |
| 199 | */ |
| 200 | mov r3, #0x1800 |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 201 | 4: |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 202 | subs r3, r3, #1 /* Decrement count. */ |
| 203 | bne 4b |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 204 | |
| 205 | skip_sdram: |
| 206 | |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 207 | /* slow interface */ |
| 208 | ldr r1, VAL_TC_EMIFS_CS0_CONFIG |
| 209 | ldr r0, REG_TC_EMIFS_CS0_CONFIG |
| 210 | str r1, [r0] /* Chip Select 0 */ |
| 211 | ldr r1, VAL_TC_EMIFS_CS1_CONFIG |
| 212 | ldr r0, REG_TC_EMIFS_CS1_CONFIG |
| 213 | str r1, [r0] /* Chip Select 1 */ |
| 214 | ldr r1, VAL_TC_EMIFS_CS2_CONFIG |
| 215 | ldr r0, REG_TC_EMIFS_CS2_CONFIG |
| 216 | str r1, [r0] /* Chip Select 2 */ |
| 217 | ldr r1, VAL_TC_EMIFS_CS3_CONFIG |
| 218 | ldr r0, REG_TC_EMIFS_CS3_CONFIG |
| 219 | str r1, [r0] /* Chip Select 3 */ |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 220 | |
| 221 | /* Next, Enable the RS232 Line Drivers in the FPGA. */ |
| 222 | /* Also, power on the audio CODEC's amplifier here, */ |
| 223 | /* which will make a noise on the audio output. */ |
| 224 | /* This is done here instead of in the kernel so there */ |
| 225 | /* isn't a loud popping noise at the start of each */ |
| 226 | /* song. */ |
| 227 | /* Also, disable the CODEC's clocks. */ |
| 228 | /* omap1510-HelenP1 [specific] */ |
| 229 | |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 230 | ldr r0, REG_FPGA_POWER |
| 231 | mov r1, #0 |
| 232 | ldr r2, REG_FPGA_DIP_SWITCH |
| 233 | ldrb r3, [r2] |
| 234 | cmp r3, #0x8 |
| 235 | movne r1, #0x62 /* Enable the RS232 Line Drivers in the EPLD */ |
| 236 | strb r1, [r0] |
| 237 | ldr r0, REG_FPGA_AUDIO |
| 238 | mov r1, #0x0 /* Disable sound driver (CODEC clocks) */ |
| 239 | strb r1, [r0] |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 240 | |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 241 | /* back to arch calling code */ |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 242 | mov pc, lr |
| 243 | |
| 244 | /* the literal pools origin */ |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 245 | .ltorg |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 246 | |
| 247 | /* OMAP configuration registers */ |
| 248 | REG_FUNC_MUX_CTRL_0: /* 32 bits */ |
| 249 | .word 0xfffe1000 |
| 250 | REG_FUNC_MUX_CTRL_1: /* 32 bits */ |
| 251 | .word 0xfffe1004 |
| 252 | REG_FUNC_MUX_CTRL_2: /* 32 bits */ |
| 253 | .word 0xfffe1008 |
| 254 | REG_COMP_MODE_CTRL_0: /* 32 bits */ |
| 255 | .word 0xfffe100c |
| 256 | REG_FUNC_MUX_CTRL_3: /* 32 bits */ |
| 257 | .word 0xfffe1010 |
| 258 | REG_FUNC_MUX_CTRL_4: /* 32 bits */ |
| 259 | .word 0xfffe1014 |
| 260 | REG_FUNC_MUX_CTRL_5: /* 32 bits */ |
| 261 | .word 0xfffe1018 |
| 262 | REG_FUNC_MUX_CTRL_6: /* 32 bits */ |
| 263 | .word 0xfffe101c |
| 264 | REG_FUNC_MUX_CTRL_7: /* 32 bits */ |
| 265 | .word 0xfffe1020 |
| 266 | REG_FUNC_MUX_CTRL_8: /* 32 bits */ |
| 267 | .word 0xfffe1024 |
| 268 | REG_FUNC_MUX_CTRL_9: /* 32 bits */ |
| 269 | .word 0xfffe1028 |
| 270 | REG_FUNC_MUX_CTRL_A: /* 32 bits */ |
| 271 | .word 0xfffe102C |
| 272 | REG_FUNC_MUX_CTRL_B: /* 32 bits */ |
| 273 | .word 0xfffe1030 |
| 274 | REG_FUNC_MUX_CTRL_C: /* 32 bits */ |
| 275 | .word 0xfffe1034 |
| 276 | REG_FUNC_MUX_CTRL_D: /* 32 bits */ |
| 277 | .word 0xfffe1038 |
| 278 | REG_PULL_DWN_CTRL_0: /* 32 bits */ |
| 279 | .word 0xfffe1040 |
| 280 | REG_PULL_DWN_CTRL_1: /* 32 bits */ |
| 281 | .word 0xfffe1044 |
| 282 | REG_PULL_DWN_CTRL_2: /* 32 bits */ |
| 283 | .word 0xfffe1048 |
| 284 | REG_PULL_DWN_CTRL_3: /* 32 bits */ |
| 285 | .word 0xfffe104c |
| 286 | REG_VOLTAGE_CTRL_0: /* 32 bits */ |
| 287 | .word 0xfffe1060 |
| 288 | REG_TEST_DBG_CTRL_0: /* 32 bits */ |
| 289 | .word 0xfffe1070 |
| 290 | REG_MOD_CONF_CTRL_0: /* 32 bits */ |
| 291 | .word 0xfffe1080 |
| 292 | REG_TC_IMIF_PRIO: /* 32 bits */ |
| 293 | .word 0xfffecc00 |
| 294 | REG_TC_EMIFS_PRIO: /* 32 bits */ |
| 295 | .word 0xfffecc04 |
| 296 | REG_TC_EMIFF_PRIO: /* 32 bits */ |
| 297 | .word 0xfffecc08 |
| 298 | REG_TC_EMIFS_CONFIG: /* 32 bits */ |
| 299 | .word 0xfffecc0c |
| 300 | REG_TC_EMIFS_CS0_CONFIG: /* 32 bits */ |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 301 | .word 0xfffecc10 |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 302 | REG_TC_EMIFS_CS1_CONFIG: /* 32 bits */ |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 303 | .word 0xfffecc14 |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 304 | REG_TC_EMIFS_CS2_CONFIG: /* 32 bits */ |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 305 | .word 0xfffecc18 |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 306 | REG_TC_EMIFS_CS3_CONFIG: /* 32 bits */ |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 307 | .word 0xfffecc1c |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 308 | REG_TC_EMIFF_SDRAM_CONFIG: /* 32 bits */ |
| 309 | .word 0xfffecc20 |
| 310 | REG_TC_EMIFF_MRS: /* 32 bits */ |
| 311 | .word 0xfffecc24 |
| 312 | /* MPU clock/reset/power mode control registers */ |
| 313 | REG_ARM_CKCTL: /* 16 bits */ |
| 314 | .word 0xfffece00 |
| 315 | REG_ARM_IDLECT2: /* 16 bits */ |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 316 | .word 0xfffece08 |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 317 | REG_ARM_RSTCT2: /* 16 bits */ |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 318 | .word 0xfffece14 |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 319 | REG_ARM_SYSST: /* 16 bits */ |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 320 | .word 0xfffece18 |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 321 | /* DPLL control registers */ |
| 322 | REG_DPLL1_CTL: /* 16 bits */ |
| 323 | .word 0xfffecf00 |
| 324 | /* identification code register */ |
| 325 | REG_IDCODE: /* 32 bits */ |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 326 | .word 0xfffed404 |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 327 | |
| 328 | /* Innovator specific */ |
| 329 | REG_FPGA_LED_DIGIT: /* 8 bits (not used on Innovator) */ |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 330 | .word 0x08000003 |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 331 | REG_FPGA_POWER: /* 8 bits */ |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 332 | .word 0x08000005 |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 333 | REG_FPGA_AUDIO: /* 8 bits (not used on Innovator) */ |
| 334 | .word 0x0800000c |
| 335 | REG_FPGA_DIP_SWITCH: /* 8 bits (not used on Innovator) */ |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 336 | .word 0x0800000e |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 337 | |
| 338 | VAL_COMP_MODE_CTRL_0: |
| 339 | .word 0x0000eaef |
| 340 | VAL_FUNC_MUX_CTRL_4: |
| 341 | .word 0x00000000 |
| 342 | VAL_FUNC_MUX_CTRL_5: |
| 343 | .word 0x00000000 |
| 344 | VAL_FUNC_MUX_CTRL_6: |
| 345 | .word 0x00000001 |
| 346 | VAL_FUNC_MUX_CTRL_7: |
| 347 | .word 0x00000000 |
| 348 | VAL_FUNC_MUX_CTRL_8: |
| 349 | .word 0x10001200 |
| 350 | VAL_FUNC_MUX_CTRL_9: |
| 351 | .word 0x01201012 |
| 352 | VAL_FUNC_MUX_CTRL_A: |
| 353 | .word 0x00000248 |
| 354 | VAL_FUNC_MUX_CTRL_B: |
| 355 | .word 0x00000248 |
| 356 | VAL_FUNC_MUX_CTRL_C: |
| 357 | .word 0x09000000 |
| 358 | VAL_FUNC_MUX_CTRL_D: |
| 359 | .word 0x00000000 |
| 360 | VAL_PULL_DWN_CTRL_0: |
| 361 | .word 0x11a10000 |
| 362 | VAL_PULL_DWN_CTRL_1: |
| 363 | .word 0x2e047fff |
| 364 | VAL_PULL_DWN_CTRL_2: |
wdenk | 7eaacc5 | 2003-08-29 22:00:43 +0000 | [diff] [blame] | 365 | .word 0xffd603a6 |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 366 | VAL_PULL_DWN_CTRL_3: |
wdenk | 7eaacc5 | 2003-08-29 22:00:43 +0000 | [diff] [blame] | 367 | .word 0x00003e03 |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 368 | VAL_VOLTAGE_CTRL_0: |
| 369 | .word 0x00000007 |
| 370 | VAL_TEST_DBG_CTRL_0: |
| 371 | /* See Errata 4.13, This works around a SRAM bug, for chips below ES2.5 . |
wdenk | 21136db | 2003-07-16 21:53:01 +0000 | [diff] [blame] | 372 | * This slows down internal SRAM accesses. |
| 373 | */ |
wdenk | f6f96f7 | 2003-07-15 20:04:06 +0000 | [diff] [blame] | 374 | .word 0x00000007 |
| 375 | VAL_MOD_CONF_CTRL_0: |
| 376 | .word 0x0b000008 |
| 377 | VAL_ARM_CKCTL: |
| 378 | .word 0x010f |
| 379 | VAL_DPLL1_CTL: |
| 380 | .word 0x2710 |
| 381 | VAL_TC_EMIFS_CS1_CONFIG_PRELIM: |
| 382 | .word 0x00001149 |
| 383 | VAL_TC_EMIFS_CS2_CONFIG_PRELIM: |
| 384 | .word 0x00004158 |
| 385 | VAL_TC_EMIFS_CS0_CONFIG: |
| 386 | .word 0x002130b0 |
| 387 | VAL_TC_EMIFS_CS1_CONFIG: |
| 388 | .word 0x0000f559 |
| 389 | VAL_TC_EMIFS_CS2_CONFIG: |
| 390 | .word 0x000055f0 |
| 391 | VAL_TC_EMIFS_CS3_CONFIG: |
| 392 | .word 0x00003331 |
| 393 | VAL_TC_EMIFF_SDRAM_CONFIG: |
| 394 | .word 0x010290fc |
| 395 | VAL_TC_EMIFF_MRS: |
| 396 | .word 0x00000027 |