summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMarek Vasut <marex@cvs.openbsd.org>2009-09-05 06:46:35 +0000
committerMarek Vasut <marex@cvs.openbsd.org>2009-09-05 06:46:35 +0000
commitf1e53d13c39ec21b052f380f764e1d8930710345 (patch)
treea2fd23cc20e87413a4e205dda5b7df389b4c2b91 /sys/arch
parent8435815c93fe331ba0e154a4468f85a67273e08a (diff)
Palm: add missing GPIO setup into palm_udc.c
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/palm/dev/palm_udc.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/arch/palm/dev/palm_udc.c b/sys/arch/palm/dev/palm_udc.c
index fd59dba9aee..368c98022fc 100644
--- a/sys/arch/palm/dev/palm_udc.c
+++ b/sys/arch/palm/dev/palm_udc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: palm_udc.c,v 1.1 2009/09/05 01:22:11 marex Exp $ */
+/* $OpenBSD: palm_udc.c,v 1.2 2009/09/05 06:46:34 marex Exp $ */
/*
* Copyright (c) 2009 Marek Vasut <marex@openbsd.org>
@@ -79,6 +79,19 @@ palm_udc_attach(struct device *parent, struct device *self, void *aux)
sc->sc_gpio_pullup_inv = 0;
sc->sc_is_host = palm_udc_is_host;
+ pxa2x0_gpio_set_function(sc->sc_gpio_detect, GPIO_IN);
+ pxa2x0_gpio_set_function(GPIO95_USB_PULLUP, GPIO_OUT | GPIO_SET);
+
+ pxa2x0_gpio_set_function(45, GPIO_OUT);
+ pxa2x0_gpio_set_function(40, GPIO_OUT);
+ pxa2x0_gpio_set_function(39, GPIO_IN);
+ pxa2x0_gpio_set_function(38, GPIO_IN);
+ pxa2x0_gpio_set_function(37, GPIO_OUT);
+ pxa2x0_gpio_set_function(36, GPIO_IN);
+ pxa2x0_gpio_set_function(34, GPIO_IN);
+ pxa2x0_gpio_set_function(89, GPIO_OUT);
+ pxa2x0_gpio_set_function(120, GPIO_OUT);
+
pxaudc_attach(sc, aux);
}