Lokesh Vutla | ed0e605 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
Andrew F. Davis | 9b322db | 2020-01-10 14:35:20 -0500 | [diff] [blame] | 3 | * AM6: SoC specific initialization |
Lokesh Vutla | ed0e605 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 4 | * |
| 5 | * Copyright (C) 2017-2018 Texas Instruments Incorporated - http://www.ti.com/ |
| 6 | * Lokesh Vutla <lokeshvutla@ti.com> |
| 7 | */ |
| 8 | |
| 9 | #include <common.h> |
Lokesh Vutla | e006460 | 2018-08-27 15:57:11 +0530 | [diff] [blame] | 10 | #include <asm/io.h> |
Lokesh Vutla | ed0e605 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 11 | #include <spl.h> |
Lokesh Vutla | e006460 | 2018-08-27 15:57:11 +0530 | [diff] [blame] | 12 | #include <asm/arch/hardware.h> |
Andreas Dannenberg | c222e3d | 2019-06-04 17:55:50 -0500 | [diff] [blame] | 13 | #include <asm/arch/sysfw-loader.h> |
Andreas Dannenberg | 03facc7 | 2019-06-04 18:08:26 -0500 | [diff] [blame] | 14 | #include <asm/arch/sys_proto.h> |
Lokesh Vutla | 23f7b1a | 2018-11-02 19:51:03 +0530 | [diff] [blame] | 15 | #include "common.h" |
Lokesh Vutla | 59ebf4a | 2018-11-02 19:51:06 +0530 | [diff] [blame] | 16 | #include <dm.h> |
Andreas Dannenberg | c222e3d | 2019-06-04 17:55:50 -0500 | [diff] [blame] | 17 | #include <dm/uclass-internal.h> |
| 18 | #include <dm/pinctrl.h> |
Andreas Dannenberg | f9380a7 | 2019-06-07 19:24:42 +0530 | [diff] [blame] | 19 | #include <linux/soc/ti/ti_sci_protocol.h> |
Faiz Abbas | d45ffb7 | 2020-02-26 13:44:36 +0530 | [diff] [blame] | 20 | #include <mmc.h> |
Lokesh Vutla | ed0e605 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 21 | |
| 22 | #ifdef CONFIG_SPL_BUILD |
Andrew F. Davis | ea70da1 | 2020-01-10 14:35:21 -0500 | [diff] [blame] | 23 | #ifdef CONFIG_K3_LOAD_SYSFW |
| 24 | #ifdef CONFIG_TI_SECURE_DEVICE |
| 25 | struct fwl_data main_cbass_fwls[] = { |
| 26 | { "MMCSD1_CFG", 2057, 1 }, |
| 27 | { "MMCSD0_CFG", 2058, 1 }, |
| 28 | { "USB3SS0_SLV0", 2176, 2 }, |
| 29 | { "PCIE0_SLV", 2336, 8 }, |
| 30 | { "PCIE1_SLV", 2337, 8 }, |
| 31 | { "PCIE0_CFG", 2688, 1 }, |
| 32 | { "PCIE1_CFG", 2689, 1 }, |
| 33 | }, mcu_cbass_fwls[] = { |
| 34 | { "MCU_ARMSS0_CORE0_SLV", 1024, 1 }, |
| 35 | { "MCU_ARMSS0_CORE1_SLV", 1028, 1 }, |
| 36 | { "MCU_FSS0_S1", 1033, 8 }, |
| 37 | { "MCU_FSS0_S0", 1036, 8 }, |
| 38 | { "MCU_CPSW0", 1220, 1 }, |
| 39 | }; |
| 40 | #endif |
| 41 | #endif |
| 42 | |
Andreas Dannenberg | c68721d | 2018-08-27 15:57:12 +0530 | [diff] [blame] | 43 | static void mmr_unlock(u32 base, u32 partition) |
| 44 | { |
| 45 | /* Translate the base address */ |
| 46 | phys_addr_t part_base = base + partition * CTRL_MMR0_PARTITION_SIZE; |
| 47 | |
| 48 | /* Unlock the requested partition if locked using two-step sequence */ |
| 49 | writel(CTRLMMR_LOCK_KICK0_UNLOCK_VAL, part_base + CTRLMMR_LOCK_KICK0); |
| 50 | writel(CTRLMMR_LOCK_KICK1_UNLOCK_VAL, part_base + CTRLMMR_LOCK_KICK1); |
| 51 | } |
| 52 | |
| 53 | static void ctrl_mmr_unlock(void) |
| 54 | { |
| 55 | /* Unlock all WKUP_CTRL_MMR0 module registers */ |
| 56 | mmr_unlock(WKUP_CTRL_MMR0_BASE, 0); |
| 57 | mmr_unlock(WKUP_CTRL_MMR0_BASE, 1); |
| 58 | mmr_unlock(WKUP_CTRL_MMR0_BASE, 2); |
| 59 | mmr_unlock(WKUP_CTRL_MMR0_BASE, 3); |
| 60 | mmr_unlock(WKUP_CTRL_MMR0_BASE, 6); |
| 61 | mmr_unlock(WKUP_CTRL_MMR0_BASE, 7); |
| 62 | |
| 63 | /* Unlock all MCU_CTRL_MMR0 module registers */ |
| 64 | mmr_unlock(MCU_CTRL_MMR0_BASE, 0); |
| 65 | mmr_unlock(MCU_CTRL_MMR0_BASE, 1); |
| 66 | mmr_unlock(MCU_CTRL_MMR0_BASE, 2); |
| 67 | mmr_unlock(MCU_CTRL_MMR0_BASE, 6); |
| 68 | |
| 69 | /* Unlock all CTRL_MMR0 module registers */ |
| 70 | mmr_unlock(CTRL_MMR0_BASE, 0); |
| 71 | mmr_unlock(CTRL_MMR0_BASE, 1); |
| 72 | mmr_unlock(CTRL_MMR0_BASE, 2); |
| 73 | mmr_unlock(CTRL_MMR0_BASE, 3); |
| 74 | mmr_unlock(CTRL_MMR0_BASE, 6); |
| 75 | mmr_unlock(CTRL_MMR0_BASE, 7); |
| 76 | } |
| 77 | |
Andrew F. Davis | 407a219 | 2019-04-12 12:54:42 -0400 | [diff] [blame] | 78 | /* |
| 79 | * This uninitialized global variable would normal end up in the .bss section, |
| 80 | * but the .bss is cleared between writing and reading this variable, so move |
| 81 | * it to the .data section. |
| 82 | */ |
| 83 | u32 bootindex __attribute__((section(".data"))); |
| 84 | |
Lokesh Vutla | e006460 | 2018-08-27 15:57:11 +0530 | [diff] [blame] | 85 | static void store_boot_index_from_rom(void) |
| 86 | { |
Andrew F. Davis | 407a219 | 2019-04-12 12:54:42 -0400 | [diff] [blame] | 87 | bootindex = *(u32 *)(CONFIG_SYS_K3_BOOT_PARAM_TABLE_INDEX); |
Lokesh Vutla | e006460 | 2018-08-27 15:57:11 +0530 | [diff] [blame] | 88 | } |
| 89 | |
Faiz Abbas | d45ffb7 | 2020-02-26 13:44:36 +0530 | [diff] [blame] | 90 | #if defined(CONFIG_K3_LOAD_SYSFW) |
| 91 | void k3_mmc_stop_clock(void) |
| 92 | { |
| 93 | if (spl_boot_device() == BOOT_DEVICE_MMC1) { |
| 94 | struct mmc *mmc = find_mmc_device(0); |
| 95 | |
| 96 | if (!mmc) |
| 97 | return; |
| 98 | |
| 99 | mmc->saved_clock = mmc->clock; |
| 100 | mmc_set_clock(mmc, 0, true); |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | void k3_mmc_restart_clock(void) |
| 105 | { |
| 106 | if (spl_boot_device() == BOOT_DEVICE_MMC1) { |
| 107 | struct mmc *mmc = find_mmc_device(0); |
| 108 | |
| 109 | if (!mmc) |
| 110 | return; |
| 111 | |
| 112 | mmc_set_clock(mmc, mmc->saved_clock, false); |
| 113 | } |
| 114 | } |
| 115 | #endif |
| 116 | |
Lokesh Vutla | ed0e605 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 117 | void board_init_f(ulong dummy) |
| 118 | { |
Andreas Dannenberg | c222e3d | 2019-06-04 17:55:50 -0500 | [diff] [blame] | 119 | #if defined(CONFIG_K3_LOAD_SYSFW) || defined(CONFIG_K3_AM654_DDRSS) |
Lokesh Vutla | 59ebf4a | 2018-11-02 19:51:06 +0530 | [diff] [blame] | 120 | struct udevice *dev; |
| 121 | int ret; |
| 122 | #endif |
Lokesh Vutla | e006460 | 2018-08-27 15:57:11 +0530 | [diff] [blame] | 123 | /* |
| 124 | * Cannot delay this further as there is a chance that |
| 125 | * K3_BOOT_PARAM_TABLE_INDEX can be over written by SPL MALLOC section. |
| 126 | */ |
| 127 | store_boot_index_from_rom(); |
| 128 | |
Andreas Dannenberg | c68721d | 2018-08-27 15:57:12 +0530 | [diff] [blame] | 129 | /* Make all control module registers accessible */ |
| 130 | ctrl_mmr_unlock(); |
| 131 | |
Lokesh Vutla | 23f7b1a | 2018-11-02 19:51:03 +0530 | [diff] [blame] | 132 | #ifdef CONFIG_CPU_V7R |
Lokesh Vutla | 40109f4 | 2019-12-31 15:49:55 +0530 | [diff] [blame] | 133 | disable_linefill_optimization(); |
Lokesh Vutla | 23f7b1a | 2018-11-02 19:51:03 +0530 | [diff] [blame] | 134 | setup_k3_mpu_regions(); |
| 135 | #endif |
| 136 | |
Lokesh Vutla | ed0e605 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 137 | /* Init DM early in-order to invoke system controller */ |
| 138 | spl_early_init(); |
| 139 | |
Andreas Dannenberg | 96dd223 | 2018-12-04 22:29:47 -0600 | [diff] [blame] | 140 | #ifdef CONFIG_K3_EARLY_CONS |
| 141 | /* |
| 142 | * Allow establishing an early console as required for example when |
| 143 | * doing a UART-based boot. Note that this console may not "survive" |
| 144 | * through a SYSFW PM-init step and will need a re-init in some way |
| 145 | * due to changing module clock frequencies. |
| 146 | */ |
| 147 | early_console_init(); |
| 148 | #endif |
| 149 | |
Andreas Dannenberg | c222e3d | 2019-06-04 17:55:50 -0500 | [diff] [blame] | 150 | #ifdef CONFIG_K3_LOAD_SYSFW |
| 151 | /* |
| 152 | * Process pinctrl for the serial0 a.k.a. WKUP_UART0 module and continue |
| 153 | * regardless of the result of pinctrl. Do this without probing the |
| 154 | * device, but instead by searching the device that would request the |
| 155 | * given sequence number if probed. The UART will be used by the system |
| 156 | * firmware (SYSFW) image for various purposes and SYSFW depends on us |
| 157 | * to initialize its pin settings. |
| 158 | */ |
| 159 | ret = uclass_find_device_by_seq(UCLASS_SERIAL, 0, true, &dev); |
| 160 | if (!ret) |
| 161 | pinctrl_select_state(dev, "default"); |
| 162 | |
| 163 | /* |
Lokesh Vutla | 6e44aeb | 2020-03-10 16:50:58 +0530 | [diff] [blame] | 164 | * Load, start up, and configure system controller firmware while |
| 165 | * also populating the SYSFW post-PM configuration callback hook. |
Andreas Dannenberg | c222e3d | 2019-06-04 17:55:50 -0500 | [diff] [blame] | 166 | */ |
Faiz Abbas | d45ffb7 | 2020-02-26 13:44:36 +0530 | [diff] [blame] | 167 | k3_sysfw_loader(k3_mmc_stop_clock, k3_mmc_restart_clock); |
| 168 | |
| 169 | /* Prepare console output */ |
| 170 | preloader_console_init(); |
Andrew F. Davis | ea70da1 | 2020-01-10 14:35:21 -0500 | [diff] [blame] | 171 | |
| 172 | /* Disable ROM configured firewalls right after loading sysfw */ |
| 173 | #ifdef CONFIG_TI_SECURE_DEVICE |
| 174 | remove_fwl_configs(main_cbass_fwls, ARRAY_SIZE(main_cbass_fwls)); |
| 175 | remove_fwl_configs(mcu_cbass_fwls, ARRAY_SIZE(mcu_cbass_fwls)); |
| 176 | #endif |
Andreas Dannenberg | c222e3d | 2019-06-04 17:55:50 -0500 | [diff] [blame] | 177 | #else |
Lokesh Vutla | ed0e605 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 178 | /* Prepare console output */ |
| 179 | preloader_console_init(); |
Andreas Dannenberg | c222e3d | 2019-06-04 17:55:50 -0500 | [diff] [blame] | 180 | #endif |
Lokesh Vutla | 59ebf4a | 2018-11-02 19:51:06 +0530 | [diff] [blame] | 181 | |
Lokesh Vutla | 6e44aeb | 2020-03-10 16:50:58 +0530 | [diff] [blame] | 182 | /* Output System Firmware version info */ |
| 183 | k3_sysfw_print_ver(); |
| 184 | |
Andreas Dannenberg | 03facc7 | 2019-06-04 18:08:26 -0500 | [diff] [blame] | 185 | /* Perform EEPROM-based board detection */ |
| 186 | do_board_detect(); |
| 187 | |
Keerthy | 27380cb | 2019-10-24 15:00:52 +0530 | [diff] [blame] | 188 | #if defined(CONFIG_CPU_V7R) && defined(CONFIG_K3_AVS0) |
| 189 | ret = uclass_get_device_by_driver(UCLASS_MISC, DM_GET_DRIVER(k3_avs), |
| 190 | &dev); |
| 191 | if (ret) |
| 192 | printf("AVS init failed: %d\n", ret); |
| 193 | #endif |
| 194 | |
Lokesh Vutla | 59ebf4a | 2018-11-02 19:51:06 +0530 | [diff] [blame] | 195 | #ifdef CONFIG_K3_AM654_DDRSS |
| 196 | ret = uclass_get_device(UCLASS_RAM, 0, &dev); |
Andreas Dannenberg | 3e9b9c1 | 2019-03-11 15:15:43 -0500 | [diff] [blame] | 197 | if (ret) |
| 198 | panic("DRAM init failed: %d\n", ret); |
Lokesh Vutla | 59ebf4a | 2018-11-02 19:51:06 +0530 | [diff] [blame] | 199 | #endif |
Jan Kiszka | c02712a | 2020-05-18 07:57:22 +0200 | [diff] [blame^] | 200 | spl_enable_dcache(); |
Lokesh Vutla | ed0e605 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 201 | } |
| 202 | |
Harald Seiler | e975906 | 2020-04-15 11:33:30 +0200 | [diff] [blame] | 203 | u32 spl_mmc_boot_mode(const u32 boot_device) |
Andrew F. Davis | 81089a5 | 2018-10-03 10:03:23 -0500 | [diff] [blame] | 204 | { |
| 205 | #if defined(CONFIG_SUPPORT_EMMC_BOOT) |
| 206 | u32 devstat = readl(CTRLMMR_MAIN_DEVSTAT); |
Andrew F. Davis | 81089a5 | 2018-10-03 10:03:23 -0500 | [diff] [blame] | 207 | |
| 208 | u32 bootmode = (devstat & CTRLMMR_MAIN_DEVSTAT_BOOTMODE_MASK) >> |
| 209 | CTRLMMR_MAIN_DEVSTAT_BOOTMODE_SHIFT; |
| 210 | |
| 211 | /* eMMC boot0 mode is only supported for primary boot */ |
| 212 | if (bootindex == K3_PRIMARY_BOOTMODE && |
| 213 | bootmode == BOOT_DEVICE_MMC1) |
| 214 | return MMCSD_MODE_EMMCBOOT; |
| 215 | #endif |
| 216 | |
| 217 | /* Everything else use filesystem if available */ |
Tien Fong Chee | f4b4092 | 2019-01-23 14:20:05 +0800 | [diff] [blame] | 218 | #if defined(CONFIG_SPL_FS_FAT) || defined(CONFIG_SPL_FS_EXT4) |
Andrew F. Davis | 81089a5 | 2018-10-03 10:03:23 -0500 | [diff] [blame] | 219 | return MMCSD_MODE_FS; |
| 220 | #else |
| 221 | return MMCSD_MODE_RAW; |
| 222 | #endif |
| 223 | } |
| 224 | |
Lokesh Vutla | e006460 | 2018-08-27 15:57:11 +0530 | [diff] [blame] | 225 | static u32 __get_backup_bootmedia(u32 devstat) |
| 226 | { |
| 227 | u32 bkup_boot = (devstat & CTRLMMR_MAIN_DEVSTAT_BKUP_BOOTMODE_MASK) >> |
| 228 | CTRLMMR_MAIN_DEVSTAT_BKUP_BOOTMODE_SHIFT; |
| 229 | |
| 230 | switch (bkup_boot) { |
| 231 | case BACKUP_BOOT_DEVICE_USB: |
| 232 | return BOOT_DEVICE_USB; |
| 233 | case BACKUP_BOOT_DEVICE_UART: |
| 234 | return BOOT_DEVICE_UART; |
| 235 | case BACKUP_BOOT_DEVICE_ETHERNET: |
| 236 | return BOOT_DEVICE_ETHERNET; |
| 237 | case BACKUP_BOOT_DEVICE_MMC2: |
Andrew F. Davis | b5700ef | 2018-10-03 10:03:22 -0500 | [diff] [blame] | 238 | { |
| 239 | u32 port = (devstat & CTRLMMR_MAIN_DEVSTAT_BKUP_MMC_PORT_MASK) >> |
| 240 | CTRLMMR_MAIN_DEVSTAT_BKUP_MMC_PORT_SHIFT; |
| 241 | if (port == 0x0) |
| 242 | return BOOT_DEVICE_MMC1; |
Lokesh Vutla | e006460 | 2018-08-27 15:57:11 +0530 | [diff] [blame] | 243 | return BOOT_DEVICE_MMC2; |
Andrew F. Davis | b5700ef | 2018-10-03 10:03:22 -0500 | [diff] [blame] | 244 | } |
Lokesh Vutla | e006460 | 2018-08-27 15:57:11 +0530 | [diff] [blame] | 245 | case BACKUP_BOOT_DEVICE_SPI: |
| 246 | return BOOT_DEVICE_SPI; |
| 247 | case BACKUP_BOOT_DEVICE_HYPERFLASH: |
| 248 | return BOOT_DEVICE_HYPERFLASH; |
| 249 | case BACKUP_BOOT_DEVICE_I2C: |
| 250 | return BOOT_DEVICE_I2C; |
| 251 | }; |
| 252 | |
| 253 | return BOOT_DEVICE_RAM; |
| 254 | } |
| 255 | |
| 256 | static u32 __get_primary_bootmedia(u32 devstat) |
| 257 | { |
Andrew F. Davis | b5700ef | 2018-10-03 10:03:22 -0500 | [diff] [blame] | 258 | u32 bootmode = (devstat & CTRLMMR_MAIN_DEVSTAT_BOOTMODE_MASK) >> |
| 259 | CTRLMMR_MAIN_DEVSTAT_BOOTMODE_SHIFT; |
Lokesh Vutla | e006460 | 2018-08-27 15:57:11 +0530 | [diff] [blame] | 260 | |
| 261 | if (bootmode == BOOT_DEVICE_OSPI || bootmode == BOOT_DEVICE_QSPI) |
| 262 | bootmode = BOOT_DEVICE_SPI; |
| 263 | |
Andrew F. Davis | b5700ef | 2018-10-03 10:03:22 -0500 | [diff] [blame] | 264 | if (bootmode == BOOT_DEVICE_MMC2) { |
| 265 | u32 port = (devstat & CTRLMMR_MAIN_DEVSTAT_MMC_PORT_MASK) >> |
| 266 | CTRLMMR_MAIN_DEVSTAT_MMC_PORT_SHIFT; |
| 267 | if (port == 0x0) |
| 268 | bootmode = BOOT_DEVICE_MMC1; |
| 269 | } else if (bootmode == BOOT_DEVICE_MMC1) { |
| 270 | u32 port = (devstat & CTRLMMR_MAIN_DEVSTAT_EMMC_PORT_MASK) >> |
| 271 | CTRLMMR_MAIN_DEVSTAT_EMMC_PORT_SHIFT; |
| 272 | if (port == 0x1) |
| 273 | bootmode = BOOT_DEVICE_MMC2; |
| 274 | } |
| 275 | |
Lokesh Vutla | e006460 | 2018-08-27 15:57:11 +0530 | [diff] [blame] | 276 | return bootmode; |
| 277 | } |
| 278 | |
Lokesh Vutla | ed0e605 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 279 | u32 spl_boot_device(void) |
| 280 | { |
Lokesh Vutla | e006460 | 2018-08-27 15:57:11 +0530 | [diff] [blame] | 281 | u32 devstat = readl(CTRLMMR_MAIN_DEVSTAT); |
Lokesh Vutla | e006460 | 2018-08-27 15:57:11 +0530 | [diff] [blame] | 282 | |
| 283 | if (bootindex == K3_PRIMARY_BOOTMODE) |
| 284 | return __get_primary_bootmedia(devstat); |
| 285 | else |
| 286 | return __get_backup_bootmedia(devstat); |
Lokesh Vutla | ed0e605 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 287 | } |
| 288 | #endif |
| 289 | |
Andreas Dannenberg | f9380a7 | 2019-06-07 19:24:42 +0530 | [diff] [blame] | 290 | #ifdef CONFIG_SYS_K3_SPL_ATF |
| 291 | |
| 292 | #define AM6_DEV_MCU_RTI0 134 |
| 293 | #define AM6_DEV_MCU_RTI1 135 |
| 294 | #define AM6_DEV_MCU_ARMSS0_CPU0 159 |
| 295 | #define AM6_DEV_MCU_ARMSS0_CPU1 245 |
| 296 | |
| 297 | void release_resources_for_core_shutdown(void) |
| 298 | { |
Lokesh Vutla | 78e5121 | 2019-09-09 12:47:38 +0530 | [diff] [blame] | 299 | struct ti_sci_handle *ti_sci = get_ti_sci_handle(); |
| 300 | struct ti_sci_dev_ops *dev_ops = &ti_sci->ops.dev_ops; |
| 301 | struct ti_sci_proc_ops *proc_ops = &ti_sci->ops.proc_ops; |
Andreas Dannenberg | f9380a7 | 2019-06-07 19:24:42 +0530 | [diff] [blame] | 302 | int ret; |
| 303 | u32 i; |
| 304 | |
| 305 | const u32 put_device_ids[] = { |
| 306 | AM6_DEV_MCU_RTI0, |
| 307 | AM6_DEV_MCU_RTI1, |
| 308 | }; |
| 309 | |
Andreas Dannenberg | f9380a7 | 2019-06-07 19:24:42 +0530 | [diff] [blame] | 310 | /* Iterate through list of devices to put (shutdown) */ |
| 311 | for (i = 0; i < ARRAY_SIZE(put_device_ids); i++) { |
| 312 | u32 id = put_device_ids[i]; |
| 313 | |
| 314 | ret = dev_ops->put_device(ti_sci, id); |
| 315 | if (ret) |
| 316 | panic("Failed to put device %u (%d)\n", id, ret); |
| 317 | } |
| 318 | |
| 319 | const u32 put_core_ids[] = { |
| 320 | AM6_DEV_MCU_ARMSS0_CPU1, |
| 321 | AM6_DEV_MCU_ARMSS0_CPU0, /* Handle CPU0 after CPU1 */ |
| 322 | }; |
| 323 | |
| 324 | /* Iterate through list of cores to put (shutdown) */ |
| 325 | for (i = 0; i < ARRAY_SIZE(put_core_ids); i++) { |
| 326 | u32 id = put_core_ids[i]; |
| 327 | |
| 328 | /* |
| 329 | * Queue up the core shutdown request. Note that this call |
| 330 | * needs to be followed up by an actual invocation of an WFE |
| 331 | * or WFI CPU instruction. |
| 332 | */ |
| 333 | ret = proc_ops->proc_shutdown_no_wait(ti_sci, id); |
| 334 | if (ret) |
| 335 | panic("Failed sending core %u shutdown message (%d)\n", |
| 336 | id, ret); |
| 337 | } |
| 338 | } |
| 339 | #endif |