Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208679
b: refs/heads/master
c: 7490509
h: refs/heads/master
i:
  208677: b6ada09
  208675: d1d7637
  208671: 094409b
v: v3
  • Loading branch information
Magnus Damm authored and Paul Mundt committed May 22, 2010
1 parent a31edca commit 2b6a0b2
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 13 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: e370bc22c2aa42e0bdae178d558ce83ed8d23364
refs/heads/master: 7490509fbca3e17e3a220533ea9b686f46c1e64d
8 changes: 4 additions & 4 deletions trunk/arch/arm/mach-shmobile/board-g3evm.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static struct resource usb_host_resources[] = {
.flags = IORESOURCE_MEM,
},
[1] = {
.start = 65,
.start = evt2irq(0xa20), /* USBHS_USHI0 */
.flags = IORESOURCE_IRQ,
},
};
Expand Down Expand Up @@ -161,7 +161,7 @@ static struct resource keysc_resources[] = {
.flags = IORESOURCE_MEM,
},
[1] = {
.start = 79,
.start = evt2irq(0xbe0), /* KEYSC_KEY */
.flags = IORESOURCE_IRQ,
},
};
Expand Down Expand Up @@ -224,7 +224,7 @@ static struct resource irda_resources[] = {
.flags = IORESOURCE_MEM,
},
[1] = {
.start = 20,
.start = evt2irq(0x480), /* IRDA */
.flags = IORESOURCE_IRQ,
},
};
Expand Down Expand Up @@ -349,7 +349,7 @@ static void __init g3evm_init(void)
gpio_request(GPIO_FN_IRDA_OUT, NULL);
gpio_request(GPIO_FN_IRDA_IN, NULL);
gpio_request(GPIO_FN_IRDA_FIRSEL, NULL);
set_irq_type(20, IRQ_TYPE_LEVEL_LOW);
set_irq_type(evt2irq(0x480), IRQ_TYPE_LEVEL_LOW);

sh7367_add_standard_devices();

Expand Down
30 changes: 22 additions & 8 deletions trunk/arch/arm/mach-shmobile/setup-sh7367.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@
#include <asm/mach-types.h>
#include <asm/mach/arch.h>

/* SCIFA0 */
static struct plat_sci_port scif0_platform_data = {
.mapbase = 0xe6c40000,
.flags = UPF_BOOT_AUTOCONF,
.type = PORT_SCIF,
.irqs = { 80, 80, 80, 80 },
.irqs = { evt2irq(0xc00), evt2irq(0xc00),
evt2irq(0xc00), evt2irq(0xc00) },
};

static struct platform_device scif0_device = {
Expand All @@ -46,11 +48,13 @@ static struct platform_device scif0_device = {
},
};

/* SCIFA1 */
static struct plat_sci_port scif1_platform_data = {
.mapbase = 0xe6c50000,
.flags = UPF_BOOT_AUTOCONF,
.type = PORT_SCIF,
.irqs = { 81, 81, 81, 81 },
.irqs = { evt2irq(0xc20), evt2irq(0xc20),
evt2irq(0xc20), evt2irq(0xc20) },
};

static struct platform_device scif1_device = {
Expand All @@ -61,11 +65,13 @@ static struct platform_device scif1_device = {
},
};

/* SCIFA2 */
static struct plat_sci_port scif2_platform_data = {
.mapbase = 0xe6c60000,
.flags = UPF_BOOT_AUTOCONF,
.type = PORT_SCIF,
.irqs = { 82, 82, 82, 82 },
.irqs = { evt2irq(0xc40), evt2irq(0xc40),
evt2irq(0xc40), evt2irq(0xc40) },
};

static struct platform_device scif2_device = {
Expand All @@ -76,11 +82,13 @@ static struct platform_device scif2_device = {
},
};

/* SCIFA3 */
static struct plat_sci_port scif3_platform_data = {
.mapbase = 0xe6c70000,
.flags = UPF_BOOT_AUTOCONF,
.type = PORT_SCIF,
.irqs = { 83, 83, 83, 83 },
.irqs = { evt2irq(0xc60), evt2irq(0xc60),
evt2irq(0xc60), evt2irq(0xc60) },
};

static struct platform_device scif3_device = {
Expand All @@ -91,11 +99,13 @@ static struct platform_device scif3_device = {
},
};

/* SCIFA4 */
static struct plat_sci_port scif4_platform_data = {
.mapbase = 0xe6c80000,
.flags = UPF_BOOT_AUTOCONF,
.type = PORT_SCIF,
.irqs = { 89, 89, 89, 89 },
.irqs = { evt2irq(0xd20), evt2irq(0xd20),
evt2irq(0xd20), evt2irq(0xd20) },
};

static struct platform_device scif4_device = {
Expand All @@ -106,11 +116,13 @@ static struct platform_device scif4_device = {
},
};

/* SCIFA5 */
static struct plat_sci_port scif5_platform_data = {
.mapbase = 0xe6cb0000,
.flags = UPF_BOOT_AUTOCONF,
.type = PORT_SCIF,
.irqs = { 90, 90, 90, 90 },
.irqs = { evt2irq(0xd40), evt2irq(0xd40),
evt2irq(0xd40), evt2irq(0xd40) },
};

static struct platform_device scif5_device = {
Expand All @@ -121,11 +133,13 @@ static struct platform_device scif5_device = {
},
};

/* SCIFB */
static struct plat_sci_port scif6_platform_data = {
.mapbase = 0xe6c30000,
.flags = UPF_BOOT_AUTOCONF,
.type = PORT_SCIF,
.irqs = { 91, 91, 91, 91 },
.irqs = { evt2irq(0xd60), evt2irq(0xd60),
evt2irq(0xd60), evt2irq(0xd60) },
};

static struct platform_device scif6_device = {
Expand Down Expand Up @@ -153,7 +167,7 @@ static struct resource cmt10_resources[] = {
.flags = IORESOURCE_MEM,
},
[1] = {
.start = 72,
.start = evt2irq(0xb00), /* CMT1_CMT10 */
.flags = IORESOURCE_IRQ,
},
};
Expand Down

0 comments on commit 2b6a0b2

Please sign in to comment.