diff options
-rw-r--r-- | src/mainboard/google/gale/mmu.c | 7 | ||||
-rw-r--r-- | src/mainboard/google/gale/mmu.h | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/mainboard/google/gale/mmu.c b/src/mainboard/google/gale/mmu.c index 6c096a5bf4..4b0ffec301 100644 --- a/src/mainboard/google/gale/mmu.c +++ b/src/mainboard/google/gale/mmu.c @@ -20,6 +20,9 @@ #define WIFI_IMEM_1_START ((uintptr_t)_wifi_imem_1 / KiB) #define WIFI_IMEM_1_END ((uintptr_t)_ewifi_imem_1 / KiB) +#define OC_IMEM_START ((uintptr_t)_oc_imem / KiB) +#define OC_IMEM_END ((uintptr_t)_eoc_imem / KiB) + #define DRAM_START ((uintptr_t)_dram / MiB) #define DRAM_SIZE (CONFIG_DRAM_SIZE_MB) #define DRAM_END (DRAM_START + DRAM_SIZE) @@ -61,6 +64,10 @@ void setup_mmu(enum dram_state dram) WIFI_IMEM_1_END - WIFI_IMEM_1_START, DCACHE_WRITEBACK); + mmu_config_range_kb(OC_IMEM_START, + OC_IMEM_END - OC_IMEM_START, + DCACHE_WRITEBACK); + /* Map DRAM memory */ setup_dram_mappings(dram); diff --git a/src/mainboard/google/gale/mmu.h b/src/mainboard/google/gale/mmu.h index e3347c8c2f..f7bffd26af 100644 --- a/src/mainboard/google/gale/mmu.h +++ b/src/mainboard/google/gale/mmu.h @@ -16,6 +16,8 @@ extern u8 _wifi_imem_0[]; /* Linker script supplied */ extern u8 _ewifi_imem_0[]; extern u8 _wifi_imem_1[]; extern u8 _ewifi_imem_1[]; +extern u8 _oc_imem[]; +extern u8 _eoc_imem[]; enum dram_state { DRAM_INITIALIZED = 0, |