restrict DMA buffers to the lower 256MB -> now dwc2 DMA works

This commit is contained in:
macallan 2014-12-27 17:22:15 +00:00
parent dce8d6f504
commit 735afce6b0
2 changed files with 6 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: apbus.c,v 1.5 2014/12/25 05:10:50 macallan Exp $ */
/* $NetBSD: apbus.c,v 1.6 2014/12/27 17:22:15 macallan Exp $ */
/*-
* Copyright (c) 2014 Michael Lorenz
@ -29,7 +29,7 @@
/* catch-all for on-chip peripherals */
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: apbus.c,v 1.5 2014/12/25 05:10:50 macallan Exp $");
__KERNEL_RCSID(0, "$NetBSD: apbus.c,v 1.6 2014/12/27 17:22:15 macallan Exp $");
#include "locators.h"
#define _MIPS_BUS_DMA_PRIVATE
@ -56,6 +56,7 @@ static struct mips_bus_space apbus_mbst;
bus_space_tag_t apbus_memt = NULL;
struct mips_bus_dma_tag apbus_dmat = {
._bounce_alloc_hi = 0x10000000,
._dmamap_ops = _BUS_DMAMAP_OPS_INITIALIZER,
._dmamem_ops = _BUS_DMAMEM_OPS_INITIALIZER,
._dmatag_ops = _BUS_DMATAG_OPS_INITIALIZER,

View File

@ -1,4 +1,4 @@
/* $NetBSD: ingenic_dwctwo.c,v 1.4 2014/12/25 05:13:49 macallan Exp $ */
/* $NetBSD: ingenic_dwctwo.c,v 1.5 2014/12/27 17:22:15 macallan Exp $ */
/*-
* Copyright (c) 2014 Michael Lorenz
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ingenic_dwctwo.c,v 1.4 2014/12/25 05:13:49 macallan Exp $");
__KERNEL_RCSID(0, "$NetBSD: ingenic_dwctwo.c,v 1.5 2014/12/27 17:22:15 macallan Exp $");
/*
* adapted from bcm2835_dwctwo.c
@ -64,7 +64,7 @@ struct ingenic_dwc2_softc {
static struct dwc2_core_params ingenic_dwc2_params = {
.otg_cap = -1, /* HNP/SRP capable */
.otg_ver = -1, /* 1.3 */
.dma_enable = 0, /* for now */
.dma_enable = 1,
.dma_desc_enable = 0,
.speed = -1, /* High Speed */
.enable_dynamic_fifo = -1,