]> git.hungrycats.org Git - linux/commitdiff
[ARM] Add resources and platform devices for SA11x0 serial ports.
authorRussell King <rmk@flint.arm.linux.org.uk>
Fri, 27 Feb 2004 17:04:55 +0000 (17:04 +0000)
committerRussell King <rmk@flint.arm.linux.org.uk>
Fri, 27 Feb 2004 17:04:55 +0000 (17:04 +0000)
arch/arm/mach-sa1100/generic.c

index ba8c384dedd616022dee24ac2284e865cb26d314..bc7d2b064e34cab9212457e461102caaca0c521e 100644 (file)
@@ -167,6 +167,36 @@ static struct platform_device sa11x0udc_device = {
        .resource       = sa11x0udc_resources,
 };
 
+static struct resource sa11x0uart1_resources[] = {
+       [0] = {
+               .start  = 0x80010000,
+               .end    = 0x8001ffff,
+               .flags  = IORESOURCE_MEM,
+       },
+};
+
+static struct platform_device sa11x0uart1_device = {
+       .name           = "sa11x0-uart",
+       .id             = 1,
+       .num_resources  = ARRAY_SIZE(sa11x0uart1_resources),
+       .resource       = sa11x0uart1_resources,
+};
+
+static struct resource sa11x0uart3_resources[] = {
+       [0] = {
+               .start  = 0x80050000,
+               .end    = 0x8005ffff,
+               .flags  = IORESOURCE_MEM,
+       },
+};
+
+static struct platform_device sa11x0uart3_device = {
+       .name           = "sa11x0-uart",
+       .id             = 3,
+       .num_resources  = ARRAY_SIZE(sa11x0uart3_resources),
+       .resource       = sa11x0uart3_resources,
+};
+
 static struct resource sa11x0mcp_resources[] = {
        [0] = {
                .start  = 0x80060000,
@@ -234,6 +264,8 @@ static struct platform_device sa11x0pcmcia_device = {
 
 static struct platform_device *sa11x0_devices[] __initdata = {
        &sa11x0udc_device,
+       &sa11x0uart1_device,
+       &sa11x0uart3_device,
        &sa11x0mcp_device,
        &sa11x0ssp_device,
        &sa11x0pcmcia_device,