diff options
author | Tom Rini <trini@konsulko.com> | 2021-08-11 08:31:13 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-08-11 08:31:13 -0400 |
commit | aba3fa1d3f1dc8f7049317b8d6ea1d8cb8935e5e (patch) | |
tree | 3dcf1dc7077ccd14c1fa885b363f0534f86de683 /arch | |
parent | 3e5b62f78888740530e6f3a2e989f4c361a9d52b (diff) | |
parent | 33b51765583e6cbe1888f068da795bea599bad18 (diff) | |
download | u-boot-aba3fa1d3f1dc8f7049317b8d6ea1d8cb8935e5e.tar.gz |
Merge tag 'u-boot-amlogic-20210810' of https://source.denx.de/u-boot/custodians/u-boot-amlogic
- odroid-n2: fix fdtfile suffix for n2-plus
- sei610 & meson64_android cleanups to prepare android 11 boot support
- use Android BCB mechanism for reboot reason instead of HW reboot flag
- Switch meson64_android boot flow to use abootimg for A/B, AVB and DTBO support
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-meson/board-common.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/arch/arm/mach-meson/board-common.c b/arch/arm/mach-meson/board-common.c index 1690b6b1e6..7ceba7cede 100644 --- a/arch/arm/mach-meson/board-common.c +++ b/arch/arm/mach-meson/board-common.c @@ -22,10 +22,7 @@ #include <efi_loader.h> #include <u-boot/crc.h> -#if CONFIG_IS_ENABLED(FASTBOOT) #include <asm/psci.h> -#include <fastboot.h> -#endif DECLARE_GLOBAL_DATA_PTR; @@ -152,38 +149,7 @@ int board_late_init(void) return meson_board_late_init(); } -#if CONFIG_IS_ENABLED(FASTBOOT) -static unsigned int reboot_reason = REBOOT_REASON_NORMAL; - -int fastboot_set_reboot_flag(enum fastboot_reboot_reason reason) -{ - if (reason != FASTBOOT_REBOOT_REASON_BOOTLOADER) - return -ENOTSUPP; - - reboot_reason = REBOOT_REASON_BOOTLOADER; - - printf("Using reboot reason: 0x%x\n", reboot_reason); - - return 0; -} - -void reset_cpu(void) -{ - struct pt_regs regs; - - regs.regs[0] = ARM_PSCI_0_2_FN_SYSTEM_RESET; - regs.regs[1] = reboot_reason; - - printf("Rebooting with reason: 0x%lx\n", regs.regs[1]); - - smc_call(®s); - - while (1) - ; -} -#else void reset_cpu(void) { psci_system_reset(); } -#endif |