Re: [U-Boot] No power on USB host of IMX25 PDK

2011-11-07 Thread Fabio Estevam
On Mon, Nov 7, 2011 at 8:09 AM, Hugo Holgersson wrote: > #define USBCTRL_OTGBASE_OFFSET  0x600 > should maybe be called just USB_CTRL_OFFSET. Also, please be aware of this documentation error about the USB base register that is discussed here: http://www.spinics.net/lists/arm-kernel/msg105440.htm

Re: [U-Boot] No power on USB host of IMX25 PDK

2011-11-07 Thread Hugo Holgersson
On 11/04/2011 05:24 PM, Fabio Estevam wrote: > On Fri, Nov 4, 2011 at 2:06 PM, Hugo Holgersson > wrote: >> Thanks for the input! >> >> Putting the mux code to generic.c, as it was done for the UART's pins, did >> not change anything... >> >> I write MXC_EHCI_MODE_SERIAL to&ehci->portsc. Exactly

Re: [U-Boot] No power on USB host of IMX25 PDK

2011-11-04 Thread Fabio Estevam
On Fri, Nov 4, 2011 at 2:06 PM, Hugo Holgersson wrote: > Thanks for the input! > > Putting the mux code to generic.c, as it was done for the UART's pins, did > not change anything... > > I write MXC_EHCI_MODE_SERIAL to &ehci->portsc. Exactly the same behavior. > Same log. > > But the question (1

Re: [U-Boot] No power on USB host of IMX25 PDK

2011-11-04 Thread Hugo Holgersson
Thanks for the input! Putting the mux code to generic.c, as it was done for the UART's pins, did not change anything... I write MXC_EHCI_MODE_SERIAL to &ehci->portsc. Exactly the same behavior. Same log. But the question (1) remains; which is the register (the address) of where mxc_set_usbcon

Re: [U-Boot] No power on USB host of IMX25 PDK

2011-11-04 Thread Fabio Estevam
2011/11/4 Hugo Holgersson : > diff --git a/drivers/usb/host/ehci-mxc.c b/drivers/usb/host/ehci-mxc.c > index a0cfbb7..54b90c8 100644 > --- a/drivers/usb/host/ehci-mxc.c > +++ b/drivers/usb/host/ehci-mxc.c > @@ -102,7 +102,8 @@ static int mxc_set_usbcontrol(int port, unsigned int > flags) >      

Re: [U-Boot] No power on USB host of IMX25 PDK

2011-11-04 Thread Fabio Estevam
2011/11/4 Hugo Holgersson : >  int board_init(void) >  { > +       struct iomuxc_mux_ctl *muxctl; > +       struct iomuxc_pad_ctl *padctl; > +       u32 gpio_mux_mode5 = MX25_PIN_MUX_MODE(5); > +       u32 gpio_mux_mode6 = MX25_PIN_MUX_MODE(6); > + > +       muxctl = (struct iomuxc_mux_ctl *)IMX_I

Re: [U-Boot] No power on USB host of IMX25 PDK

2011-11-04 Thread Fabio Estevam
2011/11/4 Fabio Estevam : > Hi Hugo, > > 2011/11/4 Hugo Holgersson : > >> 2) Do I need to set the mux's SW_PAD_CTL for the D9 pins? >> 3) Are there any pins I have forgot to mux? > > I looked at the IOMUX configuration for USBH2 on the Freescale Linux > BSP and the code is below: Ops, I see that y

Re: [U-Boot] No power on USB host of IMX25 PDK

2011-11-04 Thread Fabio Estevam
Hi Hugo, 2011/11/4 Hugo Holgersson : > 2) Do I need to set the mux's SW_PAD_CTL for the D9 pins? > 3) Are there any pins I have forgot to mux? I looked at the IOMUX configuration for USBH2 on the Freescale Linux BSP and the code is below: int gpio_usbh2_active(void) { if (mxc_request_io