summaryrefslogtreecommitdiffstats
path: root/sys/arm/mv
diff options
context:
space:
mode:
authorzbb <zbb@FreeBSD.org>2016-06-02 18:31:36 +0000
committerzbb <zbb@FreeBSD.org>2016-06-02 18:31:36 +0000
commit4f50db82704b83f0e922df1c00524872f9bbd88a (patch)
tree12a1256c8a6f8e72fc136753cd7e6cab8a814d1f /sys/arm/mv
parenteb1a6405b8db6031b2c471720d285f8a444fc4a7 (diff)
downloadFreeBSD-src-4f50db82704b83f0e922df1c00524872f9bbd88a.zip
FreeBSD-src-4f50db82704b83f0e922df1c00524872f9bbd88a.tar.gz
Map CESA SRAM memory in driver attach for Armada38x
On other platforms with CESA accelerator the SRAM memory is mapped in early init before driver is attached. This method only works correctly with mappings no smaller than L1 section size (1MB). There may be more SRAM blocks and they may have smaller sizes than 1MB as is the case for Armada38x. Instead, map SRAM memory with bus_space_map() in CESA driver attach. Note that we can no longer assume that VA == PA for the SRAM. Submitted by: Michal Stanek <mst@semihalf.com Obtained from: Semihalf Sponsored by: Stormshield Differential revision: https://reviews.freebsd.org/D6215
Diffstat (limited to 'sys/arm/mv')
-rw-r--r--sys/arm/mv/mv_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/mv/mv_machdep.c b/sys/arm/mv/mv_machdep.c
index 73972c3..a1d7d49 100644
--- a/sys/arm/mv/mv_machdep.c
+++ b/sys/arm/mv/mv_machdep.c
@@ -283,7 +283,7 @@ static struct devmap_entry fdt_devmap[FDT_DEVMAP_MAX] = {
static int
platform_sram_devmap(struct devmap_entry *map)
{
-#if !defined(SOC_MV_ARMADAXP)
+#if !defined(SOC_MV_ARMADAXP) && !defined(SOC_MV_ARMADA38X)
phandle_t child, root;
u_long base, size;
/*
OpenPOWER on IntegriCloud