Make sure to actual push the configuration of the GPIO to its registers.
With this change, USB now works.
This commit is contained in:
parent
0e738d35fd
commit
33ff832239
|
@ -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_pin_reserve(const char *name, struct awin_gpio_pindata *pd)
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue