From mboxrd@z Thu Jan 1 00:00:00 1970 From: Troy Kisky Date: Thu, 19 Sep 2013 21:08:26 -0700 Subject: [U-Boot] [PATCH V4 16/17] nitrogen6x: add otg usb host/device mode support In-Reply-To: <1379647780-2623-17-git-send-email-troy.kisky@boundarydevices.com> References: <1379647780-2623-1-git-send-email-troy.kisky@boundarydevices.com> <1379647780-2623-17-git-send-email-troy.kisky@boundarydevices.com> Message-ID: <523BCA3A.5050003@boundarydevices.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 9/19/2013 8:29 PM, Troy Kisky wrote: > Signed-off-by: Troy Kisky > > --- > v4: similar to Nitrogen6x: add otg usb ethernet gadget support > But I added pad setup for over current, otg_id, and power control > Added board_ehci_power function to enable power for host mode. > Removed otg_id selection done now in previous patch. > --- > board/boundary/nitrogen6x/nitrogen6x.c | 26 ++++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) > > diff --git a/board/boundary/nitrogen6x/nitrogen6x.c b/board/boundary/nitrogen6x/nitrogen6x.c > index c6efafc..9b07846 100644 > --- a/board/boundary/nitrogen6x/nitrogen6x.c > +++ b/board/boundary/nitrogen6x/nitrogen6x.c > @@ -30,6 +30,7 @@ > #include > > DECLARE_GLOBAL_DATA_PTR; > +#define GP_USB_OTG_PWR IMX_GPIO_NR(3, 22) > > #define UART_PAD_CTRL (PAD_CTL_PUS_100K_UP | \ > PAD_CTL_SPEED_MED | PAD_CTL_DSE_40ohm | \ > @@ -179,6 +180,14 @@ iomux_v3_cfg_t const enet_pads2[] = { > MX6_PAD_RGMII_RX_CTL__RGMII_RX_CTL | MUX_PAD_CTRL(ENET_PAD_CTRL), > }; > > +static iomux_v3_cfg_t const misc_pads[] = { > + MX6_PAD_GPIO_1__USBOTG_ID | MUX_PAD_CTRL(WEAK_PULLUP), > + MX6_PAD_KEY_COL4__USBOH3_USBOTG_OC | MUX_PAD_CTRL(WEAK_PULLUP), > + MX6_PAD_EIM_D30__USBOH3_USBH1_OC | MUX_PAD_CTRL(WEAK_PULLUP), > + /* OTG Power enable */ > + MX6_PAD_EIM_D22__GPIO_3_22 | MUX_PAD_CTRL(OUTPUT_40OHM), > +}; > + MX6_PAD_GPIO_1__USBOTG_ID is undefined, so please skip this patch and let me correct. The was defined in a patch by Eric that I missed including. Thanks