Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/allwinner Make sure to actual push the configur...
details: https://anonhg.NetBSD.org/src/rev/59fd7d9390f0
branches: trunk
changeset: 789794:59fd7d9390f0
user: matt <matt%NetBSD.org@localhost>
date: Sun Sep 08 00:55:25 2013 +0000
description:
Make sure to actual push the configuration of the GPIO to its registers.
With this change, USB now works.
diffstat:
sys/arch/arm/allwinner/awin_gpio.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r f385577b9455 -r 59fd7d9390f0 sys/arch/arm/allwinner/awin_gpio.c
--- a/sys/arch/arm/allwinner/awin_gpio.c Sun Sep 08 00:05:27 2013 +0000
+++ b/sys/arch/arm/allwinner/awin_gpio.c Sun Sep 08 00:55:25 2013 +0000
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: awin_gpio.c,v 1.5 2013/09/07 23:47:33 jmcneill Exp $");
+__KERNEL_RCSID(1, "$NetBSD: awin_gpio.c,v 1.6 2013/09/08 00:55:25 matt Exp $");
#include <sys/bus.h>
#include <sys/device.h>
@@ -609,6 +609,11 @@
awin_gpio_set_pin_func(&ncfg, pin,
pin_data[0] == '<' ? AWIN_PIO_FUNC_INPUT : AWIN_PIO_FUNC_OUTPUT);
+ /*
+ * Now update any config register that changed.
+ */
+ awin_gpio_update_cfg_regs(sc->sc_bst, grp, &ncfg);
+
grp->grp_pin_inuse_mask &= ~__BIT(pin);
pd->pd_gc = &grp->grp_gc_tag;
Home |
Main Index |
Thread Index |
Old Index