diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-05-04 15:33:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-05-04 15:33:36 -0400 |
commit | e3d98847ded1d183111ff7c4d1ef56b161c7f13e (patch) | |
tree | 8ec2b298eef4f1695ca612014b7f75b85badae45 /arch/arm/mach-bcm/board_bcm.c | |
parent | 22b154365fbc096a46d936ec1f462ef8b9bd1f05 (diff) | |
parent | 721e0205b07589223343737a9c421d8118d87bba (diff) |
Merge tag 'firmware-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM platform specific firmware interfaces from Olof Johansson:
"Two platforms, bcm and exynos have their own firmware interfaces using
the "secure monitor call", this adds support for those.
We had originally planned to have a third set of patches in here,
which would extend support for the existing generic "psci" call that
is used on multiple platforms as well as Xen and KVM guests, but that
ended up getting dropped because the patches were not ready in time."
* tag 'firmware-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
ARM: bcm: mark bcm_kona_smc_init as __init
ARM: bcm281xx: Add DT support for SMC handler
ARM: bcm281xx: Add L2 cache enable code
ARM: EXYNOS: Add secure firmware support to secondary CPU bring-up
ARM: EXYNOS: Add IO mapping for non-secure SYSRAM.
ARM: EXYNOS: Add support for Exynos secure firmware
ARM: EXYNOS: Add support for secure monitor calls
ARM: Add interface for registering and calling firmware-specific operations
Diffstat (limited to 'arch/arm/mach-bcm/board_bcm.c')
-rw-r--r-- | arch/arm/mach-bcm/board_bcm.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/arm/mach-bcm/board_bcm.c b/arch/arm/mach-bcm/board_bcm.c index 259593540477..22e8421b1df3 100644 --- a/arch/arm/mach-bcm/board_bcm.c +++ b/arch/arm/mach-bcm/board_bcm.c | |||
@@ -20,12 +20,35 @@ | |||
20 | 20 | ||
21 | #include <asm/mach/arch.h> | 21 | #include <asm/mach/arch.h> |
22 | #include <asm/mach/time.h> | 22 | #include <asm/mach/time.h> |
23 | #include <asm/hardware/cache-l2x0.h> | ||
23 | 24 | ||
24 | 25 | ||
26 | #include "bcm_kona_smc.h" | ||
27 | |||
28 | static int __init kona_l2_cache_init(void) | ||
29 | { | ||
30 | if (!IS_ENABLED(CONFIG_CACHE_L2X0)) | ||
31 | return 0; | ||
32 | |||
33 | bcm_kona_smc(SSAPI_ENABLE_L2_CACHE, 0, 0, 0, 0); | ||
34 | |||
35 | /* | ||
36 | * The aux_val and aux_mask have no effect since L2 cache is already | ||
37 | * enabled. Pass 0s for aux_val and 1s for aux_mask for default value. | ||
38 | */ | ||
39 | l2x0_of_init(0, ~0); | ||
40 | |||
41 | return 0; | ||
42 | } | ||
43 | |||
25 | static void __init board_init(void) | 44 | static void __init board_init(void) |
26 | { | 45 | { |
27 | of_platform_populate(NULL, of_default_bus_match_table, NULL, | 46 | of_platform_populate(NULL, of_default_bus_match_table, NULL, |
28 | &platform_bus); | 47 | &platform_bus); |
48 | |||
49 | bcm_kona_smc_init(); | ||
50 | |||
51 | kona_l2_cache_init(); | ||
29 | } | 52 | } |
30 | 53 | ||
31 | static const char * const bcm11351_dt_compat[] = { "bcm,bcm11351", NULL, }; | 54 | static const char * const bcm11351_dt_compat[] = { "bcm,bcm11351", NULL, }; |