firmware: raspberrypi: Add support for tryonce reboot flag
authorTim Gover <tim.gover@raspberrypi.com>
Tue, 20 Oct 2020 10:55:37 +0000 (11:55 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:06 +0000 (11:33 +0000)
commit3bd111f35ffcb0a96d0205f51fc2efda45d63806
tree629223c8adb96d6caac90e2df30bc50a8fdec8a2
parent514a837a206f43942e5a7b97a37a045e7c1c95f2
firmware: raspberrypi: Add support for tryonce reboot flag

Define a new mailbox (SET_REBOOT_FLAGS) which may be used to
pass optional flags to the Raspberry Pi firmware that changes
the behaviour of the bootloader and firmware during a reboot.

Currently this just defines the 'tryboot' flag which causes
the firmware to load tryboot.txt instead config.txt. This
alternate configuration file can be used to specify the
path of an alternate firmware and kernels allowing a fallback
mechanism to be implemented for OS upgrades.
drivers/firmware/raspberrypi.c