Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303430
b: refs/heads/master
c: 7357867
h: refs/heads/master
v: v3
  • Loading branch information
Neil Zhang authored and Haojian Zhuang committed May 5, 2012
1 parent dadeaad commit 6d1c986
Show file tree
Hide file tree
Showing 2 changed files with 21 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: 161105bcb82a5df88f7594cb3b036ec13c6df626
refs/heads/master: 73578674f893f20733fa325b0d46e75c1e0f9f3e
20 changes: 20 additions & 0 deletions trunk/arch/arm/mach-mmp/aspenite.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <linux/mtd/partitions.h>
#include <linux/mtd/nand.h>
#include <linux/interrupt.h>
#include <linux/platform_data/mv_usb.h>

#include <asm/mach-types.h>
#include <asm/mach/arch.h>
Expand Down Expand Up @@ -221,6 +222,21 @@ static struct pxa27x_keypad_platform_data aspenite_keypad_info __initdata = {
.debounce_interval = 30,
};

#if defined(CONFIG_USB_EHCI_MV)
static char *pxa168_sph_clock_name[] = {
[0] = "PXA168-USBCLK",
};

static struct mv_usb_platform_data pxa168_sph_pdata = {
.clknum = 1,
.clkname = pxa168_sph_clock_name,
.mode = MV_USB_MODE_HOST,
.phy_init = pxa_usb_phy_init,
.phy_deinit = pxa_usb_phy_deinit,
.set_vbus = NULL,
};
#endif

static void __init common_init(void)
{
mfp_config(ARRAY_AND_SIZE(common_pin_config));
Expand All @@ -236,6 +252,10 @@ static void __init common_init(void)

/* off-chip devices */
platform_device_register(&smc91x_device);

#if defined(CONFIG_USB_EHCI_MV)
pxa168_add_usb_host(&pxa168_sph_pdata);
#endif
}

MACHINE_START(ASPENITE, "PXA168-based Aspenite Development Platform")
Expand Down

0 comments on commit 6d1c986

Please sign in to comment.