summaryrefslogtreecommitdiffstats
path: root/sys/arm/mv/mv_machdep.c
diff options
context:
space:
mode:
authorgber <gber@FreeBSD.org>2013-05-06 13:34:36 +0000
committergber <gber@FreeBSD.org>2013-05-06 13:34:36 +0000
commit8ead7d44b772a918360b0b6856e5b1c8ae17e074 (patch)
treececcd592c2168cfc60b7fb108e9484bbdfa2a02e /sys/arm/mv/mv_machdep.c
parentcc397fc8ec15c200c46798a083861996e34faf96 (diff)
downloadFreeBSD-src-8ead7d44b772a918360b0b6856e5b1c8ae17e074.zip
FreeBSD-src-8ead7d44b772a918360b0b6856e5b1c8ae17e074.tar.gz
Move initialization of CESA decoding windows from common section
to driver specific files. - window initialization is done during device attach - CESA TDMA decoding windows values are set based on DTS, not copied from CPU registers - remove unnecessary virtual mapping - update dts file Obtained from: Semihalf
Diffstat (limited to 'sys/arm/mv/mv_machdep.c')
-rw-r--r--sys/arm/mv/mv_machdep.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/sys/arm/mv/mv_machdep.c b/sys/arm/mv/mv_machdep.c
index fba222d..df2ca74 100644
--- a/sys/arm/mv/mv_machdep.c
+++ b/sys/arm/mv/mv_machdep.c
@@ -310,7 +310,6 @@ platform_devmap_init(void)
{
phandle_t root, child;
pcell_t bank_count;
- u_long base, size;
int i, num_mapped;
i = 0;
@@ -381,29 +380,6 @@ platform_devmap_init(void)
}
}
- /*
- * CESA SRAM range.
- */
- if ((child = OF_finddevice("sram")) != -1)
- if (fdt_is_compatible(child, "mrvl,cesa-sram"))
- goto moveon;
-
- if ((child = fdt_find_compatible(root, "mrvl,cesa-sram", 0)) == 0)
- /* No CESA SRAM node. */
- return (0);
-moveon:
- if (i >= FDT_DEVMAP_MAX)
- return (ENOMEM);
-
- if (fdt_regsize(child, &base, &size) != 0)
- return (EINVAL);
-
- fdt_devmap[i].pd_va = MV_CESA_SRAM_BASE; /* XXX */
- fdt_devmap[i].pd_pa = base;
- fdt_devmap[i].pd_size = size;
- fdt_devmap[i].pd_prot = VM_PROT_READ | VM_PROT_WRITE;
- fdt_devmap[i].pd_cache = PTE_NOCACHE;
-
return (0);
}
OpenPOWER on IntegriCloud