Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100840
b: refs/heads/master
c: b9db83a
h: refs/heads/master
v: v3
  • Loading branch information
Ben Dooks committed Jul 3, 2008
1 parent 76d877b commit 347c050
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 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: b7a12d1923f12aa00a68347a3ad97c43ecf55667
refs/heads/master: b9db83af69e4c61107803c85872d01a45949e052
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-s3c2440/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ config MACH_ANUBIS
bool "Simtec Electronics ANUBIS"
select CPU_S3C2440
select PM_SIMTEC if PM
select HAVE_PATA_PLATFORM
help
Say Y here if you are using the Simtec Electronics ANUBIS
development system
Expand Down
26 changes: 19 additions & 7 deletions trunk/arch/arm/mach-s3c2440/mach-anubis.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <linux/init.h>
#include <linux/serial_core.h>
#include <linux/platform_device.h>
#include <linux/ata_platform.h>

#include <linux/sm501.h>
#include <linux/sm501-regs.h>
Expand Down Expand Up @@ -241,14 +242,18 @@ static struct s3c2410_platform_nand anubis_nand_info = {

/* IDE channels */

struct pata_platform_info anubis_ide_platdata = {
.ioport_shift = 5,
};

static struct resource anubis_ide0_resource[] = {
{
.start = S3C2410_CS3,
.end = S3C2410_CS3 + (8*32) - 1,
.flags = IORESOURCE_MEM,
}, {
.start = S3C2410_CS3 + (1<<26),
.end = S3C2410_CS3 + (1<<26) + (8*32) - 1,
.start = S3C2410_CS3 + (1<<26) + (6*32),
.end = S3C2410_CS3 + (1<<26) + (7*32) - 1,
.flags = IORESOURCE_MEM,
}, {
.start = IRQ_IDE0,
Expand All @@ -258,10 +263,14 @@ static struct resource anubis_ide0_resource[] = {
};

static struct platform_device anubis_device_ide0 = {
.name = "simtec-ide",
.name = "pata_platform",
.id = 0,
.num_resources = ARRAY_SIZE(anubis_ide0_resource),
.resource = anubis_ide0_resource,
.dev = {
.platform_data = &anubis_ide_platdata,
.coherent_dma_mask = ~0,
},
};

static struct resource anubis_ide1_resource[] = {
Expand All @@ -270,8 +279,8 @@ static struct resource anubis_ide1_resource[] = {
.end = S3C2410_CS4 + (8*32) - 1,
.flags = IORESOURCE_MEM,
}, {
.start = S3C2410_CS4 + (1<<26),
.end = S3C2410_CS4 + (1<<26) + (8*32) - 1,
.start = S3C2410_CS4 + (1<<26) + (6*32),
.end = S3C2410_CS4 + (1<<26) + (7*32) - 1,
.flags = IORESOURCE_MEM,
}, {
.start = IRQ_IDE0,
Expand All @@ -280,12 +289,15 @@ static struct resource anubis_ide1_resource[] = {
},
};


static struct platform_device anubis_device_ide1 = {
.name = "simtec-ide",
.name = "pata_platform",
.id = 1,
.num_resources = ARRAY_SIZE(anubis_ide1_resource),
.resource = anubis_ide1_resource,
.dev = {
.platform_data = &anubis_ide_platdata,
.coherent_dma_mask = ~0,
},
};

/* Asix AX88796 10/100 ethernet controller */
Expand Down

0 comments on commit 347c050

Please sign in to comment.