forked from Mirrors/opensbi
lib: utils: Add simple FDT based system suspend driver framework
The generic platform can have multiple system suspend drivers so add a simple FDT based system suspend driver framework. Signed-off-by: Anup Patel <apatel@ventanamicro.com>
This commit is contained in:
@@ -44,6 +44,7 @@ CONFIG_FDT_SERIAL_LITEX=y
|
||||
CONFIG_FDT_SERIAL_UART8250=y
|
||||
CONFIG_FDT_SERIAL_XILINX_UARTLITE=y
|
||||
CONFIG_SERIAL_SEMIHOSTING=y
|
||||
CONFIG_FDT_SUSPEND=y
|
||||
CONFIG_FDT_TIMER=y
|
||||
CONFIG_FDT_TIMER_MTIMER=y
|
||||
CONFIG_FDT_TIMER_PLMT=y
|
||||
|
@@ -24,6 +24,7 @@
|
||||
#include <sbi_utils/irqchip/fdt_irqchip.h>
|
||||
#include <sbi_utils/irqchip/imsic.h>
|
||||
#include <sbi_utils/serial/fdt_serial.h>
|
||||
#include <sbi_utils/suspend/fdt_suspend.h>
|
||||
#include <sbi_utils/timer/fdt_timer.h>
|
||||
#include <sbi_utils/ipi/fdt_ipi.h>
|
||||
#include <sbi_utils/reset/fdt_reset.h>
|
||||
@@ -247,6 +248,7 @@ static int generic_early_init(bool cold_boot)
|
||||
|
||||
if (cold_boot) {
|
||||
fdt_reset_init(fdt);
|
||||
fdt_suspend_init(fdt);
|
||||
|
||||
if (semihosting_enabled())
|
||||
rc = semihosting_init();
|
||||
|
Reference in New Issue
Block a user