Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/ingenic restrict DMA buffers to the lower 256M...
details: https://anonhg.NetBSD.org/src/rev/e777c2614fdb
branches: trunk
changeset: 805282:e777c2614fdb
user: macallan <macallan%NetBSD.org@localhost>
date: Sat Dec 27 17:22:15 2014 +0000
description:
restrict DMA buffers to the lower 256MB -> now dwc2 DMA works
diffstat:
sys/arch/mips/ingenic/apbus.c | 5 +++--
sys/arch/mips/ingenic/ingenic_dwctwo.c | 6 +++---
2 files changed, 6 insertions(+), 5 deletions(-)
diffs (53 lines):
diff -r 3966564e2b50 -r e777c2614fdb sys/arch/mips/ingenic/apbus.c
--- a/sys/arch/mips/ingenic/apbus.c Sat Dec 27 16:54:02 2014 +0000
+++ b/sys/arch/mips/ingenic/apbus.c Sat Dec 27 17:22:15 2014 +0000
@@ -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 @@
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,
diff -r 3966564e2b50 -r e777c2614fdb sys/arch/mips/ingenic/ingenic_dwctwo.c
--- a/sys/arch/mips/ingenic/ingenic_dwctwo.c Sat Dec 27 16:54:02 2014 +0000
+++ b/sys/arch/mips/ingenic/ingenic_dwctwo.c Sat Dec 27 17:22:15 2014 +0000
@@ -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 @@
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,
Home |
Main Index |
Thread Index |
Old Index