mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-13 20:36:02 +01:00
sunxi: Enable support for SCP firmware on H3
Now that issues with the BROM have been sorted out, we can implement PSCI system suspend on H3 by delegating to SCP firmware. Let's start by including the firmware in the FIT image and starting the coprocessor if valid firmware is loaded. Signed-off-by: Samuel Holland <samuel@sholland.org>
This commit is contained in:
parent
5c52b7d852
commit
2f330ad98d
@ -173,6 +173,7 @@ config SUNXI_RESUME_BASE
|
||||
|
||||
config SUNXI_SCP_BASE
|
||||
hex
|
||||
default 0x00048000 if MACH_SUN8I_H3
|
||||
default 0x00050000 if MACH_SUN50I || MACH_SUN50I_H5
|
||||
default 0x00114000 if MACH_SUN50I_H6
|
||||
default 0x0
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include <init.h>
|
||||
#include <log.h>
|
||||
#include <mmc.h>
|
||||
#include <remoteproc.h>
|
||||
#include <axp_pmic.h>
|
||||
#include <generic-phy.h>
|
||||
#include <phy-sun4i-usb.h>
|
||||
@ -851,6 +852,13 @@ int board_late_init(void)
|
||||
usb_ether_init();
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_REMOTEPROC_SUN6I_AR100
|
||||
if (!rproc_load(0, CONFIG_SUNXI_SCP_BASE, 1)) {
|
||||
puts("Starting SCP...\n");
|
||||
rproc_start(0);
|
||||
}
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user