Commit 7ff43535 authored by Eric Miao's avatar Eric Miao Committed by Russell King

[ARM] pxa/zylonite: add support for USB OHCI

Signed-off-by: default avatarEric Miao <eric.miao@marvell.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 0c392ed9
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include <mach/pxafb.h> #include <mach/pxafb.h>
#include <mach/zylonite.h> #include <mach/zylonite.h>
#include <mach/mmc.h> #include <mach/mmc.h>
#include <mach/ohci.h>
#include <mach/pxa27x_keypad.h> #include <mach/pxa27x_keypad.h>
#include <mach/pxa3xx_nand.h> #include <mach/pxa3xx_nand.h>
...@@ -423,6 +424,21 @@ static void __init zylonite_init_nand(void) ...@@ -423,6 +424,21 @@ static void __init zylonite_init_nand(void)
static inline void zylonite_init_nand(void) {} static inline void zylonite_init_nand(void) {}
#endif /* CONFIG_MTD_NAND_PXA3xx || CONFIG_MTD_NAND_PXA3xx_MODULE */ #endif /* CONFIG_MTD_NAND_PXA3xx || CONFIG_MTD_NAND_PXA3xx_MODULE */
#if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE)
static struct pxaohci_platform_data zylonite_ohci_info = {
.port_mode = PMM_PERPORT_MODE,
.flags = ENABLE_PORT1 | ENABLE_PORT2 |
POWER_CONTROL_LOW | POWER_SENSE_LOW,
};
static void __init zylonite_init_ohci(void)
{
pxa_set_ohci_info(&zylonite_ohci_info);
}
#else
static inline void zylonite_init_ohci(void) {}
#endif /* CONFIG_USB_OHCI_HCD || CONFIG_USB_OHCI_HCD_MODULE */
static void __init zylonite_init(void) static void __init zylonite_init(void)
{ {
/* board-processor specific initialization */ /* board-processor specific initialization */
...@@ -443,6 +459,7 @@ static void __init zylonite_init(void) ...@@ -443,6 +459,7 @@ static void __init zylonite_init(void)
zylonite_init_keypad(); zylonite_init_keypad();
zylonite_init_nand(); zylonite_init_nand();
zylonite_init_leds(); zylonite_init_leds();
zylonite_init_ohci();
} }
MACHINE_START(ZYLONITE, "PXA3xx Platform Development Kit (aka Zylonite)") MACHINE_START(ZYLONITE, "PXA3xx Platform Development Kit (aka Zylonite)")
......
...@@ -119,6 +119,10 @@ static mfp_cfg_t common_mfp_cfg[] __initdata = { ...@@ -119,6 +119,10 @@ static mfp_cfg_t common_mfp_cfg[] __initdata = {
GPIO13_MMC2_CLK, GPIO13_MMC2_CLK,
GPIO14_MMC2_CMD, GPIO14_MMC2_CMD,
/* USB Host */
GPIO0_2_USBH_PEN,
GPIO1_2_USBH_PWR,
/* Standard I2C */ /* Standard I2C */
GPIO21_I2C_SCL, GPIO21_I2C_SCL,
GPIO22_I2C_SDA, GPIO22_I2C_SDA,
......
...@@ -123,6 +123,10 @@ static mfp_cfg_t mfp_cfg[] __initdata = { ...@@ -123,6 +123,10 @@ static mfp_cfg_t mfp_cfg[] __initdata = {
GPIO28_MMC2_CLK, GPIO28_MMC2_CLK,
GPIO29_MMC2_CMD, GPIO29_MMC2_CMD,
/* USB Host */
GPIO2_2_USBH_PEN,
GPIO3_2_USBH_PWR,
/* Debug LEDs */ /* Debug LEDs */
GPIO1_2_GPIO | MFP_LPM_DRIVE_HIGH, GPIO1_2_GPIO | MFP_LPM_DRIVE_HIGH,
GPIO4_2_GPIO | MFP_LPM_DRIVE_HIGH, GPIO4_2_GPIO | MFP_LPM_DRIVE_HIGH,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment