All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/2] Convert WaRP7 to DM_USB and DM_SERIAL
@ 2019-04-19 18:34 Pierre-Jean Texier
  2019-04-19 18:34 ` [U-Boot] [PATCH v2 1/2] warp7: Switch to DM Serial Pierre-Jean Texier
  2019-04-19 18:34 ` [U-Boot] [PATCH v2 2/2] warp7: Switch to DM USB Pierre-Jean Texier
  0 siblings, 2 replies; 7+ messages in thread
From: Pierre-Jean Texier @ 2019-04-19 18:34 UTC (permalink / raw)
  To: u-boot

This series convert the WaRP7 to the following DM:
-CONFIG_DM_USB
-CONFIG_DM_SERIAL

Change in v2: 
- Now split in two distinct patches (DM_USB & DM_SERIAL)
 
Pierre-Jean Texier (2):
  warp7: Switch to DM Serial
  warp7: Switch to DM USB

 arch/arm/dts/imx7s-warp.dts  | 5 +++++
 board/warp7/warp7.c          | 6 ------
 configs/warp7_bl33_defconfig | 3 +++
 configs/warp7_defconfig      | 3 +++
 include/configs/warp7.h      | 2 --
 5 files changed, 11 insertions(+), 8 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH v2 1/2] warp7: Switch to DM Serial
  2019-04-19 18:34 [U-Boot] [PATCH v2 0/2] Convert WaRP7 to DM_USB and DM_SERIAL Pierre-Jean Texier
@ 2019-04-19 18:34 ` Pierre-Jean Texier
  2019-04-19 22:52   ` Fabio Estevam
  2019-04-26  9:38   ` [U-Boot] [U-Boot,v2,1/2] " sbabic at denx.de
  2019-04-19 18:34 ` [U-Boot] [PATCH v2 2/2] warp7: Switch to DM USB Pierre-Jean Texier
  1 sibling, 2 replies; 7+ messages in thread
From: Pierre-Jean Texier @ 2019-04-19 18:34 UTC (permalink / raw)
  To: u-boot

This commit switches to DM SERIAL for warp7 and warp7_bl33 defconfigs.

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Joris Offouga <offougajoris@gmail.com>
---

Changes in v2:
    - Split patch
    - Removed CONFIG_MXC_UART_BASE from config file
    
 arch/arm/dts/imx7s-warp.dts  | 4 ++++
 configs/warp7_bl33_defconfig | 2 ++
 configs/warp7_defconfig      | 2 ++
 include/configs/warp7.h      | 2 --
 4 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/arch/arm/dts/imx7s-warp.dts b/arch/arm/dts/imx7s-warp.dts
index d28b7ec..4d87348 100644
--- a/arch/arm/dts/imx7s-warp.dts
+++ b/arch/arm/dts/imx7s-warp.dts
@@ -21,6 +21,10 @@
 		mmc0 = &usdhc3;
 	};
 
+	chosen {
+		stdout-path = &uart1;
+	};
+
 	gpio-keys {
 		compatible = "gpio-keys";
 		pinctrl-0 = <&pinctrl_gpio>;
diff --git a/configs/warp7_bl33_defconfig b/configs/warp7_bl33_defconfig
index 6eaf152..d34f76b 100644
--- a/configs/warp7_bl33_defconfig
+++ b/configs/warp7_bl33_defconfig
@@ -38,6 +38,8 @@ CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_PFUZE100=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
+CONFIG_SPECIFY_CONSOLE_INDEX=y
+CONFIG_DM_SERIAL=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_MXC_USB_OTG_HACTIVE=y
diff --git a/configs/warp7_defconfig b/configs/warp7_defconfig
index 28aa06f..ae424ab 100644
--- a/configs/warp7_defconfig
+++ b/configs/warp7_defconfig
@@ -47,6 +47,8 @@ CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_PFUZE100=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
+CONFIG_SPECIFY_CONSOLE_INDEX=y
+CONFIG_DM_SERIAL=y
 CONFIG_OPTEE=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
diff --git a/include/configs/warp7.h b/include/configs/warp7.h
index 043f286..2bbf691 100644
--- a/include/configs/warp7.h
+++ b/include/configs/warp7.h
@@ -24,8 +24,6 @@
 #endif
 #endif
 
-#define CONFIG_MXC_UART_BASE		UART1_IPS_BASE_ADDR
-
 /* Size of malloc() pool */
 #define CONFIG_SYS_MALLOC_LEN		(35 * SZ_1M)
 
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH v2 2/2] warp7: Switch to DM USB
  2019-04-19 18:34 [U-Boot] [PATCH v2 0/2] Convert WaRP7 to DM_USB and DM_SERIAL Pierre-Jean Texier
  2019-04-19 18:34 ` [U-Boot] [PATCH v2 1/2] warp7: Switch to DM Serial Pierre-Jean Texier
@ 2019-04-19 18:34 ` Pierre-Jean Texier
  2019-04-19 22:52   ` Fabio Estevam
  2019-04-26  9:38   ` [U-Boot] [U-Boot,v2,2/2] " sbabic at denx.de
  1 sibling, 2 replies; 7+ messages in thread
