* [U-Boot] [PATCH 1/2] exynos5250: usb: Fix VBus gpio numbers for ehci and xhci controllers
2014-01-03 10:40 [U-Boot] [PATCH 1/2] exynos5250: usb: Fix VBus gpio numbers for ehci and xhci controllers Vivek Gautam
@ 2014-01-03 10:39 ` Vivek Gautam
2014-01-03 10:40 ` [U-Boot] [PATCH 2/2] smdk5250: Remove 'board_usb_vbus_init()' function Vivek Gautam
` (2 subsequent siblings)
3 siblings, 0 replies; 10+ messages in thread
From: Vivek Gautam @ 2014-01-03 10:39 UTC (permalink / raw)
To: u-boot
On Fri, Jan 3, 2014 at 4:10 PM, Vivek Gautam <gautam.vivek@samsung.com> wrote:
> The gpio_*() apis require the exact gpio line number to deduce
> the gpio bank and the gpio pin addresses.
> So fix the gpio number for VBUS used for EHCI ports as well as
> XHCI ports on exynos5250 boards.
>
> Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
> Cc: Julius Werner <jwerner@chromium.org>
> Cc: Minkyu Kang <mk7.kang@samsung.com>
> Cc: Marek Vasut <marex@denx.de>
> ---
Based on u-boot-samsung 'master' branch.
Tested on smkd5250 and snow board for EHCI and XHCI ports.
> board/samsung/dts/exynos5250-smdk5250.dts | 2 +-
> board/samsung/dts/exynos5250-snow.dts | 4 ++--
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/board/samsung/dts/exynos5250-smdk5250.dts b/board/samsung/dts/exynos5250-smdk5250.dts
> index c4ed346..9020382 100644
> --- a/board/samsung/dts/exynos5250-smdk5250.dts
> +++ b/board/samsung/dts/exynos5250-smdk5250.dts
> @@ -146,6 +146,6 @@
> };
>
> ehci at 12110000 {
> - samsung,vbus-gpio = <&gpio 0xbe 0>; /* X26 */
> + samsung,vbus-gpio = <&gpio 0x316 0>; /* X26 */
> };
> };
> diff --git a/board/samsung/dts/exynos5250-snow.dts b/board/samsung/dts/exynos5250-snow.dts
> index 091cdb9..9b48a0c 100644
> --- a/board/samsung/dts/exynos5250-snow.dts
> +++ b/board/samsung/dts/exynos5250-snow.dts
> @@ -110,11 +110,11 @@
> };
>
> ehci at 12110000 {
> - samsung,vbus-gpio = <&gpio 0xb1 0>; /* X11 */
> + samsung,vbus-gpio = <&gpio 0x309 0>; /* X11 */
> };
>
> xhci at 12000000 {
> - samsung,vbus-gpio = <&gpio 0xbf 0>; /* X27 */
> + samsung,vbus-gpio = <&gpio 0x317 0>; /* X27 */
> };
>
> tmu at 10060000 {
> --
> 1.7.10.4
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
--
Best Regards
Vivek Gautam
Samsung R&D Institute, Bangalore
India
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot] [PATCH 2/2] smdk5250: Remove 'board_usb_vbus_init()' function
2014-01-03 10:40 ` [U-Boot] [PATCH 2/2] smdk5250: Remove 'board_usb_vbus_init()' function Vivek Gautam
@ 2014-01-03 10:39 ` Vivek Gautam
2014-01-04 7:14 ` Marek Vasut
2014-02-03 4:45 ` Minkyu Kang
2 siblings, 0 replies; 10+ messages in thread
From: Vivek Gautam @ 2014-01-03 10:39 UTC (permalink / raw)
To: u-boot
On Fri, Jan 3, 2014 at 4:10 PM, Vivek Gautam <gautam.vivek@samsung.com> wrote:
> Previously as a part of moving the VBUS gpio support to device tree
> following patch removed this and added relevant support in driver:
> 4a271cb exynos: usb: Switch USB VBUS GPIOs to be device tree configured
>
> Recent changes for common board file migration for exynos platform
> added it again. So removing it now.
>
> Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
> Cc: Julius Werner <jwerner@chromium.org>
> Cc: Minkyu Kang <mk7.kang@samsung.com>
> Cc: Marek Vasut <marex@denx.de>
> ---
Based on u-boot-samsung 'master' branch.
> board/samsung/smdk5250/smdk5250.c | 19 -------------------
> 1 file changed, 19 deletions(-)
>
> diff --git a/board/samsung/smdk5250/smdk5250.c b/board/samsung/smdk5250/smdk5250.c
> index 943c29a..a69f73d 100644
> --- a/board/samsung/smdk5250/smdk5250.c
> +++ b/board/samsung/smdk5250/smdk5250.c
> @@ -26,22 +26,6 @@
>
> DECLARE_GLOBAL_DATA_PTR;
>
> -#ifdef CONFIG_USB_EHCI_EXYNOS
> -static int board_usb_vbus_init(void)
> -{
> - struct exynos5_gpio_part1 *gpio1 = (struct exynos5_gpio_part1 *)
> - samsung_get_base_gpio_part1();
> -
> - /* Enable VBUS power switch */
> - s5p_gpio_direction_output(&gpio1->x2, 6, 1);
> -
> - /* VBUS turn ON time */
> - mdelay(3);
> -
> - return 0;
> -}
> -#endif
> -
> #ifdef CONFIG_SOUND_MAX98095
> static void board_enable_audio_codec(void)
> {
> @@ -56,9 +40,6 @@ static void board_enable_audio_codec(void)
>
> int exynos_init(void)
> {
> -#ifdef CONFIG_USB_EHCI_EXYNOS
> - board_usb_vbus_init();
> -#endif
> #ifdef CONFIG_SOUND_MAX98095
> board_enable_audio_codec();
> #endif
> --
> 1.7.10.4
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
--
Best Regards
Vivek Gautam
Samsung R&D Institute, Bangalore
India
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot] [PATCH 1/2] exynos5250: usb: Fix VBus gpio numbers for ehci and xhci controllers
@ 2014-01-03 10:40 Vivek Gautam
2014-01-03 10:39 ` Vivek Gautam
` (3 more replies)
0 siblings, 4 replies; 10+ messages in thread
From: Vivek Gautam @ 2014-01-03 10:40 UTC (permalink / raw)
To: u-boot
The gpio_*() apis require the exact gpio line number to deduce
the gpio bank and the gpio pin addresses.
So fix the gpio number for VBUS used for EHCI ports as well as
XHCI ports on exynos5250 boards.
Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
Cc: Julius Werner <jwerner@chromium.org>
Cc: Minkyu Kang <mk7.kang@samsung.com>
Cc: Marek Vasut <marex@denx.de>
---
board/samsung/dts/exynos5250-smdk5250.dts | 2 +-
board/samsung/dts/exynos5250-snow.dts | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/board/samsung/dts/exynos5250-smdk5250.dts b/board/samsung/dts/exynos5250-smdk5250.dts
index c4ed346..9020382 100644
--- a/board/samsung/dts/exynos5250-smdk5250.dts
+++ b/board/samsung/dts/exynos5250-smdk5250.dts
@@ -146,6 +146,6 @@
};
ehci at 12110000 {
- samsung,vbus-gpio = <&gpio 0xbe 0>; /* X26 */
+ samsung,vbus-gpio = <&gpio 0x316 0>; /* X26 */
};
};
diff --git a/board/samsung/dts/exynos5250-snow.dts b/board/samsung/dts/exynos5250-snow.dts
index 091cdb9..9b48a0c 100644
--- a/board/samsung/dts/exynos5250-snow.dts
+++ b/board/samsung/dts/exynos5250-snow.dts
@@ -110,11 +110,11 @@
};
ehci at 12110000 {
- samsung,vbus-gpio = <&gpio 0xb1 0>; /* X11 */
+ samsung,vbus-gpio = <&gpio 0x309 0>; /* X11 */
};
xhci at 12000000 {
- samsung,vbus-gpio = <&gpio 0xbf 0>; /* X27 */
+ samsung,vbus-gpio = <&gpio 0x317 0>; /* X27 */
};
tmu at 10060000 {
--
1.7.10.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [U-Boot] [PATCH 2/2] smdk5250: Remove 'board_usb_vbus_init()' function
2014-01-03 10:40 [U-Boot] [PATCH 1/2] exynos5250: usb: Fix VBus gpio numbers for ehci and xhci controllers Vivek Gautam
2014-01-03 10:39 ` Vivek Gautam
@ 2014-01-03 10:40 ` Vivek Gautam
2014-01-03 10:39 ` Vivek Gautam
` (2 more replies)
2014-01-04 7:14 ` [U-Boot] [PATCH 1/2] exynos5250: usb: Fix VBus gpio numbers for ehci and xhci controllers Marek Vasut
2014-02-03 4:45 ` Minkyu Kang
3 siblings, 3 replies; 10+ messages in thread
From: Vivek Gautam @ 2014-01-03 10:40 UTC (permalink / raw)
To: u-boot
Previously as a part of moving the VBUS gpio support to device tree
following patch removed this and added relevant support in driver:
4a271cb exynos: usb: Switch USB VBUS GPIOs to be device tree configured
Recent changes for common board file migration for exynos platform
added it again. So removing it now.
Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
Cc: Julius Werner <jwerner@chromium.org>
Cc: Minkyu Kang <mk7.kang@samsung.com>
Cc: Marek Vasut <marex@denx.de>
---
board/samsung/smdk5250/smdk5250.c | 19 -------------------
1 file changed, 19 deletions(-)
diff --git a/board/samsung/smdk5250/smdk5250.c b/board/samsung/smdk5250/smdk5250.c
index 943c29a..a69f73d 100644
--- a/board/samsung/smdk5250/smdk5250.c
+++ b/board/samsung/smdk5250/smdk5250.c
@@ -26,22 +26,6 @@
DECLARE_GLOBAL_DATA_PTR;
-#ifdef CONFIG_USB_EHCI_EXYNOS
-static int board_usb_vbus_init(void)
-{
- struct exynos5_gpio_part1 *gpio1 = (struct exynos5_gpio_part1 *)
- samsung_get_base_gpio_part1();
-
- /* Enable VBUS power switch */
- s5p_gpio_direction_output(&gpio1->x2, 6, 1);
-
- /* VBUS turn ON time */
- mdelay(3);
-
- return 0;
-}
-#endif
-
#ifdef CONFIG_SOUND_MAX98095
static void board_enable_audio_codec(void)
{
@@ -56,9 +40,6 @@ static void board_enable_audio_codec(void)
int exynos_init(void)
{
-#ifdef CONFIG_USB_EHCI_EXYNOS
- board_usb_vbus_init();
-#endif
#ifdef CONFIG_SOUND_MAX98095
board_enable_audio_codec();
#endif
--
1.7.10.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [U-Boot] [PATCH 1/2] exynos5250: usb: Fix VBus gpio numbers for ehci and xhci controllers
2014-01-03 10:40 [U-Boot] [PATCH 1/2] exynos5250: usb: Fix VBus gpio numbers for ehci and xhci controllers Vivek Gautam
2014-01-03 10:39 ` Vivek Gautam
2014-01-03 10:40 ` [U-Boot] [PATCH 2/2] smdk5250: Remove 'board_usb_vbus_init()' function Vivek Gautam
@ 2014-01-04 7:14 ` Marek Vasut
2014-01-06 1:43 ` Minkyu Kang
2014-02-03 4:45 ` Minkyu Kang
3 siblings, 1 reply; 10+ messages in thread
From: Marek Vasut @ 2014-01-04 7:14 UTC (permalink / raw)
To: u-boot
On Friday, January 03, 2014 at 11:40:52 AM, Vivek Gautam wrote:
> The gpio_*() apis require the exact gpio line number to deduce
> the gpio bank and the gpio pin addresses.
> So fix the gpio number for VBUS used for EHCI ports as well as
> XHCI ports on exynos5250 boards.
>
> Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
> Cc: Julius Werner <jwerner@chromium.org>
> Cc: Minkyu Kang <mk7.kang@samsung.com>
> Cc: Marek Vasut <marex@denx.de>
Reiewed-by: Marek Vasut <marex@denx.de>
Minkyu, can you please pick this?
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot] [PATCH 2/2] smdk5250: Remove 'board_usb_vbus_init()' function
2014-01-03 10:40 ` [U-Boot] [PATCH 2/2] smdk5250: Remove 'board_usb_vbus_init()' function Vivek Gautam
2014-01-03 10:39 ` Vivek Gautam
@ 2014-01-04 7:14 ` Marek Vasut
2014-01-06 1:43 ` Minkyu Kang
2014-02-03 4:45 ` Minkyu Kang
2 siblings, 1 reply; 10+ messages in thread
From: Marek Vasut @ 2014-01-04 7:14 UTC (permalink / raw)
To: u-boot
On Friday, January 03, 2014 at 11:40:53 AM, Vivek Gautam wrote:
> Previously as a part of moving the VBUS gpio support to device tree
> following patch removed this and added relevant support in driver:
> 4a271cb exynos: usb: Switch USB VBUS GPIOs to be device tree configured
>
> Recent changes for common board file migration for exynos platform
> added it again. So removing it now.
>
> Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
> Cc: Julius Werner <jwerner@chromium.org>
> Cc: Minkyu Kang <mk7.kang@samsung.com>
> Cc: Marek Vasut <marex@denx.de>
> ---
> board/samsung/smdk5250/smdk5250.c | 19 -------------------
> 1 file changed, 19 deletions(-)
Reiewed-by: Marek Vasut <marex@denx.de>
Minkyu, can you please pick this?
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot] [PATCH 2/2] smdk5250: Remove 'board_usb_vbus_init()' function
2014-01-04 7:14 ` Marek Vasut
@ 2014-01-06 1:43 ` Minkyu Kang
0 siblings, 0 replies; 10+ messages in thread
From: Minkyu Kang @ 2014-01-06 1:43 UTC (permalink / raw)
To: u-boot
On 04/01/14 16:14, Marek Vasut wrote:
> On Friday, January 03, 2014 at 11:40:53 AM, Vivek Gautam wrote:
>> Previously as a part of moving the VBUS gpio support to device tree
>> following patch removed this and added relevant support in driver:
>> 4a271cb exynos: usb: Switch USB VBUS GPIOs to be device tree configured
>>
>> Recent changes for common board file migration for exynos platform
>> added it again. So removing it now.
>>
>> Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
>> Cc: Julius Werner <jwerner@chromium.org>
>> Cc: Minkyu Kang <mk7.kang@samsung.com>
>> Cc: Marek Vasut <marex@denx.de>
>> ---
>> board/samsung/smdk5250/smdk5250.c | 19 -------------------
>> 1 file changed, 19 deletions(-)
>
> Reiewed-by: Marek Vasut <marex@denx.de>
>
> Minkyu, can you please pick this?
OK.
>
> Best regards,
> Marek Vasut
>
Thanks,
Minkyu Kang.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot] [PATCH 1/2] exynos5250: usb: Fix VBus gpio numbers for ehci and xhci controllers
2014-01-04 7:14 ` [U-Boot] [PATCH 1/2] exynos5250: usb: Fix VBus gpio numbers for ehci and xhci controllers Marek Vasut
@ 2014-01-06 1:43 ` Minkyu Kang
0 siblings, 0 replies; 10+ messages in thread
From: Minkyu Kang @ 2014-01-06 1:43 UTC (permalink / raw)
To: u-boot
On 04/01/14 16:14, Marek Vasut wrote:
> On Friday, January 03, 2014 at 11:40:52 AM, Vivek Gautam wrote:
>> The gpio_*() apis require the exact gpio line number to deduce
>> the gpio bank and the gpio pin addresses.
>> So fix the gpio number for VBUS used for EHCI ports as well as
>> XHCI ports on exynos5250 boards.
>>
>> Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
>> Cc: Julius Werner <jwerner@chromium.org>
>> Cc: Minkyu Kang <mk7.kang@samsung.com>
>> Cc: Marek Vasut <marex@denx.de>
>
> Reiewed-by: Marek Vasut <marex@denx.de>
>
> Minkyu, can you please pick this?
OK.
>
> Best regards,
> Marek Vasut
>
Thanks,
Minkyu Kang.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot] [PATCH 1/2] exynos5250: usb: Fix VBus gpio numbers for ehci and xhci controllers
2014-01-03 10:40 [U-Boot] [PATCH 1/2] exynos5250: usb: Fix VBus gpio numbers for ehci and xhci controllers Vivek Gautam
` (2 preceding siblings ...)
2014-01-04 7:14 ` [U-Boot] [PATCH 1/2] exynos5250: usb: Fix VBus gpio numbers for ehci and xhci controllers Marek Vasut
@ 2014-02-03 4:45 ` Minkyu Kang
3 siblings, 0 replies; 10+ messages in thread
From: Minkyu Kang @ 2014-02-03 4:45 UTC (permalink / raw)
To: u-boot
On 03/01/14 19:40, Vivek Gautam wrote:
> The gpio_*() apis require the exact gpio line number to deduce
> the gpio bank and the gpio pin addresses.
> So fix the gpio number for VBUS used for EHCI ports as well as
> XHCI ports on exynos5250 boards.
>
> Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
> Cc: Julius Werner <jwerner@chromium.org>
> Cc: Minkyu Kang <mk7.kang@samsung.com>
> Cc: Marek Vasut <marex@denx.de>
> ---
> board/samsung/dts/exynos5250-smdk5250.dts | 2 +-
> board/samsung/dts/exynos5250-snow.dts | 4 ++--
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
applied to u-boot-samsung.
Thanks,
Minkyu Kang.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [U-Boot] [PATCH 2/2] smdk5250: Remove 'board_usb_vbus_init()' function
2014-01-03 10:40 ` [U-Boot] [PATCH 2/2] smdk5250: Remove 'board_usb_vbus_init()' function Vivek Gautam
2014-01-03 10:39 ` Vivek Gautam
2014-01-04 7:14 ` Marek Vasut
@ 2014-02-03 4:45 ` Minkyu Kang
2 siblings, 0 replies; 10+ messages in thread
From: Minkyu Kang @ 2014-02-03 4:45 UTC (permalink / raw)
To: u-boot
On 03/01/14 19:40, Vivek Gautam wrote:
> Previously as a part of moving the VBUS gpio support to device tree
> following patch removed this and added relevant support in driver:
> 4a271cb exynos: usb: Switch USB VBUS GPIOs to be device tree configured
>
> Recent changes for common board file migration for exynos platform
> added it again. So removing it now.
>
> Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
> Cc: Julius Werner <jwerner@chromium.org>
> Cc: Minkyu Kang <mk7.kang@samsung.com>
> Cc: Marek Vasut <marex@denx.de>
> ---
> board/samsung/smdk5250/smdk5250.c | 19 -------------------
> 1 file changed, 19 deletions(-)
>
applied to u-boot-samsung.
Thanks,
Minkyu Kang.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2014-02-03 4:45 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-03 10:40 [U-Boot] [PATCH 1/2] exynos5250: usb: Fix VBus gpio numbers for ehci and xhci controllers Vivek Gautam
2014-01-03 10:39 ` Vivek Gautam
2014-01-03 10:40 ` [U-Boot] [PATCH 2/2] smdk5250: Remove 'board_usb_vbus_init()' function Vivek Gautam
2014-01-03 10:39 ` Vivek Gautam
2014-01-04 7:14 ` Marek Vasut
2014-01-06 1:43 ` Minkyu Kang
2014-02-03 4:45 ` Minkyu Kang
2014-01-04 7:14 ` [U-Boot] [PATCH 1/2] exynos5250: usb: Fix VBus gpio numbers for ehci and xhci controllers Marek Vasut
2014-01-06 1:43 ` Minkyu Kang
2014-02-03 4:45 ` Minkyu Kang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox