Skip to contentSkip to conversation

powerpc: mpc85xx: Allow boards to override CONFIG_USB_MAX_CONTROLLER_COUNT

PATCH New Chris Packham 2 participants 2 messages Dec 3, 2020 – Dec 11, 2020 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: mpc85xx: Allow boards to override CONFIG_USB_MAX_CONTROLLER_COUNT

If the board isn't strapped to enable USB1 then attempting to access it will result in a hang. Avoid this by allowing boards to define CONFIG_USB_MAX_CONTROLLER_COUNT.

---

 arch/powerpc/include/asm/config_mpc85xx.h | 2 ++
 1 file changed, 2 insertions(+)
arch/powerpc/include/asm/config_mpc85xx.h +2 -0
index 4ca1e2b325f1..f25ba1af0928 100644
@@ -116,7 +116,9 @@
 #define CONFIG_SYS_NUM_FMAN		1
 #define CONFIG_SYS_NUM_FM1_DTSEC	5
 #define CONFIG_SYS_NUM_FM1_10GEC	1
+#ifndef CONFIG_USB_MAX_CONTROLLER_COUNT
 #define CONFIG_USB_MAX_CONTROLLER_COUNT	2
+#endif
 #define CONFIG_SYS_FM_MURAM_SIZE	0x28000
 #define CONFIG_SYS_FSL_TBCLK_DIV	32
 #define CONFIG_SYS_FSL_PCIE_COMPAT	"fsl,qoriq-pcie-v2.2"
Signature · 1 line
2.29.2
#1 lore raw

PATCH 1/1 powerpc: mpc85xx: Allow boards to override CONFIG_USB_MAX_CONTROLLER_COUNT

Quoted 11 lines

-----Original Message-----
From: Chris Packham <[email protected]>
Sent: Thursday, December 3, 2020 8:54 AM
To: u-boot at lists.denx.de
Cc: Chris Packham <[email protected]>; Andy Fleming <[email protected]>; Mario Six <[email protected]>; Priyanka Jain <[email protected]>; Stefan Roese <[email protected]>; Wolfgang Denk <[email protected]>; Y.b. Lu <[email protected]>
Subject: [PATCH] powerpc: mpc85xx: Allow boards to override CONFIG_USB_MAX_CONTROLLER_COUNT

Quoted 6 lines

If the board isn't strapped to enable USB1 then attempting to access it will result in a hang. Avoid this by allowing boards to define CONFIG_USB_MAX_CONTROLLER_COUNT.

---

<snip>
Applied to fsl-qoriq.
Awaiting upstream

Regards
Priyanka