
From: Konstantin Porotchkin kostap@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@marvell.com Cc: Stefan Roese sr@denx.de Cc: Igal Liberman igall@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) {