linux/arch/arm/mach-exynos
Doug Anderson 7cbcb9d46f ARM: EXYNOS: Don't rely on firmware's secondary_cpu_start for mcpm
On exynos mcpm systems the firmware is hardcoded to jump to an address
in SRAM (0x02073000) when secondary CPUs come up.  By default the
firmware puts a bunch of code at that location.  That code expects the
kernel to fill in a few slots with addresses that it uses to jump back
to the kernel's entry point for secondary CPUs.

Originally (on prerelease hardware) this firmware code contained a
bunch of workarounds to deal with boot ROM bugs.  However on all
shipped hardware we simply use this code to redirect to a kernel
function for bringing up the CPUs.

Let's stop relying on the code provided by the bootloader and just
plumb in our own (simple) code jump to the kernel.  This has the nice
benefit of fixing problems due to the fact that older bootloaders
(like the one shipped on the Samsung Chromebook 2) might have put
slightly different code into this location.

Once suspend/resume is implemented for systems using exynos-mcpm we'll
need to make sure we reinstall our fixed up code after resume.  ...but
that's not anything new since IRAM (and thus the address of the
mcpm_entry_point) is lost across suspend/resume anyway.

Signed-off-by: Doug Anderson <dianders@chromium.org>
Acked-by: Kevin Hilman <khilman@linaro.org>
Tested-by: Kevin Hilman <khilman@linaro.org>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2014-06-21 19:30:53 +09:00
..
include/mach ARM: EXYNOS: Map SYSRAM through generic DT bindings 2014-05-15 03:30:05 +09:00
common.h Merge branch 'for-linus' of git://ftp.arm.linux.org.uk/~rmk/linux-arm into next 2014-06-05 15:57:04 -07:00
exynos-smc.S ARM: EXYNOS: Add support for secure monitor calls 2013-04-09 01:52:06 +09:00
exynos.c Merge branch 'for-linus' of git://ftp.arm.linux.org.uk/~rmk/linux-arm into next 2014-06-05 15:57:04 -07:00
firmware.c Samsung 2nd drivers for 3.16 2014-05-30 21:48:39 -07:00
headsmp.S arm: delete __cpuinit/__CPUINIT usage from all ARM users 2013-07-14 19:36:52 -04:00
hotplug.c ARM: EXYNOS: Use wfi macro in platform_do_lowpower 2014-06-17 00:23:28 +09:00
Kconfig Samsung 2nd drivers for 3.16 2014-05-30 21:48:39 -07:00
Makefile ARM: SoC driver changes 2014-06-02 16:35:49 -07:00
Makefile.boot
mcpm-exynos.c ARM: EXYNOS: Don't rely on firmware's secondary_cpu_start for mcpm 2014-06-21 19:30:53 +09:00
mfc.h ARM: SAMSUNG: Reorganize calls to reserve memory for MFC 2014-03-21 02:00:09 +09:00
platsmp.c Samsung 2nd drivers for 3.16 2014-05-30 21:48:39 -07:00
pm_domains.c ARM: EXYNOS: Remove unused header file from pm_domains.c 2014-02-14 10:42:47 +09:00
pm.c ARM: EXYNOS: fix pm code to check for cortex A9 rather than the SoC 2014-06-18 08:08:49 +09:00
pmu.c ARM: EXYNOS: Remove unnecessary inclusion of cpu.h 2014-05-26 04:05:00 +09:00
regs-pmu.h ARM: EXYNOS: Move S5P_CHECK_SLEEP into pm.c 2014-05-26 05:21:08 +09:00
sleep.S ARM: l2c: exynos: convert to common l2c310 early resume functionality 2014-05-30 00:49:12 +01:00
smc.h ARM: EXYNOS: Add support for secure monitor calls 2013-04-09 01:52:06 +09:00