diff options
Diffstat (limited to 'baseboard/mtscp-rv32i/baseboard.c')
-rw-r--r-- | baseboard/mtscp-rv32i/baseboard.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/baseboard/mtscp-rv32i/baseboard.c b/baseboard/mtscp-rv32i/baseboard.c new file mode 100644 index 0000000000..cfc6353afe --- /dev/null +++ b/baseboard/mtscp-rv32i/baseboard.c @@ -0,0 +1,25 @@ +/* Copyright 2021 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ +/* MT SCP RV32i configuration */ + +#include "cache.h" +#include "csr.h" +#include "registers.h" + +#define SCP_SRAM_END (CONFIG_IPC_SHARED_OBJ_ADDR & (~(0x400 - 1))) + +struct mpu_entry mpu_entries[NR_MPU_ENTRIES] = { + /* SRAM (for most code, data) */ + {0, SCP_SRAM_END, MPU_ATTR_C | MPU_ATTR_W | MPU_ATTR_R}, + /* SRAM (for IPI shared buffer) */ + {SCP_SRAM_END, SCP_FW_END, MPU_ATTR_W | MPU_ATTR_R}, + /* For AP domain */ + {0x60000000, 0x70000000, MPU_ATTR_W | MPU_ATTR_R}, + /* For SCP sys */ + {0x70000000, 0x80000000, MPU_ATTR_W | MPU_ATTR_R}, + {0x10000000, 0x11400000, MPU_ATTR_W | MPU_ATTR_R}, +}; + +#include "gpio_list.h" |