[U-Boot] No power on USB host of IMX25 PDK
Fabio Estevam
festevam at gmail.com
Fri Nov 4 13:05:58 CET 2011
2011/11/4 Hugo Holgersson <hugoh at student.chalmers.se>:
> 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_IOPADMUX_BASE;
> +
> + /* USBH2_PWR */
> + writel(gpio_mux_mode6, &muxctl->pad_d9);
> + //writel(gpio_mux_mode5, &muxctl->pad_d9);
> + //gpio_direction_output(MXC_GPIO_PORT_TO_NUM(4, 11), 1); /* Try keep power on. */
> +
> + /* USBH2_OC */
> + writel(gpio_mux_mode6, &muxctl->pad_d8);
> +
> + /* USB_BT_CS low selects USB Host */
> + writel(gpio_mux_mode5, &muxctl->pad_a21); /* GPIO2[7] */
> + gpio_direction_output(MXC_GPIO_PORT_TO_NUM(2, 7), 0); /* Chip select 0*/
> +
Can you try to place the USBH2 IOMUX inside board_early_init_f instead?
Regards,
Fabio Estevam
More information about the U-Boot
mailing list