Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112460
b: refs/heads/master
c: ebcce7b
h: refs/heads/master
v: v3
  • Loading branch information
Ian Molton committed Aug 19, 2008
1 parent 09b61d9 commit 8f5daa4
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 59 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0ec3cf69304d2e35ad29da3aa9ab43c3dd97677c
refs/heads/master: ebcce7b13be837616a3f9d996f637cf3241e3948
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-pxa/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ obj-$(CONFIG_MACH_PCM990_BASEBOARD) += pcm990-baseboard.o
obj-$(CONFIG_MACH_TOSA) += tosa.o
obj-$(CONFIG_MACH_EM_X270) += em-x270.o
obj-$(CONFIG_MACH_MAGICIAN) += magician.o
obj-$(CONFIG_ARCH_PXA_ESERIES) += eseries.o eseries_udc.o
obj-$(CONFIG_ARCH_PXA_ESERIES) += eseries.o
obj-$(CONFIG_MACH_E330) += e330.o
obj-$(CONFIG_MACH_E350) += e350.o
obj-$(CONFIG_MACH_E740) += e740.o
Expand Down
7 changes: 7 additions & 0 deletions trunk/arch/arm/mach-pxa/e330.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,16 @@

#include <mach/mfp-pxa25x.h>
#include <mach/hardware.h>
#include <mach/udc.h>

#include "generic.h"
#include "eseries.h"

static void __init e330_init(void)
{
pxa_set_udc_info(&e7xx_udc_mach_info);
}

MACHINE_START(E330, "Toshiba e330")
/* Maintainer: Ian Molton (spyro@f2s.com) */
.phys_io = 0x40000000,
Expand All @@ -31,6 +37,7 @@ MACHINE_START(E330, "Toshiba e330")
.map_io = pxa_map_io,
.init_irq = pxa25x_init_irq,
.fixup = eseries_fixup,
.init_machine = e330_init,
.timer = &pxa_timer,
MACHINE_END

7 changes: 7 additions & 0 deletions trunk/arch/arm/mach-pxa/e350.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,16 @@

#include <mach/mfp-pxa25x.h>
#include <mach/hardware.h>
#include <mach/udc.h>

#include "generic.h"
#include "eseries.h"

static void __init e350_init(void)
{
pxa_set_udc_info(&e7xx_udc_mach_info);
}

MACHINE_START(E350, "Toshiba e350")
/* Maintainer: Ian Molton (spyro@f2s.com) */
.phys_io = 0x40000000,
Expand All @@ -31,6 +37,7 @@ MACHINE_START(E350, "Toshiba e350")
.map_io = pxa_map_io,
.init_irq = pxa25x_init_irq,
.fixup = eseries_fixup,
.init_machine = e350_init,
.timer = &pxa_timer,
MACHINE_END

2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-pxa/e400.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <mach/hardware.h>

#include <mach/pxafb.h>
#include <mach/udc.h>

#include "generic.h"
#include "eseries.h"
Expand Down Expand Up @@ -76,6 +77,7 @@ static void __init e400_init(void)
{
pxa2xx_mfp_config(ARRAY_AND_SIZE(e400_pin_config));
set_pxa_fb_info(&e400_pxafb_mach_info);
pxa_set_udc_info(&e7xx_udc_mach_info);
}

MACHINE_START(E400, "Toshiba e400")
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-pxa/e740.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include <mach/mfp-pxa25x.h>
#include <mach/hardware.h>
#include <mach/udc.h>

#include "generic.h"
#include "eseries.h"
Expand Down Expand Up @@ -151,6 +152,7 @@ static void __init e740_init(void)
{
pxa2xx_mfp_config(ARRAY_AND_SIZE(e740_pin_config));
platform_add_devices(devices, ARRAY_SIZE(devices));
pxa_set_udc_info(&e7xx_udc_mach_info);
}

MACHINE_START(E740, "Toshiba e740")
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-pxa/e750.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include <mach/mfp-pxa25x.h>
#include <mach/hardware.h>
#include <mach/udc.h>

#include "generic.h"
#include "eseries.h"
Expand Down Expand Up @@ -108,6 +109,7 @@ static struct platform_device *devices[] __initdata = {
static void __init e750_init(void)
{
platform_add_devices(devices, ARRAY_SIZE(devices));
pxa_set_udc_info(&e7xx_udc_mach_info);
}

MACHINE_START(E750, "Toshiba e750")
Expand Down
11 changes: 11 additions & 0 deletions trunk/arch/arm/mach-pxa/e800.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

#include <mach/mfp-pxa25x.h>
#include <mach/hardware.h>
#include <mach/eseries-gpio.h>
#include <mach/udc.h>

#include "generic.h"
#include "eseries.h"
Expand Down Expand Up @@ -150,6 +152,14 @@ static struct platform_device e800_fb_device = {
.resource = e800_fb_resources,
};

/* --------------------------- UDC definitions --------------------------- */

static struct pxa2xx_udc_mach_info e800_udc_mach_info = {
.gpio_vbus = GPIO_E800_USB_DISC,
.gpio_pullup = GPIO_E800_USB_PULLUP,
.gpio_pullup_inverted = 1
};

/* ----------------------------------------------------------------------- */

static struct platform_device *devices[] __initdata = {
Expand All @@ -159,6 +169,7 @@ static struct platform_device *devices[] __initdata = {
static void __init e800_init(void)
{
platform_add_devices(devices, ARRAY_SIZE(devices));
pxa_set_udc_info(&e800_udc_mach_info);
}

MACHINE_START(E800, "Toshiba e800")
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/arm/mach-pxa/eseries.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

#include <mach/mfp-pxa25x.h>
#include <mach/hardware.h>
#include <mach/eseries-gpio.h>
#include <mach/udc.h>

#include "generic.h"

Expand All @@ -35,3 +37,9 @@ void __init eseries_fixup(struct machine_desc *desc,
mi->bank[0].size = (64*1024*1024);
}

struct pxa2xx_udc_mach_info e7xx_udc_mach_info = {
.gpio_vbus = GPIO_E7XX_USB_DISC,
.gpio_pullup = GPIO_E7XX_USB_PULLUP,
.gpio_pullup_inverted = 1
};

1 change: 1 addition & 0 deletions trunk/arch/arm/mach-pxa/eseries.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
void __init eseries_fixup(struct machine_desc *desc,
struct tag *tags, char **cmdline, struct meminfo *mi);

extern struct pxa2xx_udc_mach_info e7xx_udc_mach_info;
57 changes: 0 additions & 57 deletions trunk/arch/arm/mach-pxa/eseries_udc.c

This file was deleted.

0 comments on commit 8f5daa4

Please sign in to comment.