Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/fdt Add support for Meson GXBB
details: https://anonhg.NetBSD.org/src/rev/80954cd2894d
branches: trunk
changeset: 997278:80954cd2894d
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Mar 02 13:21:08 2019 +0000
description:
Add support for Meson GXBB
diffstat:
sys/dev/fdt/dwc2_fdt.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (41 lines):
diff -r 76ffaf932b44 -r 80954cd2894d sys/dev/fdt/dwc2_fdt.c
--- a/sys/dev/fdt/dwc2_fdt.c Sat Mar 02 12:25:15 2019 +0000
+++ b/sys/dev/fdt/dwc2_fdt.c Sat Mar 02 13:21:08 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc2_fdt.c,v 1.4 2019/01/19 20:53:32 jmcneill Exp $ */
+/* $NetBSD: dwc2_fdt.c,v 1.5 2019/03/02 13:21:08 jmcneill Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc2_fdt.c,v 1.4 2019/01/19 20:53:32 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc2_fdt.c,v 1.5 2019/03/02 13:21:08 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -84,6 +84,7 @@
static const struct of_compat_data compat_data[] = {
{ "amlogic,meson8b-usb", (uintptr_t)&dwc2_fdt_meson8b_config },
+ { "amlogic,meson-gxbb-usb", (uintptr_t)&dwc2_fdt_meson8b_config },
{ "rockchip,rk3066-usb", (uintptr_t)&dwc2_fdt_rk3066_config },
{ "snps,dwc2", (uintptr_t)&dwc2_fdt_generic_config },
{ NULL }
@@ -209,11 +210,14 @@
params->otg_cap = DWC2_CAP_PARAM_NO_HNP_SRP_CAPABLE;
params->speed = DWC2_SPEED_PARAM_HIGH;
+ params->dma_enable = 1;
+ params->enable_dynamic_fifo = 1,
params->host_rx_fifo_size = 512;
params->host_nperio_tx_fifo_size = 500;
params->host_perio_tx_fifo_size = 500;
params->host_channels = 16;
params->phy_type = DWC2_PHY_TYPE_PARAM_UTMI;
+ params->reload_ctl = 1,
params->ahbcfg = GAHBCFG_HBSTLEN_INCR8 << GAHBCFG_HBSTLEN_SHIFT;
#ifdef DWC2_POWER_DOWN_PARAM_NONE
params->power_down = DWC2_POWER_DOWN_PARAM_NONE;
Home |
Main Index |
Thread Index |
Old Index