All of lore.kernel.org
 help / color / mirror / Atom feed
From: kostap at marvell.com <kostap@marvell.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 10/10] arm64: a3720: Disable DB configurations on ESPRESSOBin board
Date: Mon, 13 Feb 2017 15:38:11 +0200	[thread overview]
Message-ID: <1486993091-15058-11-git-send-email-kostap@marvell.com> (raw)
In-Reply-To: <1486993091-15058-1-git-send-email-kostap@marvell.com>

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) {
-- 
2.7.4

      parent reply	other threads:[~2017-02-13 13:38 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-13 13:38 [U-Boot] [PATCH 00/10] Add Marvell ESPRESSOBin community board support kostap at marvell.com
2017-02-13 13:38 ` [U-Boot] [PATCH 01/10] arm64: a37xx: Enable Marvell ETH PHY support kostap at marvell.com
2017-02-13 13:38 ` [U-Boot] [PATCH 02/10] arm64: a37xx: Enable bubt command support on A3720-DB kostap at marvell.com
2017-02-13 13:38 ` [U-Boot] [PATCH 03/10] arm64: a37xx: dts: Add pin control nodes to DT kostap at marvell.com
2017-02-13 13:38 ` [U-Boot] [PATCH 04/10] arm64: a37xx: Handle pin controls in early board init kostap at marvell.com
2017-02-14 11:43   ` Stefan Roese
2017-02-14 12:07     ` Konstantin Porotchkin
2017-02-14 12:21       ` Stefan Roese
2017-02-14 12:25         ` Konstantin Porotchkin
2017-02-15  9:09           ` Konstantin Porotchkin
2017-02-13 13:38 ` [U-Boot] [PATCH 05/10] mvebu: neta: Add support for board init function kostap at marvell.com
2017-02-13 13:38 ` [U-Boot] [PATCH 06/10] mvebu: neta: a37xx: Add fixed link support to neta driver kostap at marvell.com
2017-02-13 13:38 ` [U-Boot] [PATCH 07/10] mvebu: a37xx: Add init for ESPRESSBin Topaz switch kostap at marvell.com
2017-02-14 11:49   ` Stefan Roese
2017-02-14 12:13     ` Konstantin Porotchkin
2017-02-14 12:32       ` Stefan Roese
2017-02-14 17:17         ` Joe Hershberger
2017-02-15  9:07           ` Konstantin Porotchkin
2017-02-15 15:32             ` Konstantin Porotchkin
2017-02-15 16:38               ` Joe Hershberger
2017-02-13 13:38 ` [U-Boot] [PATCH 08/10] arm64: dts: Add device tree for ESPRESSOBin board kostap at marvell.com
2017-02-13 13:38 ` [U-Boot] [PATCH 09/10] arm64: mvebu: Add default config " kostap at marvell.com
2017-02-13 13:38 ` kostap at marvell.com [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1486993091-15058-11-git-send-email-kostap@marvell.com \
    --to=kostap@marvell.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.