Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283588
b: refs/heads/master
c: 7afb4e9
h: refs/heads/master
v: v3
  • Loading branch information
Shimoda, Yoshihiro authored and Paul Mundt committed Jan 9, 2012
1 parent 6d4c5e6 commit 9e3ec44
Show file tree
Hide file tree
Showing 2 changed files with 40 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: 1760e371a9038329190f0fdd051776ae76aca083
refs/heads/master: 7afb4e9a92e42e66124b7043405bbca82680aa96
39 changes: 39 additions & 0 deletions trunk/arch/sh/boards/board-sh7757lcr.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <linux/mmc/sh_mmcif.h>
#include <linux/mmc/sh_mobile_sdhi.h>
#include <linux/sh_eth.h>
#include <linux/usb/renesas_usbhs.h>
#include <cpu/sh7757.h>
#include <asm/heartbeat.h>

Expand Down Expand Up @@ -264,6 +265,43 @@ static struct platform_device sdhi_device = {
},
};

static int usbhs0_get_id(struct platform_device *pdev)
{
return USBHS_GADGET;
}

static struct renesas_usbhs_platform_info usb0_data = {
.platform_callback = {
.get_id = usbhs0_get_id,
},
.driver_param = {
.buswait_bwait = 5,
}
};

static struct resource usb0_resources[] = {
[0] = {
.start = 0xfe450000,
.end = 0xfe4501ff,
.flags = IORESOURCE_MEM,
},
[1] = {
.start = 50,
.end = 50,
.flags = IORESOURCE_IRQ,
},
};

static struct platform_device usb0_device = {
.name = "renesas_usbhs",
.id = 0,
.dev = {
.platform_data = &usb0_data,
},
.num_resources = ARRAY_SIZE(usb0_resources),
.resource = usb0_resources,
};

static struct platform_device *sh7757lcr_devices[] __initdata = {
&heartbeat_device,
&sh7757_eth0_device,
Expand All @@ -272,6 +310,7 @@ static struct platform_device *sh7757lcr_devices[] __initdata = {
&sh7757_eth_giga1_device,
&sh_mmcif_device,
&sdhi_device,
&usb0_device,
};

static struct flash_platform_data spi_flash_data = {
Expand Down

0 comments on commit 9e3ec44

Please sign in to comment.