[U-Boot] [PATCH] cm-t35: add USB host support

Marek Vasut marex at denx.de
Wed Nov 28 23:36:30 CET 2012


Dear Nikita Kiryanov,

[...]

> +	twl4030_i2c_read_u8(TWL4030_CHIP_GPIO, &val,
> +						TWL4030_BASEADD_GPIO + 0x03);
> +	val |= 0xC0;

What are these magic values here please?

> +	/* Set GPIO6 and GPIO7 of TPS65930 as output */
> +	twl4030_i2c_write_u8(TWL4030_CHIP_GPIO, val,
> +						TWL4030_BASEADD_GPIO + 0x03);
> +	/* Take both PHYs out of reset */
> +	twl4030_i2c_write_u8(TWL4030_CHIP_GPIO, 0xC0,
> +						TWL4030_BASEADD_GPIO + 0x0C);
> +	udelay(1);
> +
> +	return omap_ehci_hcd_init(&usbhs_bdata);
[...]

Best regards,
Marek Vasut


More information about the U-Boot mailing list