From: kostap at marvell.com Date: Mon, 13 Feb 2017 15:38:11 +0200 Subject: [U-Boot] [PATCH 10/10] arm64: a3720: Disable DB configurations on ESPRESSOBin board In-Reply-To: <1486993091-15058-1-git-send-email-kostap@marvell.com> References: <1486993091-15058-1-git-send-email-kostap@marvell.com> Message-ID: <1486993091-15058-11-git-send-email-kostap@marvell.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Konstantin Porotchkin 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 Cc: Stefan Roese Cc: Igal Liberman --- 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