[U-Boot] [PATCH V3 01/20] Add functions for use with i.mx6 otg udc

Marek Vasut
2013-08-02T10:48:51Z

Dear Troy Kisky,

> Add functions for use with mx6 soc
> void otg_enable(void);
> void reset_usb_phy1(void);
>
> Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
> ---
> arch/arm/cpu/armv7/mx6/soc.c | 47
> +++++++++++++++++++++++++++++++ arch/arm/include/asm/arch-mx6/crm_regs.h
> | 3 ++
> arch/arm/include/asm/arch-mx6/imx-regs.h | 17 +++++++++++
> arch/arm/include/asm/arch-mx6/sys_proto.h | 4 +++
> 4 files changed, 71 insertions(+)

[...]

> diff --git a/arch/arm/include/asm/arch-mx6/imx-regs.h
> b/arch/arm/include/asm/arch-mx6/imx-regs.h index 5d6bccb..3eed4d8 100644
> --- a/arch/arm/include/asm/arch-mx6/imx-regs.h
> +++ b/arch/arm/include/asm/arch-mx6/imx-regs.h
> @@ -419,6 +419,23 @@ struct cspi_regs {
> ECSPI5_BASE_ADDR
> #endif
>
> +struct set_clr_tog {
> + u32 val;
> + u32 set;
> + u32 clr;
> + u32 tog;
> +};
> +
> +struct usbphy {
> + struct set_clr_tog pwd;
> + struct set_clr_tog tx;
> + struct set_clr_tog rx;
> + struct set_clr_tog ctrl;
> +};

Maybe you want to keep the naming here consistent with MX28 and MX6?

See arch/arm/include/asm/imx-common/regs-common.h

[...]

Best regards,
Marek Vasut