From: Pierre-Jean Texier @ 2019-04-19 18:34 UTC (permalink / raw)
  To: u-boot

This commit switches to DM USB for warp7 and warp7_bl33 defconfigs.

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Joris Offouga <offougajoris@gmail.com>
---

Changes in v2:
    - Split patch
    - Removed unused header file <usb.h>
    
 arch/arm/dts/imx7s-warp.dts  | 1 +
 board/warp7/warp7.c          | 6 ------
 configs/warp7_bl33_defconfig | 1 +
 configs/warp7_defconfig      | 1 +
 4 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/arch/arm/dts/imx7s-warp.dts b/arch/arm/dts/imx7s-warp.dts
index 4d87348..db5ef67 100644
--- a/arch/arm/dts/imx7s-warp.dts
+++ b/arch/arm/dts/imx7s-warp.dts
@@ -19,6 +19,7 @@
 
 	aliases {
 		mmc0 = &usdhc3;
+		usb0 = &usbotg1;
 	};
 
 	chosen {
diff --git a/board/warp7/warp7.c b/board/warp7/warp7.c
index 2882dc9..134a6c9 100644
--- a/board/warp7/warp7.c
+++ b/board/warp7/warp7.c
@@ -14,7 +14,6 @@
 #include <asm/io.h>
 #include <common.h>
 #include <asm/arch/crm_regs.h>
-#include <usb.h>
 #include <netdev.h>
 #include <power/pmic.h>
 #include <power/pfuze3000_pmic.h>
@@ -128,11 +127,6 @@ int checkboard(void)
 	return 0;
 }
 
-int board_usb_phy_mode(int port)
-{
-	return USB_INIT_DEVICE;
-}
-
 int board_late_init(void)
 {
 	struct wdog_regs *wdog = (struct wdog_regs *)WDOG1_BASE_ADDR;
diff --git a/configs/warp7_bl33_defconfig b/configs/warp7_bl33_defconfig
index d34f76b..300dc38 100644
--- a/configs/warp7_bl33_defconfig
+++ b/configs/warp7_bl33_defconfig
@@ -41,6 +41,7 @@ CONFIG_DM_REGULATOR_GPIO=y
 CONFIG_SPECIFY_CONSOLE_INDEX=y
 CONFIG_DM_SERIAL=y
 CONFIG_USB=y
+CONFIG_DM_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_MXC_USB_OTG_HACTIVE=y
 CONFIG_USB_GADGET=y
diff --git a/configs/warp7_defconfig b/configs/warp7_defconfig
index ae424ab..cabddad 100644
--- a/configs/warp7_defconfig
+++ b/configs/warp7_defconfig
@@ -51,6 +51,7 @@ CONFIG_SPECIFY_CONSOLE_INDEX=y
 CONFIG_DM_SERIAL=y
 CONFIG_OPTEE=y
 CONFIG_USB=y
+CONFIG_DM_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_MXC_USB_OTG_HACTIVE=y
 CONFIG_USB_GADGET=y
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH v2 1/2] warp7: Switch to DM Serial
  2019-04-19 18:34 ` [U-Boot] [PATCH v2 1/2] warp7: Switch to DM Serial Pierre-Jean Texier
@ 2019-04-19 22:52   ` Fabio Estevam
  2019-04-26  9:38   ` [U-Boot] [U-Boot,v2,1/2] " sbabic at denx.de
  1 sibling, 0 replies; 7+ messages in thread
From: Fabio Estevam @ 2019-04-19 22:52 UTC (permalink / raw)
  To: u-boot

On Fri, Apr 19, 2019 at 3:35 PM Pierre-Jean Texier <pjtexier@koncepto.io> wrote:
>
> This commit switches to DM SERIAL for warp7 and warp7_bl33 defconfigs.
>
> Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
> Signed-off-by: Joris Offouga <offougajoris@gmail.com>

Reviewed-by: Fabio Estevam <festevam@gmail.com>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH v2 2/2] warp7: Switch to DM USB
  2019-04-19 18:34 ` [U-Boot] [PATCH v2 2/2] warp7: Switch to DM USB Pierre-Jean Texier
