[U-Boot] [PATCH 19/22] sunxi: musb: Move musb config and platdata to the sunxi-musb glue

Ian Campbell
2015-06-19T07:43:41Z

On Wed, 2015-06-17 at 21:34 +0200, Hans de Goede wrote:
> Move the musb config and platdata to the sunxi-musb glue, which is where
> it really belongs. This is preparation patch for adding device-model
> support for the sunxi-musb-host code.
>
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> ---
> arch/arm/include/asm/arch-sunxi/usb_phy.h | 7 +++++++
> board/sunxi/board.c | 28 ++-----------------------
> drivers/usb/musb-new/sunxi.c | 35 ++++++++++++++++++++++---------
> 3 files changed, 34 insertions(+), 36 deletions(-)
>
> diff --git a/arch/arm/include/asm/arch-sunxi/usb_phy.h b/arch/arm/include/asm/arch-sunxi/usb_phy.h
> index 5a9cacb..17d31b8 100644
> --- a/arch/arm/include/asm/arch-sunxi/usb_phy.h
> +++ b/arch/arm/include/asm/arch-sunxi/usb_phy.h
> @@ -19,3 +19,10 @@ void sunxi_usb_phy_power_off(int index);
> int sunxi_usb_phy_vbus_detect(int index);
> int sunxi_usb_phy_id_detect(int index);
> void sunxi_usb_phy_enable_squelch_detect(int index, int enable);
> +
> +/* Not really phy related, but we have to declare this somewhere ... */

I guess arch/arm/include/asm/arch-sunxi/usbc.h isn't any better?

With it here or there:

Acked-by: Ian Campbell <ijc@hellion.org.uk>

> +#if defined(CONFIG_MUSB_HOST) || defined(CONFIG_MUSB_GADGET)
> +void sunxi_musb_board_init(void);
> +#else
> +#define sunxi_musb_board_init()
> +#endif

Ian.