diff options
author | Nicolas Ferre <nicolas.ferre@atmel.com> | 2012-01-18 10:56:36 -0500 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2012-03-01 07:38:48 -0500 |
commit | 298312971b2fe8b922a1a15e0a6f5b4da89677d8 (patch) | |
tree | 25a6c8588077badac4d0092e3b81c5df0c8508d1 /arch/arm/mach-at91 | |
parent | 986c265729cb798bb8414bd5d6c6006240a1011c (diff) |
ARM: at91/tclib: take iomem size from resource
Requesting iomem region and ioremaping is now done using
the resource size specified instead of a constant value.
Each <SoC>_device.c file is modified accordingly to reflect
actual user interface size.
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'arch/arm/mach-at91')
-rw-r--r-- | arch/arm/mach-at91/at91sam9260_devices.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-at91/at91sam9g45_devices.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-at91/at91sam9260_devices.c b/arch/arm/mach-at91/at91sam9260_devices.c index df487ce83c5e..c450cb3970a0 100644 --- a/arch/arm/mach-at91/at91sam9260_devices.c +++ b/arch/arm/mach-at91/at91sam9260_devices.c | |||
@@ -642,7 +642,7 @@ void __init at91_add_device_spi(struct spi_board_info *devices, int nr_devices) | |||
642 | static struct resource tcb0_resources[] = { | 642 | static struct resource tcb0_resources[] = { |
643 | [0] = { | 643 | [0] = { |
644 | .start = AT91SAM9260_BASE_TCB0, | 644 | .start = AT91SAM9260_BASE_TCB0, |
645 | .end = AT91SAM9260_BASE_TCB0 + SZ_16K - 1, | 645 | .end = AT91SAM9260_BASE_TCB0 + SZ_256 - 1, |
646 | .flags = IORESOURCE_MEM, | 646 | .flags = IORESOURCE_MEM, |
647 | }, | 647 | }, |
648 | [1] = { | 648 | [1] = { |
@@ -672,7 +672,7 @@ static struct platform_device at91sam9260_tcb0_device = { | |||
672 | static struct resource tcb1_resources[] = { | 672 | static struct resource tcb1_resources[] = { |
673 | [0] = { | 673 | [0] = { |
674 | .start = AT91SAM9260_BASE_TCB1, | 674 | .start = AT91SAM9260_BASE_TCB1, |
675 | .end = AT91SAM9260_BASE_TCB1 + SZ_16K - 1, | 675 | .end = AT91SAM9260_BASE_TCB1 + SZ_256 - 1, |
676 | .flags = IORESOURCE_MEM, | 676 | .flags = IORESOURCE_MEM, |
677 | }, | 677 | }, |
678 | [1] = { | 678 | [1] = { |
diff --git a/arch/arm/mach-at91/at91sam9g45_devices.c b/arch/arm/mach-at91/at91sam9g45_devices.c index 410829532aab..aee595013d33 100644 --- a/arch/arm/mach-at91/at91sam9g45_devices.c +++ b/arch/arm/mach-at91/at91sam9g45_devices.c | |||
@@ -1052,7 +1052,7 @@ void __init at91_add_device_lcdc(struct atmel_lcdfb_info *data) {} | |||
1052 | static struct resource tcb0_resources[] = { | 1052 | static struct resource tcb0_resources[] = { |
1053 | [0] = { | 1053 | [0] = { |
1054 | .start = AT91SAM9G45_BASE_TCB0, | 1054 | .start = AT91SAM9G45_BASE_TCB0, |
1055 | .end = AT91SAM9G45_BASE_TCB0 + SZ_16K - 1, | 1055 | .end = AT91SAM9G45_BASE_TCB0 + SZ_256 - 1, |
1056 | .flags = IORESOURCE_MEM, | 1056 | .flags = IORESOURCE_MEM, |
1057 | }, | 1057 | }, |
1058 | [1] = { | 1058 | [1] = { |
@@ -1073,7 +1073,7 @@ static struct platform_device at91sam9g45_tcb0_device = { | |||
1073 | static struct resource tcb1_resources[] = { | 1073 | static struct resource tcb1_resources[] = { |
1074 | [0] = { | 1074 | [0] = { |
1075 | .start = AT91SAM9G45_BASE_TCB1, | 1075 | .start = AT91SAM9G45_BASE_TCB1, |
1076 | .end = AT91SAM9G45_BASE_TCB1 + SZ_16K - 1, | 1076 | .end = AT91SAM9G45_BASE_TCB1 + SZ_256 - 1, |
1077 | .flags = IORESOURCE_MEM, | 1077 | .flags = IORESOURCE_MEM, |
1078 | }, | 1078 | }, |
1079 | [1] = { | 1079 | [1] = { |