All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andre Przywara <andre.przywara@arm.com>
To: u-boot@lists.denx.de
Subject: [PATCH v3 6/7] arm: juno: enable USB
Date: Mon, 27 Apr 2020 19:18:03 +0100	[thread overview]
Message-ID: <20200427181804.15787-7-andre.przywara@arm.com> (raw)
In-Reply-To: <20200427181804.15787-1-andre.przywara@arm.com>

The Juno board features a standard compliant EHCI/OHCI USB host
controller pair, which we can just enable.
The platform data is taken from the device tree.

This allows to use USB mass storage (the only storage on a Juno r0)
for loading.

At least on my board USB seems a bit flaky, I need two "usb reset"
sequences after the "usb start" to detect an USB hard drive.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
---
 arch/arm/Kconfig                       | 4 ++++
 configs/vexpress_aemv8a_juno_defconfig | 5 +++++
 include/configs/vexpress_aemv8a.h      | 5 +++++
 3 files changed, 14 insertions(+)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 449ef06be5..d582281e40 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1140,6 +1140,10 @@ config TARGET_VEXPRESS64_JUNO
 	select DM_SERIAL
 	select ARM_PSCI_FW
 	select PSCI_RESET
+	select DM
+	select BLK
+	select USB
+	select DM_USB
 
 config TARGET_LS2080A_EMU
 	bool "Support ls2080a_emu"
diff --git a/configs/vexpress_aemv8a_juno_defconfig b/configs/vexpress_aemv8a_juno_defconfig
index 6cb21e7a1b..ca7aa5ab02 100644
--- a/configs/vexpress_aemv8a_juno_defconfig
+++ b/configs/vexpress_aemv8a_juno_defconfig
@@ -27,6 +27,7 @@ CONFIG_CMD_ARMFLASH=y
 CONFIG_CMD_CACHE=y
 # CONFIG_CMD_MISC is not set
 CONFIG_CMD_UBI=y
+CONFIG_CMD_USB=y
 # CONFIG_ISO_PARTITION is not set
 # CONFIG_EFI_PARTITION is not set
 CONFIG_ENV_IS_IN_FLASH=y
@@ -41,3 +42,7 @@ CONFIG_SYS_FLASH_CFI=y
 CONFIG_SMC911X=y
 CONFIG_SMC911X_BASE=0x018000000
 CONFIG_SMC911X_32_BIT=y
+CONFIG_USB_EHCI_HCD=y
+CONFIG_USB_EHCI_GENERIC=y
+CONFIG_USB_OHCI_HCD=y
+CONFIG_USB_OHCI_GENERIC=y
diff --git a/include/configs/vexpress_aemv8a.h b/include/configs/vexpress_aemv8a.h
index 3c85c93a5c..08ad368dbb 100644
--- a/include/configs/vexpress_aemv8a.h
+++ b/include/configs/vexpress_aemv8a.h
@@ -219,6 +219,11 @@
 #define CONFIG_SYS_FLASH_CFI_WIDTH	FLASH_CFI_32BIT
 #define CONFIG_SYS_MAX_FLASH_BANKS	1
 
+#ifdef CONFIG_USB_EHCI_HCD
+#define CONFIG_USB_OHCI_NEW
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 1
+#endif
+
 #define CONFIG_SYS_FLASH_EMPTY_INFO	/* flinfo indicates empty blocks */
 #define FLASH_MAX_SECTOR_SIZE		0x00040000
 
-- 
2.17.5

  parent reply	other threads:[~2020-04-27 18:18 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-27 18:17 [PATCH v3 0/7] Arm Juno board OF_CONTROL upgrade Andre Przywara
2020-04-27 18:17 ` [PATCH v3 1/7] arm: juno: Fix Juno address variables Andre Przywara
2020-04-28 17:57   ` Simon Glass
2020-05-07 13:03   ` Tom Rini
2020-04-27 18:17 ` [PATCH v3 2/7] uart: pl011: Add proper DM clock support Andre Przywara
2020-04-28 17:57   ` Simon Glass
2020-05-12 14:26     ` André Przywara
2020-05-20  3:07       ` Simon Glass
2020-05-07 13:03   ` Tom Rini
2020-04-27 18:18 ` [PATCH v3 3/7] arm: juno: Fix UART clock rate Andre Przywara
2020-04-28 17:57   ` Simon Glass
2020-05-07 13:03   ` Tom Rini
2020-04-27 18:18 ` [PATCH v3 4/7] arm: juno: Enable OF_CONTROL Andre Przywara
2020-04-28 17:57   ` Simon Glass
2020-05-07 13:03   ` Tom Rini
2020-04-27 18:18 ` [PATCH v3 5/7] arm: juno: Use PSCI based reset Andre Przywara
2020-04-28 17:57   ` Simon Glass
2020-05-07 13:03   ` Tom Rini
2020-04-27 18:18 ` Andre Przywara [this message]
2020-04-28 17:57   ` [PATCH v3 6/7] arm: juno: enable USB Simon Glass
2020-05-07 13:04   ` Tom Rini
2020-04-27 18:18 ` [PATCH v3 7/7] arm: vexpress64: Remove unneeded CONFIG_ check Andre Przywara
2020-04-28 17:57   ` Simon Glass
2020-05-07 13:04   ` Tom Rini

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=20200427181804.15787-7-andre.przywara@arm.com \
    --to=andre.przywara@arm.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.