aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2012-04-10 23:58:10 -0400
committerRafael J. Wysocki <rjw@sisk.pl>2012-05-12 16:34:15 -0400
commitdd818180f9303eed270513e8ccd4516bb3a577f5 (patch)
tree1f33725b5a4b443cb4c552921893464eb35d5d33
parentc15c4257a7858c6670f54c667f804df86a9fff1c (diff)
ARM: mach-shmobile: kzm9g: add external USB Host support
This patch uses r8a66597_hcd driver, since renesas_usbhs driver doesn't support external R8A66597 chip. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Tested-by: Simon Horman <horms@verge.net.au> Acked-by: Magnus Damm <damm@opensource.se> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
-rw-r--r--arch/arm/mach-shmobile/board-kzm9g.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/board-kzm9g.c b/arch/arm/mach-shmobile/board-kzm9g.c
index a46aec1ddb44..f48db233719a 100644
--- a/arch/arm/mach-shmobile/board-kzm9g.c
+++ b/arch/arm/mach-shmobile/board-kzm9g.c
@@ -21,6 +21,7 @@
21#include <linux/irq.h> 21#include <linux/irq.h>
22#include <linux/platform_device.h> 22#include <linux/platform_device.h>
23#include <linux/smsc911x.h> 23#include <linux/smsc911x.h>
24#include <linux/usb/r8a66597.h>
24#include <mach/irqs.h> 25#include <mach/irqs.h>
25#include <mach/sh73a0.h> 26#include <mach/sh73a0.h>
26#include <mach/common.h> 27#include <mach/common.h>
@@ -58,8 +59,38 @@ static struct platform_device smsc_device = {
58 .num_resources = ARRAY_SIZE(smsc9221_resources), 59 .num_resources = ARRAY_SIZE(smsc9221_resources),
59}; 60};
60 61
62/* USB external chip */
63static struct r8a66597_platdata usb_host_data = {
64 .on_chip = 0,
65 .xtal = R8A66597_PLATDATA_XTAL_48MHZ,
66};
67
68static struct resource usb_resources[] = {
69 [0] = {
70 .start = 0x10010000,
71 .end = 0x1001ffff - 1,
72 .flags = IORESOURCE_MEM,
73 },
74 [1] = {
75 .start = intcs_evt2irq(0x220), /* IRQ1 */
76 .flags = IORESOURCE_IRQ,
77 },
78};
79
80static struct platform_device usb_host_device = {
81 .name = "r8a66597_hcd",
82 .dev = {
83 .platform_data = &usb_host_data,
84 .dma_mask = NULL,
85 .coherent_dma_mask = 0xffffffff,
86 },
87 .num_resources = ARRAY_SIZE(usb_resources),
88 .resource = usb_resources,
89};
90
61static struct platform_device *kzm_devices[] __initdata = { 91static struct platform_device *kzm_devices[] __initdata = {
62 &smsc_device, 92 &smsc_device,
93 &usb_host_device,
63}; 94};
64 95
65static void __init kzm_init(void) 96static void __init kzm_init(void)