Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137405
b: refs/heads/master
c: 42e07ad
h: refs/heads/master
i:
  137403: b5e1e1d
v: v3
  • Loading branch information
Daniel Mack authored and Eric Miao committed Mar 23, 2009
1 parent f06f6af commit 7d6ee78
Show file tree
Hide file tree
Showing 2 changed files with 22 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: ebc046c2a3544ba4f55512a218a4084522473bcd
refs/heads/master: 42e07ad7fc111bde5cd6c0e5bd7085b4cecf96b7
21 changes: 21 additions & 0 deletions trunk/arch/arm/mach-pxa/colibri-pxa300.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <mach/pxa300.h>
#include <mach/colibri.h>
#include <mach/mmc.h>
#include <mach/ohci.h>

#include "generic.h"
#include "devices.h"
Expand All @@ -41,6 +42,11 @@ static mfp_cfg_t colibri_pxa300_pin_config[] __initdata = {
GPIO5_MMC1_DAT2,
GPIO6_MMC1_DAT3,
#endif

#if defined (CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE)
GPIO0_2_USBH_PEN,
GPIO1_2_USBH_PWR,
#endif
};

#if defined(CONFIG_AX88796)
Expand Down Expand Up @@ -137,12 +143,27 @@ static void __init colibri_pxa300_init_mmc(void)
static inline void colibri_pxa300_init_mmc(void) {}
#endif /* CONFIG_MMC_PXA */

#if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE)
static struct pxaohci_platform_data colibri_pxa300_ohci_info = {
.port_mode = PMM_GLOBAL_MODE,
.flags = ENABLE_PORT1 | POWER_CONTROL_LOW | POWER_SENSE_LOW,
};

static void __init colibri_pxa300_init_ohci(void)
{
pxa_set_ohci_info(&colibri_pxa300_ohci_info);
}
#else
static inline void colibri_pxa300_init_ohci(void) {}
#endif /* CONFIG_USB_OHCI_HCD || CONFIG_USB_OHCI_HCD_MODULE */

static void __init colibri_pxa300_init(void)
{
set_irq_type(COLIBRI_PXA300_ETH_IRQ, IRQ_TYPE_EDGE_FALLING);
pxa3xx_mfp_config(ARRAY_AND_SIZE(colibri_pxa300_pin_config));
platform_add_devices(ARRAY_AND_SIZE(colibri_pxa300_devices));
colibri_pxa300_init_mmc();
colibri_pxa300_init_ohci();
}

MACHINE_START(COLIBRI300, "Toradex Colibri PXA300")
Expand Down

0 comments on commit 7d6ee78

Please sign in to comment.