Patchwork [U-Boot,6/7] arm:trats: Support for USB UDC driver at TRATS board.

login
register
mail settings
Submitter Łukasz Majewski
Date July 3, 2012, 9:38 a.m.
Message ID <1341308291-14663-7-git-send-email-l.majewski@samsung.com>
Download mbox | patch
Permalink /patch/168752/
State Changes Requested
Headers show

Comments

Łukasz Majewski - July 3, 2012, 9:38 a.m.
Support for USB UDC driver at trats board.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Minkyu Kang <mk7.kang@samsung.com>
---
 board/samsung/trats/trats.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
Minkyu Kang - July 4, 2012, 12:20 a.m.
Dear Lukasz,

On 3 July 2012 18:38, Lukasz Majewski <l.majewski@samsung.com> wrote:
> Support for USB UDC driver at trats board.
>
> Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> Cc: Marek Vasut <marex@denx.de>
> Cc: Minkyu Kang <mk7.kang@samsung.com>
> ---
>  board/samsung/trats/trats.c |    9 +++++++++
>  1 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/board/samsung/trats/trats.c b/board/samsung/trats/trats.c
> index a95a516..2f3a531 100644
> --- a/board/samsung/trats/trats.c
> +++ b/board/samsung/trats/trats.c
> @@ -59,6 +59,8 @@ static int hwrevision(int rev)
>         return (board_rev & 0xf) == rev;
>  }
>
> +struct s3c_plat_otg_data s5pc210_otg_data;
> +
>  int board_init(void)
>  {
>         gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
> @@ -259,6 +261,13 @@ struct s3c_plat_otg_data s5pc210_otg_data = {
>         .usb_phy_ctrl   = EXYNOS4_USBPHY_CONTROL,
>         .usb_flags      = PHY0_SLEEP,
>  };
> +
> +void board_usb_init(void)
> +{
> +       puts("USB_udc_probe\n");

is it useful information? or debug message?

> +       s3c_udc_probe(&s5pc210_otg_data);
> +
> +}
>  #endif
>

Thanks.
Minkyu Kang.
Łukasz Majewski - July 4, 2012, 9:33 a.m.
Hi Minkyu,

> Dear Lukasz,
> 
> On 3 July 2012 18:38, Lukasz Majewski <l.majewski@samsung.com> wrote:
> > Support for USB UDC driver at trats board.
> >
> > Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
> > Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> > Cc: Marek Vasut <marex@denx.de>
> > Cc: Minkyu Kang <mk7.kang@samsung.com>
> > ---
> >  board/samsung/trats/trats.c |    9 +++++++++
> >  1 files changed, 9 insertions(+), 0 deletions(-)
> >
> > diff --git a/board/samsung/trats/trats.c
> > b/board/samsung/trats/trats.c index a95a516..2f3a531 100644
> > --- a/board/samsung/trats/trats.c
> > +++ b/board/samsung/trats/trats.c
> > @@ -59,6 +59,8 @@ static int hwrevision(int rev)
> >         return (board_rev & 0xf) == rev;
> >  }
> >
> > +struct s3c_plat_otg_data s5pc210_otg_data;
> > +
> >  int board_init(void)
> >  {
> >         gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
> > @@ -259,6 +261,13 @@ struct s3c_plat_otg_data s5pc210_otg_data = {
> >         .usb_phy_ctrl   = EXYNOS4_USBPHY_CONTROL,
> >         .usb_flags      = PHY0_SLEEP,
> >  };
> > +
> > +void board_usb_init(void)
> > +{
> > +       puts("USB_udc_probe\n");
> 
> is it useful information? or debug message?

Good point. I will change it to debug.
> 
> > +       s3c_udc_probe(&s5pc210_otg_data);
> > +
> > +}
> >  #endif
> >
> 
> Thanks.
> Minkyu Kang.

Patch

diff --git a/board/samsung/trats/trats.c b/board/samsung/trats/trats.c
index a95a516..2f3a531 100644
--- a/board/samsung/trats/trats.c
+++ b/board/samsung/trats/trats.c
@@ -59,6 +59,8 @@  static int hwrevision(int rev)
 	return (board_rev & 0xf) == rev;
 }
 
+struct s3c_plat_otg_data s5pc210_otg_data;
+
 int board_init(void)
 {
 	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
@@ -259,6 +261,13 @@  struct s3c_plat_otg_data s5pc210_otg_data = {
 	.usb_phy_ctrl	= EXYNOS4_USBPHY_CONTROL,
 	.usb_flags	= PHY0_SLEEP,
 };
+
+void board_usb_init(void)
+{
+	puts("USB_udc_probe\n");
+	s3c_udc_probe(&s5pc210_otg_data);
+
+}
 #endif
 
 static void pmic_reset(void)