From: marc.zyngier@arm.com (Marc Zyngier)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: tegra/harmony: enable USB host ports
Date: Wed, 8 Jun 2011 11:13:38 +0100 [thread overview]
Message-ID: <1307528018-14454-1-git-send-email-marc.zyngier@arm.com> (raw)
The Harmony board code doesn't have any support for USB, leaving
the board without any ethernet support. Add the necessary
declarations to have it up and running, at least for the J6 and J25
connectors, as well as the ethernet port.
The OTG port is left unused, short of any documentation.
Cc: Stephen Warren <swarren@nvidia.com>
Cc: Olof Johansson <olofj@google.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
---
Not sure if this is the right time to send this, as this should
eventually be handled by the device tree. May be useful to some
people in the meantime.
Patch against v3.0-rc2.
arch/arm/mach-tegra/board-harmony.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-tegra/board-harmony.c b/arch/arm/mach-tegra/board-harmony.c
index 30e18bc..b95156a 100644
--- a/arch/arm/mach-tegra/board-harmony.c
+++ b/arch/arm/mach-tegra/board-harmony.c
@@ -26,6 +26,7 @@
#include <linux/gpio.h>
#include <linux/i2c.h>
#include <linux/i2c-tegra.h>
+#include <linux/platform_data/tegra_usb.h>
#include <sound/wm8903.h>
@@ -143,6 +144,8 @@ static struct platform_device *harmony_devices[] __initdata = {
&tegra_das_device,
&tegra_pcm_device,
&harmony_audio_device,
+ &tegra_ehci1_device,
+ &tegra_ehci3_device,
};
static void __init tegra_harmony_fixup(struct machine_desc *desc,
@@ -185,6 +188,10 @@ static struct tegra_sdhci_platform_data sdhci_pdata4 = {
.is_8bit = 1,
};
+static struct tegra_ehci_platform_data ehci_data = {
+ .operating_mode = TEGRA_USB_HOST,
+};
+
static void __init tegra_harmony_init(void)
{
tegra_clk_init_from_table(harmony_clk_init_table);
@@ -195,6 +202,9 @@ static void __init tegra_harmony_init(void)
tegra_sdhci_device2.dev.platform_data = &sdhci_pdata2;
tegra_sdhci_device4.dev.platform_data = &sdhci_pdata4;
+ tegra_ehci1_device.dev.platform_data = &ehci_data;
+ tegra_ehci3_device.dev.platform_data = &ehci_data;
+
platform_add_devices(harmony_devices, ARRAY_SIZE(harmony_devices));
harmony_i2c_init();
harmony_regulator_init();
--
1.7.0.4
next reply other threads:[~2011-06-08 10:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-08 10:13 Marc Zyngier [this message]
2011-06-08 16:48 ` [PATCH] ARM: tegra/harmony: enable USB host ports Stephen Warren
2011-06-08 17:13 ` Marc Zyngier
2011-06-09 6:53 ` Mike Rapoport
2011-06-09 15:57 ` Stephen Warren
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=1307528018-14454-1-git-send-email-marc.zyngier@arm.com \
--to=marc.zyngier@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).