@ 2019-04-19 22:52   ` Fabio Estevam
  2019-04-26  9:38   ` [U-Boot] [U-Boot,v2,2/2] " sbabic at denx.de
  1 sibling, 0 replies; 7+ messages in thread
From: Fabio Estevam @ 2019-04-19 22:52 UTC (permalink / raw)
  To: u-boot

On Fri, Apr 19, 2019 at 3:35 PM Pierre-Jean Texier <pjtexier@koncepto.io> wrote:
>
> This commit switches to DM USB for warp7 and warp7_bl33 defconfigs.
>
> Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
> Signed-off-by: Joris Offouga <offougajoris@gmail.com>

Reviewed-by: Fabio Estevam <festevam@gmail.com>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [U-Boot,v2,1/2] warp7: Switch to DM Serial
  2019-04-19 18:34 ` [U-Boot] [PATCH v2 1/2] warp7: Switch to DM Serial Pierre-Jean Texier
  2019-04-19 22:52   ` Fabio Estevam
@ 2019-04-26  9:38   ` sbabic at denx.de
  1 sibling, 0 replies; 7+ messages in thread
From: sbabic at denx.de @ 2019-04-26  9:38 UTC (permalink / raw)
  To: u-boot

> This commit switches to DM SERIAL for warp7 and warp7_bl33 defconfigs.
> Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
> Signed-off-by: Joris Offouga <offougajoris@gmail.com>
> Reviewed-by: Fabio Estevam <festevam@gmail.com>

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [U-Boot,v2,2/2] warp7: Switch to DM USB
  2019-04-19 18:34 ` [U-Boot] [PATCH v2 2/2] warp7: Switch to DM USB Pierre-Jean Texier
  2019-04-19 22:52   ` Fabio Estevam
@ 2019-04-26  9:38   ` sbabic at denx.de
  1 sibling, 0 replies; 7+ messages in thread
From: sbabic at denx.de @ 2019-04-26  9:38 UTC (permalink / raw)
  To: u-boot

> This commit switches to DM USB for warp7 and warp7_bl33 defconfigs.
> Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
> Signed-off-by: Joris Offouga <offougajoris@gmail.com>
> Reviewed-by: Fabio Estevam <festevam@gmail.com>

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-04-26  9:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-19 18:34 [U-Boot] [PATCH v2 0/2] Convert WaRP7 to DM_USB and DM_SERIAL Pierre-Jean Texier
2019-04-19 18:34 ` [U-Boot] [PATCH v2 1/2] warp7: Switch to DM Serial Pierre-Jean Texier
2019-04-19 22:52   ` Fabio Estevam
2019-04-26  9:38   ` [U-Boot] [U-Boot,v2,1/2] " sbabic at denx.de
2019-04-19 18:34 ` [U-Boot] [PATCH v2 2/2] warp7: Switch to DM USB Pierre-Jean Texier
2019-04-19 22:52   ` Fabio Estevam
2019-04-26  9:38   ` [U-Boot] [U-Boot,v2,2/2] " sbabic at denx.de

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.