coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
cache.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <arch/cache.h>
4 #include <soc/cache.h>
5 #include <stdint.h>
6 
7 enum {
8  L2CTLR_ECC_PARITY = 0x1 << 21,
13 };
14 
15 enum {
19 };
20 
21 /* Configures L2 Control Register to use 3 cycles for DATA/TAG RAM latency. */
22 static void configure_l2ctlr(void)
23 {
24  uint32_t val;
25 
26  val = read_l2ctlr();
31 }
32 
33 /* Configures L2 Auxiliary Control Register for Cortex A15. */
34 static void configure_l2actlr(void)
35 {
36  uint32_t val;
37 
38  val = read_l2actlr();
43 }
44 
46 {
49 }
static uint32_t read_l2actlr(void)
Definition: cache.h:241
static void write_l2ctlr(uint32_t val)
Definition: cache.h:230
static uint32_t read_l2ctlr(void)
Definition: cache.h:222
static void write_l2actlr(uint32_t val)
Definition: cache.h:249
@ L2CTLR_DATA_RAM_LATENCY_MASK
Definition: cache.c:11
@ L2CTLR_TAG_RAM_LATENCY_CYCLES_3
Definition: cache.c:10
@ L2CTLR_TAG_RAM_LATENCY_MASK
Definition: cache.c:9
@ L2CTLR_DATA_RAM_LATENCY_CYCLES_3
Definition: cache.c:12
@ L2CTLR_ECC_PARITY
Definition: cache.c:8
void configure_l2_cache(void)
Definition: cache.c:45
@ L2ACTLR_ENABLE_HAZARD_DETECT_TIMEOUT
Definition: cache.c:17
@ L2ACTLR_FORCE_L2_LOGIC_CLOCK_ENABLE_ACTIVE
Definition: cache.c:16
@ L2ACTLR_DISABLE_CLEAN_EVICT_PUSH_EXTERNAL
Definition: cache.c:18
static void configure_l2ctlr(void)
Definition: cache.c:22
static void configure_l2actlr(void)
Definition: cache.c:34
unsigned int uint32_t
Definition: stdint.h:14
u8 val
Definition: sys.c:300