diff options
| author | Marek Vasut <[email protected]> | 2021-02-25 21:52:26 +0100 |
|---|---|---|
| committer | Stefano Babic <[email protected]> | 2021-04-08 20:29:53 +0200 |
| commit | 09d86eab149ccaa387f0061521179605a600a9c3 (patch) | |
| tree | 103965c83e80cb140e7a0a8b6bccf26e5e856275 | |
| parent | 8a78e31d73d4392774b31497ae83203b27e5c37d (diff) | |
ARM: imx: Add OCRAM_S into iMX8M MMU tables
The OCRAM_S is regular memory, just like the OCRAM, add it to the MMU
tables so it can be used and cached.
Signed-off-by: Marek Vasut <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Stefano Babic <[email protected]>
| -rw-r--r-- | arch/arm/mach-imx/imx8m/soc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index f3b9f2ddd61..36abb2e57f0 100644 --- a/arch/arm/mach-imx/imx8m/soc.c +++ b/arch/arm/mach-imx/imx8m/soc.c @@ -105,6 +105,13 @@ static struct mm_region imx8m_mem_map[] = { PTE_BLOCK_NON_SHARE | PTE_BLOCK_PXN | PTE_BLOCK_UXN }, { + /* OCRAM_S */ + .virt = 0x180000UL, + .phys = 0x180000UL, + .size = 0x8000UL, + .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | + PTE_BLOCK_OUTER_SHARE + }, { /* TCM */ .virt = 0x7C0000UL, .phys = 0x7C0000UL, |
