[U-Boot] [PATCH 10/10] arm64: a3720: Disable DB configurations on ESPRESSOBin board

kostap at marvell.com kostap at marvell.com
Mon Feb 13 13:38:11 UTC 2017


From: Konstantin Porotchkin <kostap at marvell.com>

Bypass XHCI and AHCi board configuration flow on ESPRESSOBin
community board.
The community board does not have i2c expander and USB VBUS
is always on, so the scan for AHCi and USB devices can be
faster.

Signed-off-by: Konstantin Porotchkin <kostap at marvell.com>
Cc: Stefan Roese <sr at denx.de>
Cc: Igal Liberman <igall at marvell.com>
---
 board/Marvell/mvebu_db-88f3720/board.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/board/Marvell/mvebu_db-88f3720/board.c b/board/Marvell/mvebu_db-88f3720/board.c
index 45098ce..029ca6d 100644
--- a/board/Marvell/mvebu_db-88f3720/board.c
+++ b/board/Marvell/mvebu_db-88f3720/board.c
@@ -66,6 +66,10 @@ int board_ahci_enable(void)
 	int ret;
 	u8 buf[8];
 
+	/* There is no IO expander on ESPRESSOBin boards */
+	if (of_machine_is_compatible("marvell,armada-3720-espressobin"))
+		return 0;
+
 	/* Configure IO exander PCA9555: 7bit address 0x22 */
 	ret = i2c_get_chip_for_busnum(0, I2C_IO_EXP_ADDR, 1, &dev);
 	if (ret) {
@@ -100,6 +104,10 @@ int board_xhci_enable(void)
 	int ret;
 	u8 buf[8];
 
+	/* There is no IO expander on ESPRESSOBin boards */
+	if (of_machine_is_compatible("marvell,armada-3720-espressobin"))
+		return 0;
+
 	/* Configure IO exander PCA9555: 7bit address 0x22 */
 	ret = i2c_get_chip_for_busnum(0, I2C_IO_EXP_ADDR, 1, &dev);
 	if (ret) {
-- 
2.7.4



More information about the U-Boot mailing list