From 19df384cec181be4407f82377ffbb3059b1ed748 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 6 Feb 2017 16:12:13 +0100 Subject: ARM: i.MX7: Add PSCI support This adds the SoC specific PSCI bits for i.MX7. Based on the corresponding U-Boot code. Signed-off-by: Sascha Hauer --- arch/arm/cpu/psci.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'arch/arm/cpu') diff --git a/arch/arm/cpu/psci.c b/arch/arm/cpu/psci.c index 745b8495e5..d650c23ea2 100644 --- a/arch/arm/cpu/psci.c +++ b/arch/arm/cpu/psci.c @@ -22,6 +22,17 @@ #include #ifdef CONFIG_ARM_PSCI_DEBUG + +/* + * PSCI debugging functions. Board code can specify a putc() function + * which is used for debugging output. Beware that this function is + * called while the kernel is running. This means the kernel could have + * turned off clocks, configured other baudrates and other stuff that + * might confuse the putc function. So it can well be that the debugging + * code itself is the problem when somethings not working. You have been + * warned. + */ + static void (*__putc)(void *ctx, int c); static void *putc_ctx; @@ -220,6 +231,8 @@ int psci_cpu_entry_c(void) if (bootm_arm_security_state() == ARM_STATE_HYP) armv7_switch_to_hyp(); + psci_printf("core #%d enter function 0x%p\n", cpu, entry); + entry(context_id); while (1); -- cgit v1.2.3