ARM: exynos: Add CPU state management for Exynos542x under secure firmware
Add required CPU state management done via secure monitor call for Exynos542x running unsed Secure Firmware. Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com> [mszyprow: rewrote code to use defines and sysram base address instead of the magic numbers, added second smc call in pm_resume, rephrased subject and commit message] Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
This commit is contained in:

committato da
Krzysztof Kozlowski

parent
47efaf6ba6
commit
3a1f2f38fb
@@ -33,6 +33,7 @@ static struct platform_device exynos_cpuidle = {
|
||||
};
|
||||
|
||||
void __iomem *sysram_base_addr __ro_after_init;
|
||||
phys_addr_t sysram_base_phys __ro_after_init;
|
||||
void __iomem *sysram_ns_base_addr __ro_after_init;
|
||||
|
||||
void __init exynos_sysram_init(void)
|
||||
@@ -43,6 +44,8 @@ void __init exynos_sysram_init(void)
|
||||
if (!of_device_is_available(node))
|
||||
continue;
|
||||
sysram_base_addr = of_iomap(node, 0);
|
||||
sysram_base_phys = of_translate_address(node,
|
||||
of_get_address(node, 0, NULL, NULL));
|
||||
break;
|
||||
}
|
||||
|
||||
|
Fai riferimento in un nuovo problema
Block a user