Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Memory Setup stuff - taken from blob memsetup.S |
| 4 | * |
| 5 | * Copyright (C) 1999 2000 2001 Erik Mouw (J.A.K.Mouw@its.tudelft.nl) and |
| 6 | * Jan-Derk Bakker (J.D.Bakker@its.tudelft.nl) |
| 7 | * |
| 8 | * Copyright (C) 2008 Ronetix Ilko Iliev (www.ronetix.at) |
| 9 | * Copyright (C) 2009 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | #include <config.h> |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 13 | #include <asm/arch/hardware.h> |
| 14 | #include <asm/arch/at91_pmc.h> |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 15 | #include <asm/arch/at91_wdt.h> |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 16 | #include <asm/arch/at91_pio.h> |
| 17 | #include <asm/arch/at91_matrix.h> |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 18 | #include <asm/arch/at91sam9_sdramc.h> |
| 19 | #include <asm/arch/at91sam9_smc.h> |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 20 | #include <asm/arch/at91_rstc.h> |
Xu, Hong | 4fae89c | 2011-06-10 21:31:25 +0000 | [diff] [blame] | 21 | #ifdef CONFIG_ATMEL_LEGACY |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 22 | #include <asm/arch/at91sam9_matrix.h> |
| 23 | #endif |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 24 | #ifndef CFG_SYS_MATRIX_EBICSA_VAL |
| 25 | #define CFG_SYS_MATRIX_EBICSA_VAL CFG_SYS_MATRIX_EBI0CSA_VAL |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 26 | #endif |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 27 | |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 28 | .globl lowlevel_init |
| 29 | .type lowlevel_init,function |
| 30 | lowlevel_init: |
| 31 | |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 32 | POS1: |
Albert ARIBAUD | 6e29472 | 2014-02-22 17:53:43 +0100 | [diff] [blame] | 33 | adr r5, POS1 /* r5 = POS1 run time */ |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 34 | ldr r0, =POS1 /* r0 = POS1 compile */ |
Simon Glass | 72cc538 | 2022-10-20 18:22:39 -0600 | [diff] [blame] | 35 | sub r5, r5, r0 /* r0 = CONFIG_TEXT_BASE-1 */ |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 36 | |
| 37 | /* memory control configuration 1 */ |
| 38 | ldr r0, =SMRDATA |
| 39 | ldr r2, =SMRDATA1 |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 40 | add r0, r0, r5 |
| 41 | add r2, r2, r5 |
| 42 | 0: |
| 43 | /* the address */ |
| 44 | ldr r1, [r0], #4 |
| 45 | /* the value */ |
| 46 | ldr r3, [r0], #4 |
| 47 | str r3, [r1] |
| 48 | cmp r2, r0 |
| 49 | bne 0b |
| 50 | |
| 51 | /* ---------------------------------------------------------------------------- |
| 52 | * PMC Init Step 1. |
| 53 | * ---------------------------------------------------------------------------- |
| 54 | * - Check if the PLL is already initialized |
| 55 | * ---------------------------------------------------------------------------- |
| 56 | */ |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 57 | ldr r1, =(AT91_ASM_PMC_MCKR) |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 58 | ldr r0, [r1] |
| 59 | and r0, r0, #3 |
| 60 | cmp r0, #0 |
| 61 | bne PLL_setup_end |
| 62 | |
| 63 | /* --------------------------------------------------------------------------- |
| 64 | * - Enable the Main Oscillator |
| 65 | * --------------------------------------------------------------------------- |
| 66 | */ |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 67 | ldr r1, =(AT91_ASM_PMC_MOR) |
| 68 | ldr r2, =(AT91_ASM_PMC_SR) |
Jean-Christophe PLAGNIOL-VILLARD | e32eb4c | 2009-06-13 12:50:04 +0200 | [diff] [blame] | 69 | /* Main oscillator Enable register PMC_MOR: */ |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 70 | ldr r0, =CFG_SYS_MOR_VAL |
Jean-Christophe PLAGNIOL-VILLARD | e32eb4c | 2009-06-13 12:50:04 +0200 | [diff] [blame] | 71 | str r0, [r1] |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 72 | |
| 73 | /* Reading the PMC Status to detect when the Main Oscillator is enabled */ |
Martin Townsend | ac6d6d3 | 2021-02-26 08:44:44 +0000 | [diff] [blame] | 74 | mov r6, #AT91_PMC_IXR_MOSCS |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 75 | MOSCS_Loop: |
| 76 | ldr r3, [r2] |
Martin Townsend | ac6d6d3 | 2021-02-26 08:44:44 +0000 | [diff] [blame] | 77 | and r3, r6, r3 |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 78 | cmp r3, #AT91_PMC_IXR_MOSCS |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 79 | bne MOSCS_Loop |
| 80 | |
| 81 | /* ---------------------------------------------------------------------------- |
| 82 | * PMC Init Step 2. |
| 83 | * ---------------------------------------------------------------------------- |
| 84 | * Setup PLLA |
| 85 | * ---------------------------------------------------------------------------- |
| 86 | */ |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 87 | ldr r1, =(AT91_ASM_PMC_PLLAR) |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 88 | ldr r0, =CFG_SYS_PLLAR_VAL |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 89 | str r0, [r1] |
| 90 | |
| 91 | /* Reading the PMC Status register to detect when the PLLA is locked */ |
Martin Townsend | ac6d6d3 | 2021-02-26 08:44:44 +0000 | [diff] [blame] | 92 | mov r6, #AT91_PMC_IXR_LOCKA |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 93 | MOSCS_Loop1: |
| 94 | ldr r3, [r2] |
Martin Townsend | ac6d6d3 | 2021-02-26 08:44:44 +0000 | [diff] [blame] | 95 | and r3, r6, r3 |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 96 | cmp r3, #AT91_PMC_IXR_LOCKA |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 97 | bne MOSCS_Loop1 |
| 98 | |
| 99 | /* ---------------------------------------------------------------------------- |
| 100 | * PMC Init Step 3. |
| 101 | * ---------------------------------------------------------------------------- |
Jean-Christophe PLAGNIOL-VILLARD | e32eb4c | 2009-06-13 12:50:04 +0200 | [diff] [blame] | 102 | * - Switch on the Main Oscillator |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 103 | * ---------------------------------------------------------------------------- |
| 104 | */ |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 105 | ldr r1, =(AT91_ASM_PMC_MCKR) |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 106 | |
| 107 | /* -Master Clock Controller register PMC_MCKR */ |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 108 | ldr r0, =CFG_SYS_MCKR1_VAL |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 109 | str r0, [r1] |
| 110 | |
| 111 | /* Reading the PMC Status to detect when the Master clock is ready */ |
Martin Townsend | ac6d6d3 | 2021-02-26 08:44:44 +0000 | [diff] [blame] | 112 | mov r6, #AT91_PMC_IXR_MCKRDY |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 113 | MCKRDY_Loop: |
| 114 | ldr r3, [r2] |
Martin Townsend | ac6d6d3 | 2021-02-26 08:44:44 +0000 | [diff] [blame] | 115 | and r3, r6, r3 |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 116 | cmp r3, #AT91_PMC_IXR_MCKRDY |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 117 | bne MCKRDY_Loop |
| 118 | |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 119 | ldr r0, =CFG_SYS_MCKR2_VAL |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 120 | str r0, [r1] |
| 121 | |
| 122 | /* Reading the PMC Status to detect when the Master clock is ready */ |
Martin Townsend | ac6d6d3 | 2021-02-26 08:44:44 +0000 | [diff] [blame] | 123 | mov r6, #AT91_PMC_IXR_MCKRDY |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 124 | MCKRDY_Loop1: |
| 125 | ldr r3, [r2] |
Martin Townsend | ac6d6d3 | 2021-02-26 08:44:44 +0000 | [diff] [blame] | 126 | and r3, r6, r3 |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 127 | cmp r3, #AT91_PMC_IXR_MCKRDY |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 128 | bne MCKRDY_Loop1 |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 129 | PLL_setup_end: |
| 130 | |
| 131 | /* ---------------------------------------------------------------------------- |
| 132 | * - memory control configuration 2 |
| 133 | * ---------------------------------------------------------------------------- |
| 134 | */ |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 135 | ldr r0, =(AT91_ASM_SDRAMC_TR) |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 136 | ldr r1, [r0] |
| 137 | cmp r1, #0 |
| 138 | bne SDRAM_setup_end |
| 139 | |
| 140 | ldr r0, =SMRDATA1 |
| 141 | ldr r2, =SMRDATA2 |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 142 | add r0, r0, r5 |
| 143 | add r2, r2, r5 |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 144 | 2: |
| 145 | /* the address */ |
| 146 | ldr r1, [r0], #4 |
| 147 | /* the value */ |
| 148 | ldr r3, [r0], #4 |
| 149 | str r3, [r1] |
| 150 | cmp r2, r0 |
| 151 | bne 2b |
| 152 | |
| 153 | SDRAM_setup_end: |
| 154 | /* everything is fine now */ |
| 155 | mov pc, lr |
| 156 | |
| 157 | .ltorg |
| 158 | |
| 159 | SMRDATA: |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 160 | .word AT91_ASM_WDT_MR |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 161 | .word CFG_SYS_WDTC_WDMR_VAL |
Jean-Christophe PLAGNIOL-VILLARD | e32eb4c | 2009-06-13 12:50:04 +0200 | [diff] [blame] | 162 | /* configure PIOx as EBI0 D[16-31] */ |
| 163 | #if defined(CONFIG_AT91SAM9263) |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 164 | .word AT91_ASM_PIOD_PDR |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 165 | .word CFG_SYS_PIOD_PDR_VAL1 |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 166 | .word AT91_ASM_PIOD_PUDR |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 167 | .word CFG_SYS_PIOD_PPUDR_VAL |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 168 | .word AT91_ASM_PIOD_ASR |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 169 | .word CFG_SYS_PIOD_PPUDR_VAL |
Tom Rix | 799a05b | 2009-09-27 11:10:09 -0500 | [diff] [blame] | 170 | #elif defined(CONFIG_AT91SAM9260) || defined(CONFIG_AT91SAM9261) \ |
| 171 | || defined(CONFIG_AT91SAM9G20) |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 172 | .word AT91_ASM_PIOC_PDR |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 173 | .word CFG_SYS_PIOC_PDR_VAL1 |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 174 | .word AT91_ASM_PIOC_PUDR |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 175 | .word CFG_SYS_PIOC_PPUDR_VAL |
Jean-Christophe PLAGNIOL-VILLARD | e32eb4c | 2009-06-13 12:50:04 +0200 | [diff] [blame] | 176 | #endif |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 177 | .word AT91_ASM_MATRIX_CSA0 |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 178 | .word CFG_SYS_MATRIX_EBICSA_VAL |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 179 | |
| 180 | /* flash */ |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 181 | .word AT91_ASM_SMC_MODE0 |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 182 | .word CFG_SYS_SMC0_MODE0_VAL |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 183 | |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 184 | .word AT91_ASM_SMC_CYCLE0 |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 185 | .word CFG_SYS_SMC0_CYCLE0_VAL |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 186 | |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 187 | .word AT91_ASM_SMC_PULSE0 |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 188 | .word CFG_SYS_SMC0_PULSE0_VAL |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 189 | |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 190 | .word AT91_ASM_SMC_SETUP0 |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 191 | .word CFG_SYS_SMC0_SETUP0_VAL |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 192 | |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 193 | SMRDATA1: |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 194 | .word AT91_ASM_SDRAMC_MR |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 195 | .word CFG_SYS_SDRC_MR_VAL1 |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 196 | .word AT91_ASM_SDRAMC_TR |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 197 | .word CFG_SYS_SDRC_TR_VAL1 |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 198 | .word AT91_ASM_SDRAMC_CR |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 199 | .word CFG_SYS_SDRC_CR_VAL |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 200 | .word AT91_ASM_SDRAMC_MDR |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 201 | .word CFG_SYS_SDRC_MDR_VAL |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 202 | .word AT91_ASM_SDRAMC_MR |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 203 | .word CFG_SYS_SDRC_MR_VAL2 |
Tom Rini | bb4dd96 | 2022-11-16 13:10:37 -0500 | [diff] [blame] | 204 | .word CFG_SYS_SDRAM_BASE |
| 205 | .word CFG_SYS_SDRAM_VAL1 |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 206 | .word AT91_ASM_SDRAMC_MR |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 207 | .word CFG_SYS_SDRC_MR_VAL3 |
Tom Rini | bb4dd96 | 2022-11-16 13:10:37 -0500 | [diff] [blame] | 208 | .word CFG_SYS_SDRAM_BASE |
| 209 | .word CFG_SYS_SDRAM_VAL2 |
| 210 | .word CFG_SYS_SDRAM_BASE |
| 211 | .word CFG_SYS_SDRAM_VAL3 |
| 212 | .word CFG_SYS_SDRAM_BASE |
| 213 | .word CFG_SYS_SDRAM_VAL4 |
| 214 | .word CFG_SYS_SDRAM_BASE |
| 215 | .word CFG_SYS_SDRAM_VAL5 |
| 216 | .word CFG_SYS_SDRAM_BASE |
| 217 | .word CFG_SYS_SDRAM_VAL6 |
| 218 | .word CFG_SYS_SDRAM_BASE |
| 219 | .word CFG_SYS_SDRAM_VAL7 |
| 220 | .word CFG_SYS_SDRAM_BASE |
| 221 | .word CFG_SYS_SDRAM_VAL8 |
| 222 | .word CFG_SYS_SDRAM_BASE |
| 223 | .word CFG_SYS_SDRAM_VAL9 |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 224 | .word AT91_ASM_SDRAMC_MR |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 225 | .word CFG_SYS_SDRC_MR_VAL4 |
Tom Rini | bb4dd96 | 2022-11-16 13:10:37 -0500 | [diff] [blame] | 226 | .word CFG_SYS_SDRAM_BASE |
| 227 | .word CFG_SYS_SDRAM_VAL10 |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 228 | .word AT91_ASM_SDRAMC_MR |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 229 | .word CFG_SYS_SDRC_MR_VAL5 |
Tom Rini | bb4dd96 | 2022-11-16 13:10:37 -0500 | [diff] [blame] | 230 | .word CFG_SYS_SDRAM_BASE |
| 231 | .word CFG_SYS_SDRAM_VAL11 |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 232 | .word AT91_ASM_SDRAMC_TR |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 233 | .word CFG_SYS_SDRC_TR_VAL2 |
Tom Rini | bb4dd96 | 2022-11-16 13:10:37 -0500 | [diff] [blame] | 234 | .word CFG_SYS_SDRAM_BASE |
| 235 | .word CFG_SYS_SDRAM_VAL12 |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 236 | /* User reset enable*/ |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 237 | .word AT91_ASM_RSTC_MR |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 238 | .word CFG_SYS_RSTC_RMR_VAL |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 239 | #ifdef CONFIG_SYS_MATRIX_MCFG_REMAP |
| 240 | /* MATRIX_MCFG - REMAP all masters */ |
Jens Scharsig | a4db1ca | 2010-02-03 22:46:58 +0100 | [diff] [blame] | 241 | .word AT91_ASM_MATRIX_MCFG |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 242 | .word 0x1FF |
| 243 | #endif |
Ilko Iliev | 8b954a9 | 2009-04-16 21:30:48 +0200 | [diff] [blame] | 244 | SMRDATA2: |
| 245 | .word 0 |