Skip to contentSkip to conversation

warp7: defconfig: Switch to DM for USB and SERIAL

PATCH New Pierre-Jean Texier 3 participants 4 messages Apr 13, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 warp7: defconfig: Switch to DM for USB and SERIAL

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

---
 arch/arm/dts/imx7s-warp.dts  | 5 +++++
 board/warp7/warp7.c          | 5 -----
 configs/warp7_bl33_defconfig | 2 ++
 configs/warp7_defconfig      | 2 ++
 4 files changed, 9 insertions(+), 5 deletions(-)
arch/arm/dts/imx7s-warp.dts +5 -0
index d28b7ec..db5ef67 100644
@@ -19,6 +19,11 @@
 
 	aliases {
 		mmc0 = &usdhc3;
+		usb0 = &usbotg1;
+	};
+
+	chosen {
+		stdout-path = &uart1;
 	};
 
 	gpio-keys {
board/warp7/warp7.c +0 -5
index 2882dc9..797e09c 100644
@@ -128,11 +128,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;
configs/warp7_bl33_defconfig +2 -0
index 6eaf152..4308c64 100644
@@ -38,7 +38,9 @@ CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_PFUZE100=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=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
configs/warp7_defconfig +2 -0
index 28aa06f..3f7863b 100644
@@ -47,8 +47,10 @@ CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_PFUZE100=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=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
Signature · 1 line
2.7.4
reviewer
#1 lore raw

PATCH 1/1 warp7: defconfig: Switch to DM for USB and SERIAL

Hi Pierre-Jean,

board/warp7/warp7.c int checkboard(void) · line 135

Quoted 6 lines · Pierre-Jean Texier
board/warp7/warp7.c +0 -5
-int board_usb_phy_mode(int port)
-{
-       return USB_INIT_DEVICE;
-}
-

It seems that #include <usb.h> can also be removed now.

I still see uart related code in the warp7.c board file.

Can they also be removed?

Could #define CONFIG_MXC_UART_BASE UART1_IPS_BASE_ADDR be removed from include/configs/warp7.h?

reviewer
#2 lore raw

PATCH 1/1 warp7: defconfig: Switch to DM for USB and SERIAL

Quoted 8 lines · Fabio Estevam

It seems that #include <usb.h> can also be removed now.

I still see uart related code in the warp7.c board file.

Can they also be removed?

Could #define CONFIG_MXC_UART_BASE UART1_IPS_BASE_ADDR be removed from include/configs/warp7.h?

Also, when sending a v2, please split this patch in two: one for serial and another one for USB.

Thanks

#3 lore raw

PATCH 1/1 warp7: defconfig: Switch to DM for USB and SERIAL

In reply to Fabio Estevam

Hi Fabio,

Le 13/04/2019 à 18:31, Fabio Estevam a écrit :

Quoted 12 lines

Hi Pierre-Jean,

board/warp7/warp7.c int checkboard(void) · line 135

Quoted 5 lines · Pierre-Jean Texier
board/warp7/warp7.c +0 -5
-int board_usb_phy_mode(int port)
-{
-       return USB_INIT_DEVICE;
-}
-

It seems that #include <usb.h> can also be removed now.

Quoted 3 lines

I still see uart related code in the warp7.c board file.

Can they also be removed?

If we remove uart related code in warp7.c, the log of the u-boot appears late here is a log

PMIC: PFUZE3000 DEV_ID=0x30 REV_ID=0x11
MMC:   FSL_SDHC: 1, FSL_SDHC: 0
Loading Environment from MMC... OK
In:    serial at 30860000
Out:   serial at 30860000
Err:   serial at 30860000
SEC0: RNG instantiated
Net:   usb_ether
Hit any key to stop autoboot:  0
=>

Quoted 3 lines

Could #define CONFIG_MXC_UART_BASE UART1_IPS_BASE_ADDR be removed from include/configs/warp7.h?

Yes it can be deleted

Best Regards,

Joris

Quoted 4 lines

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot