Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/rockchip enable USB ethernet on Minix Neo X7



details:   https://anonhg.NetBSD.org/src/rev/ab133178444a
branches:  trunk
changeset: 805504:ab133178444a
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Jan 04 16:31:58 2015 +0000

description:
enable USB ethernet on Minix Neo X7

diffstat:

 sys/arch/arm/rockchip/obio.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r ba2a1cc4f53d -r ab133178444a sys/arch/arm/rockchip/obio.c
--- a/sys/arch/arm/rockchip/obio.c      Sun Jan 04 16:19:12 2015 +0000
+++ b/sys/arch/arm/rockchip/obio.c      Sun Jan 04 16:31:58 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: obio.c,v 1.13 2015/01/04 11:53:42 jmcneill Exp $       */
+/*     $NetBSD: obio.c,v 1.14 2015/01/04 16:31:58 jmcneill Exp $       */
 
 /*
  * Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
@@ -38,7 +38,7 @@
 #include "opt_rockchip.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: obio.c,v 1.13 2015/01/04 11:53:42 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: obio.c,v 1.14 2015/01/04 16:31:58 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -260,6 +260,10 @@
        obio_swporta(ROCKCHIP_GPIO3_OFFSET, GPIO_SWPORTA_DR_OFFSET, __BIT(26));
        obio_swporta(ROCKCHIP_GPIO3_OFFSET, GPIO_SWPORTA_DD_OFFSET, __BIT(26));
 
+       /* Minix Neo X7 USB ethernet */
+       obio_swporta(ROCKCHIP_GPIO0_OFFSET, GPIO_SWPORTA_DR_OFFSET, __BIT(30));
+       obio_swporta(ROCKCHIP_GPIO0_OFFSET, GPIO_SWPORTA_DD_OFFSET, __BIT(30));
+
        /* IT66121 HDMI */
        obio_swporta(ROCKCHIP_GPIO3_OFFSET, GPIO_SWPORTA_DR_OFFSET, __BIT(10));
        obio_swporta(ROCKCHIP_GPIO3_OFFSET, GPIO_SWPORTA_DD_OFFSET, __BIT(10));



Home | Main Index | Thread Index | Old Index