Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303494
b: refs/heads/master
c: dd81818
h: refs/heads/master
v: v3
  • Loading branch information
Kuninori Morimoto authored and Rafael J. Wysocki committed May 12, 2012
1 parent 35a19a8 commit ae65928
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c15c4257a7858c6670f54c667f804df86a9fff1c
refs/heads/master: dd818180f9303eed270513e8ccd4516bb3a577f5
31 changes: 31 additions & 0 deletions trunk/arch/arm/mach-shmobile/board-kzm9g.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <linux/irq.h>
#include <linux/platform_device.h>
#include <linux/smsc911x.h>
#include <linux/usb/r8a66597.h>
#include <mach/irqs.h>
#include <mach/sh73a0.h>
#include <mach/common.h>
Expand Down Expand Up @@ -58,8 +59,38 @@ static struct platform_device smsc_device = {
.num_resources = ARRAY_SIZE(smsc9221_resources),
};

/* USB external chip */
static struct r8a66597_platdata usb_host_data = {
.on_chip = 0,
.xtal = R8A66597_PLATDATA_XTAL_48MHZ,
};

static struct resource usb_resources[] = {
[0] = {
.start = 0x10010000,
.end = 0x1001ffff - 1,
.flags = IORESOURCE_MEM,
},
[1] = {
.start = intcs_evt2irq(0x220), /* IRQ1 */
.flags = IORESOURCE_IRQ,
},
};

static struct platform_device usb_host_device = {
.name = "r8a66597_hcd",
.dev = {
.platform_data = &usb_host_data,
.dma_mask = NULL,
.coherent_dma_mask = 0xffffffff,
},
.num_resources = ARRAY_SIZE(usb_resources),
.resource = usb_resources,
};

static struct platform_device *kzm_devices[] __initdata = {
&smsc_device,
&usb_host_device,
};

static void __init kzm_init(void)
Expand Down

0 comments on commit ae65928

Please sign in to comment.