This source file includes following definitions.
- kona_l2_cache_init
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 #include <linux/init.h>
16 #include <linux/printk.h>
17 #include <asm/hardware/cache-l2x0.h>
18
19 #include "bcm_kona_smc.h"
20 #include "kona_l2_cache.h"
21
22 void __init kona_l2_cache_init(void)
23 {
24 unsigned int result;
25 int ret;
26
27 ret = bcm_kona_smc_init();
28 if (ret) {
29 pr_info("Secure API not available (%d). Skipping L2 init.\n",
30 ret);
31 return;
32 }
33
34 result = bcm_kona_smc(SSAPI_ENABLE_L2_CACHE, 0, 0, 0, 0);
35 if (result != SEC_ROM_RET_OK) {
36 pr_err("Secure Monitor call failed (%u)! Skipping L2 init.\n",
37 result);
38 return;
39 }
40
41
42
43
44
45 ret = l2x0_of_init(0, ~0);
46 if (ret)
47 pr_err("Couldn't enable L2 cache: %d\n", ret);
48 }