Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Tom Warren | 3f82b1d | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 2 | /* |
Tom Warren | 7aaa5a6 | 2015-03-04 16:36:00 -0700 | [diff] [blame] | 3 | * (C) Copyright 2010-2015 |
Tom Warren | 3f82b1d | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 4 | * NVIDIA Corporation <www.nvidia.com> |
Tom Warren | 3f82b1d | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <common.h> |
Simon Glass | 9edefc2 | 2019-11-14 12:57:37 -0700 | [diff] [blame] | 8 | #include <cpu_func.h> |
Thomas Chou | 1874626 | 2015-11-19 21:48:11 +0800 | [diff] [blame] | 9 | #include <dm.h> |
| 10 | #include <ns16550.h> |
Simon Glass | 537e967 | 2015-05-13 07:02:29 -0600 | [diff] [blame] | 11 | #include <spl.h> |
Tom Warren | 3f82b1d | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 12 | #include <asm/io.h> |
Thierry Reding | b64e0b9 | 2019-04-15 11:32:18 +0200 | [diff] [blame] | 13 | #if IS_ENABLED(CONFIG_TEGRA_CLKRST) |
Simon Glass | bb6997f | 2011-11-28 15:04:39 +0000 | [diff] [blame] | 14 | #include <asm/arch/clock.h> |
Thierry Reding | b64e0b9 | 2019-04-15 11:32:18 +0200 | [diff] [blame] | 15 | #endif |
Thierry Reding | 07ea02b | 2019-04-15 11:32:21 +0200 | [diff] [blame] | 16 | #if IS_ENABLED(CONFIG_TEGRA_PINCTRL) |
Simon Glass | bb6997f | 2011-11-28 15:04:39 +0000 | [diff] [blame] | 17 | #include <asm/arch/funcmux.h> |
Thierry Reding | 07ea02b | 2019-04-15 11:32:21 +0200 | [diff] [blame] | 18 | #endif |
Thierry Reding | 1a869c7 | 2019-04-15 11:32:20 +0200 | [diff] [blame] | 19 | #if IS_ENABLED(CONFIG_TEGRA_MC) |
Marcel Ziswiler | 8c33ba7 | 2014-10-10 23:32:32 +0200 | [diff] [blame] | 20 | #include <asm/arch/mc.h> |
Thierry Reding | 1a869c7 | 2019-04-15 11:32:20 +0200 | [diff] [blame] | 21 | #endif |
Tom Warren | 150c249 | 2012-09-19 15:50:56 -0700 | [diff] [blame] | 22 | #include <asm/arch/tegra.h> |
Stephen Warren | 73c3893 | 2015-01-19 16:25:52 -0700 | [diff] [blame] | 23 | #include <asm/arch-tegra/ap.h> |
Lucas Stach | 516f00b | 2012-09-29 10:02:08 +0000 | [diff] [blame] | 24 | #include <asm/arch-tegra/board.h> |
Thierry Reding | a0dbc13 | 2019-04-15 11:32:28 +0200 | [diff] [blame] | 25 | #include <asm/arch-tegra/cboot.h> |
Tom Warren | 150c249 | 2012-09-19 15:50:56 -0700 | [diff] [blame] | 26 | #include <asm/arch-tegra/pmc.h> |
| 27 | #include <asm/arch-tegra/sys_proto.h> |
| 28 | #include <asm/arch-tegra/warmboot.h> |
Tom Warren | 3f82b1d | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 29 | |
Tom Warren | 659a075 | 2015-07-08 08:05:35 -0700 | [diff] [blame] | 30 | void save_boot_params_ret(void); |
| 31 | |
Tom Warren | 3f82b1d | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 32 | DECLARE_GLOBAL_DATA_PTR; |
| 33 | |
Simon Glass | bb6997f | 2011-11-28 15:04:39 +0000 | [diff] [blame] | 34 | enum { |
| 35 | /* UARTs which we can enable */ |
| 36 | UARTA = 1 << 0, |
| 37 | UARTB = 1 << 1, |
Tom Warren | e23bb6a | 2013-01-28 13:32:10 +0000 | [diff] [blame] | 38 | UARTC = 1 << 2, |
Simon Glass | bb6997f | 2011-11-28 15:04:39 +0000 | [diff] [blame] | 39 | UARTD = 1 << 3, |
Tom Warren | e23bb6a | 2013-01-28 13:32:10 +0000 | [diff] [blame] | 40 | UARTE = 1 << 4, |
| 41 | UART_COUNT = 5, |
Simon Glass | bb6997f | 2011-11-28 15:04:39 +0000 | [diff] [blame] | 42 | }; |
| 43 | |
Simon Glass | 537e967 | 2015-05-13 07:02:29 -0600 | [diff] [blame] | 44 | static bool from_spl __attribute__ ((section(".data"))); |
| 45 | |
| 46 | #ifndef CONFIG_SPL_BUILD |
Thierry Reding | 8f60d18 | 2019-04-15 11:32:23 +0200 | [diff] [blame] | 47 | void save_boot_params(unsigned long r0, unsigned long r1, unsigned long r2, |
| 48 | unsigned long r3) |
Simon Glass | 537e967 | 2015-05-13 07:02:29 -0600 | [diff] [blame] | 49 | { |
| 50 | from_spl = r0 != UBOOT_NOT_LOADED_FROM_SPL; |
Thierry Reding | a0dbc13 | 2019-04-15 11:32:28 +0200 | [diff] [blame] | 51 | |
| 52 | /* |
| 53 | * The logic for this is somewhat indirect. The purpose of the marker |
| 54 | * (UBOOT_NOT_LOADED_FROM_SPL) is in fact used to determine if U-Boot |
| 55 | * was loaded from a read-only instance of itself, which is something |
| 56 | * that can happen in secure boot setups. So basically the presence |
| 57 | * of the marker is an indication that U-Boot was loaded by one such |
| 58 | * special variant of U-Boot. Conversely, the absence of the marker |
| 59 | * indicates that this instance of U-Boot was loaded by something |
| 60 | * other than a special U-Boot. This could be SPL, but it could just |
| 61 | * as well be one of any number of other first stage bootloaders. |
| 62 | */ |
| 63 | if (from_spl) |
| 64 | cboot_save_boot_params(r0, r1, r2, r3); |
| 65 | |
Simon Glass | 537e967 | 2015-05-13 07:02:29 -0600 | [diff] [blame] | 66 | save_boot_params_ret(); |
| 67 | } |
| 68 | #endif |
| 69 | |
| 70 | bool spl_was_boot_source(void) |
| 71 | { |
| 72 | return from_spl; |
| 73 | } |
| 74 | |
Stephen Warren | 73c3893 | 2015-01-19 16:25:52 -0700 | [diff] [blame] | 75 | #if defined(CONFIG_TEGRA_SUPPORT_NON_SECURE) |
| 76 | #if !defined(CONFIG_TEGRA124) |
| 77 | #error tegra_cpu_is_non_secure has only been validated on Tegra124 |
| 78 | #endif |
| 79 | bool tegra_cpu_is_non_secure(void) |
| 80 | { |
| 81 | /* |
| 82 | * This register reads 0xffffffff in non-secure mode. This register |
| 83 | * only implements bits 31:20, so the lower bits will always read 0 in |
| 84 | * secure mode. Thus, the lower bits are an indicator for secure vs. |
| 85 | * non-secure mode. |
| 86 | */ |
| 87 | struct mc_ctlr *mc = (struct mc_ctlr *)NV_PA_MC_BASE; |
| 88 | uint32_t mc_s_cfg0 = readl(&mc->mc_security_cfg0); |
| 89 | return (mc_s_cfg0 & 1) == 1; |
| 90 | } |
| 91 | #endif |
| 92 | |
Thierry Reding | 1a869c7 | 2019-04-15 11:32:20 +0200 | [diff] [blame] | 93 | #if IS_ENABLED(CONFIG_TEGRA_MC) |
Stephen Warren | aeb3fcb | 2014-07-02 14:12:30 -0600 | [diff] [blame] | 94 | /* Read the RAM size directly from the memory controller */ |
Stephen Warren | a5fc3d0 | 2015-08-07 16:12:44 -0600 | [diff] [blame] | 95 | static phys_size_t query_sdram_size(void) |
Stephen Warren | aeb3fcb | 2014-07-02 14:12:30 -0600 | [diff] [blame] | 96 | { |
| 97 | struct mc_ctlr *const mc = (struct mc_ctlr *)NV_PA_MC_BASE; |
Stephen Warren | a5fc3d0 | 2015-08-07 16:12:44 -0600 | [diff] [blame] | 98 | u32 emem_cfg; |
| 99 | phys_size_t size_bytes; |
Stephen Warren | aeb3fcb | 2014-07-02 14:12:30 -0600 | [diff] [blame] | 100 | |
Stephen Warren | 3a2cab5 | 2014-12-23 10:34:50 -0700 | [diff] [blame] | 101 | emem_cfg = readl(&mc->mc_emem_cfg); |
Marcel Ziswiler | 8c33ba7 | 2014-10-10 23:32:32 +0200 | [diff] [blame] | 102 | #if defined(CONFIG_TEGRA20) |
Stephen Warren | 3a2cab5 | 2014-12-23 10:34:50 -0700 | [diff] [blame] | 103 | debug("mc->mc_emem_cfg (MEM_SIZE_KB) = 0x%08x\n", emem_cfg); |
| 104 | size_bytes = get_ram_size((void *)PHYS_SDRAM_1, emem_cfg * 1024); |
Marcel Ziswiler | 8c33ba7 | 2014-10-10 23:32:32 +0200 | [diff] [blame] | 105 | #else |
Stephen Warren | 3a2cab5 | 2014-12-23 10:34:50 -0700 | [diff] [blame] | 106 | debug("mc->mc_emem_cfg (MEM_SIZE_MB) = 0x%08x\n", emem_cfg); |
Stephen Warren | a5fc3d0 | 2015-08-07 16:12:44 -0600 | [diff] [blame] | 107 | #ifndef CONFIG_PHYS_64BIT |
Stephen Warren | 56519c4 | 2014-12-23 10:34:51 -0700 | [diff] [blame] | 108 | /* |
| 109 | * If >=4GB RAM is present, the byte RAM size won't fit into 32-bits |
| 110 | * and will wrap. Clip the reported size to the maximum that a 32-bit |
| 111 | * variable can represent (rounded to a page). |
| 112 | */ |
| 113 | if (emem_cfg >= 4096) { |
| 114 | size_bytes = U32_MAX & ~(0x1000 - 1); |
Stephen Warren | a5fc3d0 | 2015-08-07 16:12:44 -0600 | [diff] [blame] | 115 | } else |
| 116 | #endif |
| 117 | { |
Stephen Warren | 56519c4 | 2014-12-23 10:34:51 -0700 | [diff] [blame] | 118 | /* RAM size EMC is programmed to. */ |
Stephen Warren | a5fc3d0 | 2015-08-07 16:12:44 -0600 | [diff] [blame] | 119 | size_bytes = (phys_size_t)emem_cfg * 1024 * 1024; |
| 120 | #ifndef CONFIG_ARM64 |
Stephen Warren | 56519c4 | 2014-12-23 10:34:51 -0700 | [diff] [blame] | 121 | /* |
| 122 | * If all RAM fits within 32-bits, it can be accessed without |
| 123 | * LPAE, so go test the RAM size. Otherwise, we can't access |
| 124 | * all the RAM, and get_ram_size() would get confused, so |
| 125 | * avoid using it. There's no reason we should need this |
| 126 | * validation step anyway. |
| 127 | */ |
| 128 | if (emem_cfg <= (0 - PHYS_SDRAM_1) / (1024 * 1024)) |
| 129 | size_bytes = get_ram_size((void *)PHYS_SDRAM_1, |
| 130 | size_bytes); |
Stephen Warren | a5fc3d0 | 2015-08-07 16:12:44 -0600 | [diff] [blame] | 131 | #endif |
Stephen Warren | 56519c4 | 2014-12-23 10:34:51 -0700 | [diff] [blame] | 132 | } |
Stephen Warren | aeb3fcb | 2014-07-02 14:12:30 -0600 | [diff] [blame] | 133 | #endif |
Tom Warren | 3f82b1d | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 134 | |
Marcel Ziswiler | 8c33ba7 | 2014-10-10 23:32:32 +0200 | [diff] [blame] | 135 | #if defined(CONFIG_TEGRA30) || defined(CONFIG_TEGRA114) |
| 136 | /* External memory limited to 2047 MB due to IROM/HI-VEC */ |
Stephen Warren | 3a2cab5 | 2014-12-23 10:34:50 -0700 | [diff] [blame] | 137 | if (size_bytes == SZ_2G) |
| 138 | size_bytes -= SZ_1M; |
Marcel Ziswiler | 8c33ba7 | 2014-10-10 23:32:32 +0200 | [diff] [blame] | 139 | #endif |
| 140 | |
Stephen Warren | 3a2cab5 | 2014-12-23 10:34:50 -0700 | [diff] [blame] | 141 | return size_bytes; |
Marcel Ziswiler | 8c33ba7 | 2014-10-10 23:32:32 +0200 | [diff] [blame] | 142 | } |
Thierry Reding | 1a869c7 | 2019-04-15 11:32:20 +0200 | [diff] [blame] | 143 | #endif |
Marcel Ziswiler | 8c33ba7 | 2014-10-10 23:32:32 +0200 | [diff] [blame] | 144 | |
Tom Warren | 3f82b1d | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 145 | int dram_init(void) |
| 146 | { |
Thierry Reding | a0dbc13 | 2019-04-15 11:32:28 +0200 | [diff] [blame] | 147 | int err; |
| 148 | |
| 149 | /* try to initialize DRAM from cboot DTB first */ |
| 150 | err = cboot_dram_init(); |
| 151 | if (err == 0) |
| 152 | return 0; |
| 153 | |
Thierry Reding | 1a869c7 | 2019-04-15 11:32:20 +0200 | [diff] [blame] | 154 | #if IS_ENABLED(CONFIG_TEGRA_MC) |
Tom Warren | 3f82b1d | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 155 | /* We do not initialise DRAM here. We just query the size */ |
Simon Glass | 7f8c070 | 2011-11-05 03:56:57 +0000 | [diff] [blame] | 156 | gd->ram_size = query_sdram_size(); |
Thierry Reding | 1a869c7 | 2019-04-15 11:32:20 +0200 | [diff] [blame] | 157 | #endif |
| 158 | |
Tom Warren | 3f82b1d | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 159 | return 0; |
| 160 | } |
| 161 | |
Thierry Reding | 07ea02b | 2019-04-15 11:32:21 +0200 | [diff] [blame] | 162 | #if IS_ENABLED(CONFIG_TEGRA_PINCTRL) |
Stephen Warren | b9607e7 | 2012-05-14 13:13:45 +0000 | [diff] [blame] | 163 | static int uart_configs[] = { |
Tom Warren | b287103 | 2012-12-11 13:34:15 +0000 | [diff] [blame] | 164 | #if defined(CONFIG_TEGRA20) |
| 165 | #if defined(CONFIG_TEGRA_UARTA_UAA_UAB) |
Stephen Warren | b9607e7 | 2012-05-14 13:13:45 +0000 | [diff] [blame] | 166 | FUNCMUX_UART1_UAA_UAB, |
Tom Warren | b287103 | 2012-12-11 13:34:15 +0000 | [diff] [blame] | 167 | #elif defined(CONFIG_TEGRA_UARTA_GPU) |
Stephen Warren | e21649b | 2012-05-16 05:59:59 +0000 | [diff] [blame] | 168 | FUNCMUX_UART1_GPU, |
Tom Warren | b287103 | 2012-12-11 13:34:15 +0000 | [diff] [blame] | 169 | #elif defined(CONFIG_TEGRA_UARTA_SDIO1) |
Lucas Stach | a2cfe63 | 2012-05-16 08:21:02 +0000 | [diff] [blame] | 170 | FUNCMUX_UART1_SDIO1, |
Tom Warren | b287103 | 2012-12-11 13:34:15 +0000 | [diff] [blame] | 171 | #else |
Stephen Warren | b9607e7 | 2012-05-14 13:13:45 +0000 | [diff] [blame] | 172 | FUNCMUX_UART1_IRRX_IRTX, |
Stephen Warren | 4727a13 | 2013-01-22 06:20:08 +0000 | [diff] [blame] | 173 | #endif |
| 174 | FUNCMUX_UART2_UAD, |
Stephen Warren | b9607e7 | 2012-05-14 13:13:45 +0000 | [diff] [blame] | 175 | -1, |
| 176 | FUNCMUX_UART4_GMC, |
| 177 | -1, |
Tom Warren | e23bb6a | 2013-01-28 13:32:10 +0000 | [diff] [blame] | 178 | #elif defined(CONFIG_TEGRA30) |
Tom Warren | b287103 | 2012-12-11 13:34:15 +0000 | [diff] [blame] | 179 | FUNCMUX_UART1_ULPI, /* UARTA */ |
| 180 | -1, |
| 181 | -1, |
| 182 | -1, |
| 183 | -1, |
Tom Warren | 2f5dac9 | 2014-01-24 12:46:16 -0700 | [diff] [blame] | 184 | #elif defined(CONFIG_TEGRA114) |
Tom Warren | e23bb6a | 2013-01-28 13:32:10 +0000 | [diff] [blame] | 185 | -1, |
| 186 | -1, |
| 187 | -1, |
| 188 | FUNCMUX_UART4_GMI, /* UARTD */ |
| 189 | -1, |
Tom Warren | 7aaa5a6 | 2015-03-04 16:36:00 -0700 | [diff] [blame] | 190 | #elif defined(CONFIG_TEGRA124) |
Tom Warren | 2f5dac9 | 2014-01-24 12:46:16 -0700 | [diff] [blame] | 191 | FUNCMUX_UART1_KBC, /* UARTA */ |
| 192 | -1, |
| 193 | -1, |
| 194 | FUNCMUX_UART4_GPIO, /* UARTD */ |
| 195 | -1, |
Tom Warren | 7aaa5a6 | 2015-03-04 16:36:00 -0700 | [diff] [blame] | 196 | #else /* Tegra210 */ |
| 197 | FUNCMUX_UART1_UART1, /* UARTA */ |
| 198 | -1, |
| 199 | -1, |
| 200 | FUNCMUX_UART4_UART4, /* UARTD */ |
| 201 | -1, |
Tom Warren | b287103 | 2012-12-11 13:34:15 +0000 | [diff] [blame] | 202 | #endif |
Stephen Warren | b9607e7 | 2012-05-14 13:13:45 +0000 | [diff] [blame] | 203 | }; |
| 204 | |
Simon Glass | bb6997f | 2011-11-28 15:04:39 +0000 | [diff] [blame] | 205 | /** |
| 206 | * Set up the specified uarts |
| 207 | * |
| 208 | * @param uarts_ids Mask containing UARTs to init (UARTx) |
| 209 | */ |
| 210 | static void setup_uarts(int uart_ids) |
| 211 | { |
| 212 | static enum periph_id id_for_uart[] = { |
| 213 | PERIPH_ID_UART1, |
| 214 | PERIPH_ID_UART2, |
| 215 | PERIPH_ID_UART3, |
| 216 | PERIPH_ID_UART4, |
Tom Warren | e23bb6a | 2013-01-28 13:32:10 +0000 | [diff] [blame] | 217 | PERIPH_ID_UART5, |
Simon Glass | bb6997f | 2011-11-28 15:04:39 +0000 | [diff] [blame] | 218 | }; |
| 219 | size_t i; |
| 220 | |
| 221 | for (i = 0; i < UART_COUNT; i++) { |
| 222 | if (uart_ids & (1 << i)) { |
| 223 | enum periph_id id = id_for_uart[i]; |
| 224 | |
Stephen Warren | b9607e7 | 2012-05-14 13:13:45 +0000 | [diff] [blame] | 225 | funcmux_select(id, uart_configs[i]); |
Simon Glass | bb6997f | 2011-11-28 15:04:39 +0000 | [diff] [blame] | 226 | clock_ll_start_uart(id); |
| 227 | } |
| 228 | } |
| 229 | } |
Thierry Reding | 07ea02b | 2019-04-15 11:32:21 +0200 | [diff] [blame] | 230 | #endif |
Simon Glass | bb6997f | 2011-11-28 15:04:39 +0000 | [diff] [blame] | 231 | |
| 232 | void board_init_uart_f(void) |
| 233 | { |
Thierry Reding | 07ea02b | 2019-04-15 11:32:21 +0200 | [diff] [blame] | 234 | #if IS_ENABLED(CONFIG_TEGRA_PINCTRL) |
Simon Glass | bb6997f | 2011-11-28 15:04:39 +0000 | [diff] [blame] | 235 | int uart_ids = 0; /* bit mask of which UART ids to enable */ |
| 236 | |
Tom Warren | 29f3e3f | 2012-09-04 17:00:24 -0700 | [diff] [blame] | 237 | #ifdef CONFIG_TEGRA_ENABLE_UARTA |
Simon Glass | bb6997f | 2011-11-28 15:04:39 +0000 | [diff] [blame] | 238 | uart_ids |= UARTA; |
| 239 | #endif |
Tom Warren | 29f3e3f | 2012-09-04 17:00:24 -0700 | [diff] [blame] | 240 | #ifdef CONFIG_TEGRA_ENABLE_UARTB |
Simon Glass | bb6997f | 2011-11-28 15:04:39 +0000 | [diff] [blame] | 241 | uart_ids |= UARTB; |
| 242 | #endif |
Tom Warren | e23bb6a | 2013-01-28 13:32:10 +0000 | [diff] [blame] | 243 | #ifdef CONFIG_TEGRA_ENABLE_UARTC |
| 244 | uart_ids |= UARTC; |
| 245 | #endif |
Tom Warren | 29f3e3f | 2012-09-04 17:00:24 -0700 | [diff] [blame] | 246 | #ifdef CONFIG_TEGRA_ENABLE_UARTD |
Simon Glass | bb6997f | 2011-11-28 15:04:39 +0000 | [diff] [blame] | 247 | uart_ids |= UARTD; |
| 248 | #endif |
Tom Warren | e23bb6a | 2013-01-28 13:32:10 +0000 | [diff] [blame] | 249 | #ifdef CONFIG_TEGRA_ENABLE_UARTE |
| 250 | uart_ids |= UARTE; |
| 251 | #endif |
Simon Glass | bb6997f | 2011-11-28 15:04:39 +0000 | [diff] [blame] | 252 | setup_uarts(uart_ids); |
Thierry Reding | 07ea02b | 2019-04-15 11:32:21 +0200 | [diff] [blame] | 253 | #endif |
Simon Glass | bb6997f | 2011-11-28 15:04:39 +0000 | [diff] [blame] | 254 | } |
Simon Glass | bd29cb0 | 2012-01-09 13:22:15 +0000 | [diff] [blame] | 255 | |
Simon Glass | 878a3ed | 2015-12-04 08:58:39 -0700 | [diff] [blame] | 256 | #if !CONFIG_IS_ENABLED(OF_CONTROL) |
Thomas Chou | 1874626 | 2015-11-19 21:48:11 +0800 | [diff] [blame] | 257 | static struct ns16550_platdata ns16550_com1_pdata = { |
| 258 | .base = CONFIG_SYS_NS16550_COM1, |
| 259 | .reg_shift = 2, |
| 260 | .clock = CONFIG_SYS_NS16550_CLK, |
Heiko Schocher | 17fa032 | 2017-01-18 08:05:49 +0100 | [diff] [blame] | 261 | .fcr = UART_FCR_DEFVAL, |
Thomas Chou | 1874626 | 2015-11-19 21:48:11 +0800 | [diff] [blame] | 262 | }; |
| 263 | |
| 264 | U_BOOT_DEVICE(ns16550_com1) = { |
| 265 | "ns16550_serial", &ns16550_com1_pdata |
| 266 | }; |
| 267 | #endif |
| 268 | |
Trevor Woerner | 1001502 | 2019-05-03 09:41:00 -0400 | [diff] [blame] | 269 | #if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF) && !defined(CONFIG_ARM64) |
Simon Glass | bd29cb0 | 2012-01-09 13:22:15 +0000 | [diff] [blame] | 270 | void enable_caches(void) |
| 271 | { |
| 272 | /* Enable D-cache. I-cache is already enabled in start.S */ |
| 273 | dcache_enable(); |
| 274 | } |
| 275 | #endif |