diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2011-09-17 21:31:56 -0400 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2011-11-28 09:50:37 -0500 |
commit | d28edd1bc4d1cd92f0ab129ac71892eead47d8a2 (patch) | |
tree | dfc56b733baee12917bd6ed83cb4cdff22d31f34 /arch/arm/mach-at91 | |
parent | 80e91cb8023fbc07b2410c4ce5a2da12fbcebca4 (diff) |
ARM: at91: make ecc register base soc independant
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91')
-rw-r--r-- | arch/arm/mach-at91/at91cap9_devices.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-at91/at91sam9260_devices.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-at91/at91sam9263_devices.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-at91/at91sam9g45_devices.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-at91/at91sam9rl_devices.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-at91/include/mach/at91cap9.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-at91/include/mach/at91sam9260.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-at91/include/mach/at91sam9263.h | 4 | ||||
-rw-r--r-- | arch/arm/mach-at91/include/mach/at91sam9g45.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-at91/include/mach/at91sam9rl.h | 2 |
10 files changed, 16 insertions, 16 deletions
diff --git a/arch/arm/mach-at91/at91cap9_devices.c b/arch/arm/mach-at91/at91cap9_devices.c index adad70db70eb..fb525f4e6fab 100644 --- a/arch/arm/mach-at91/at91cap9_devices.c +++ b/arch/arm/mach-at91/at91cap9_devices.c | |||
@@ -398,8 +398,8 @@ static struct resource nand_resources[] = { | |||
398 | .flags = IORESOURCE_MEM, | 398 | .flags = IORESOURCE_MEM, |
399 | }, | 399 | }, |
400 | [1] = { | 400 | [1] = { |
401 | .start = AT91_BASE_SYS + AT91_ECC, | 401 | .start = AT91CAP9_BASE_ECC, |
402 | .end = AT91_BASE_SYS + AT91_ECC + SZ_512 - 1, | 402 | .end = AT91CAP9_BASE_ECC + SZ_512 - 1, |
403 | .flags = IORESOURCE_MEM, | 403 | .flags = IORESOURCE_MEM, |
404 | } | 404 | } |
405 | }; | 405 | }; |
diff --git a/arch/arm/mach-at91/at91sam9260_devices.c b/arch/arm/mach-at91/at91sam9260_devices.c index 25e3464fb07f..067c1685fdaa 100644 --- a/arch/arm/mach-at91/at91sam9260_devices.c +++ b/arch/arm/mach-at91/at91sam9260_devices.c | |||
@@ -399,8 +399,8 @@ static struct resource nand_resources[] = { | |||
399 | .flags = IORESOURCE_MEM, | 399 | .flags = IORESOURCE_MEM, |
400 | }, | 400 | }, |
401 | [1] = { | 401 | [1] = { |
402 | .start = AT91_BASE_SYS + AT91_ECC, | 402 | .start = AT91SAM9260_BASE_ECC, |
403 | .end = AT91_BASE_SYS + AT91_ECC + SZ_512 - 1, | 403 | .end = AT91SAM9260_BASE_ECC + SZ_512 - 1, |
404 | .flags = IORESOURCE_MEM, | 404 | .flags = IORESOURCE_MEM, |
405 | } | 405 | } |
406 | }; | 406 | }; |
diff --git a/arch/arm/mach-at91/at91sam9263_devices.c b/arch/arm/mach-at91/at91sam9263_devices.c index ad017eb1f8df..0b1a28e47f48 100644 --- a/arch/arm/mach-at91/at91sam9263_devices.c +++ b/arch/arm/mach-at91/at91sam9263_devices.c | |||
@@ -473,8 +473,8 @@ static struct resource nand_resources[] = { | |||
473 | .flags = IORESOURCE_MEM, | 473 | .flags = IORESOURCE_MEM, |
474 | }, | 474 | }, |
475 | [1] = { | 475 | [1] = { |
476 | .start = AT91_BASE_SYS + AT91_ECC0, | 476 | .start = AT91SAM9263_BASE_ECC0, |
477 | .end = AT91_BASE_SYS + AT91_ECC0 + SZ_512 - 1, | 477 | .end = AT91SAM9263_BASE_ECC0 + SZ_512 - 1, |
478 | .flags = IORESOURCE_MEM, | 478 | .flags = IORESOURCE_MEM, |
479 | } | 479 | } |
480 | }; | 480 | }; |
diff --git a/arch/arm/mach-at91/at91sam9g45_devices.c b/arch/arm/mach-at91/at91sam9g45_devices.c index 09a16d6bd5cd..d19d72085cb4 100644 --- a/arch/arm/mach-at91/at91sam9g45_devices.c +++ b/arch/arm/mach-at91/at91sam9g45_devices.c | |||
@@ -529,8 +529,8 @@ static struct resource nand_resources[] = { | |||
529 | .flags = IORESOURCE_MEM, | 529 | .flags = IORESOURCE_MEM, |
530 | }, | 530 | }, |
531 | [1] = { | 531 | [1] = { |
532 | .start = AT91_BASE_SYS + AT91_ECC, | 532 | .start = AT91SAM9G45_BASE_ECC, |
533 | .end = AT91_BASE_SYS + AT91_ECC + SZ_512 - 1, | 533 | .end = AT91SAM9G45_BASE_ECC + SZ_512 - 1, |
534 | .flags = IORESOURCE_MEM, | 534 | .flags = IORESOURCE_MEM, |
535 | } | 535 | } |
536 | }; | 536 | }; |
diff --git a/arch/arm/mach-at91/at91sam9rl_devices.c b/arch/arm/mach-at91/at91sam9rl_devices.c index 628eb566d60c..e63ab90e8e80 100644 --- a/arch/arm/mach-at91/at91sam9rl_devices.c +++ b/arch/arm/mach-at91/at91sam9rl_devices.c | |||
@@ -248,8 +248,8 @@ static struct resource nand_resources[] = { | |||
248 | .flags = IORESOURCE_MEM, | 248 | .flags = IORESOURCE_MEM, |
249 | }, | 249 | }, |
250 | [1] = { | 250 | [1] = { |
251 | .start = AT91_BASE_SYS + AT91_ECC, | 251 | .start = AT91SAM9RL_BASE_ECC, |
252 | .end = AT91_BASE_SYS + AT91_ECC + SZ_512 - 1, | 252 | .end = AT91SAM9RL_BASE_ECC + SZ_512 - 1, |
253 | .flags = IORESOURCE_MEM, | 253 | .flags = IORESOURCE_MEM, |
254 | } | 254 | } |
255 | }; | 255 | }; |
diff --git a/arch/arm/mach-at91/include/mach/at91cap9.h b/arch/arm/mach-at91/include/mach/at91cap9.h index f65d0834eee7..5fd105dd1f1a 100644 --- a/arch/arm/mach-at91/include/mach/at91cap9.h +++ b/arch/arm/mach-at91/include/mach/at91cap9.h | |||
@@ -79,7 +79,6 @@ | |||
79 | /* | 79 | /* |
80 | * System Peripherals (offset from AT91_BASE_SYS) | 80 | * System Peripherals (offset from AT91_BASE_SYS) |
81 | */ | 81 | */ |
82 | #define AT91_ECC (0xffffe200 - AT91_BASE_SYS) | ||
83 | #define AT91_BCRAMC (0xffffe400 - AT91_BASE_SYS) | 82 | #define AT91_BCRAMC (0xffffe400 - AT91_BASE_SYS) |
84 | #define AT91_DDRSDRC0 (0xffffe600 - AT91_BASE_SYS) | 83 | #define AT91_DDRSDRC0 (0xffffe600 - AT91_BASE_SYS) |
85 | #define AT91_SMC (0xffffe800 - AT91_BASE_SYS) | 84 | #define AT91_SMC (0xffffe800 - AT91_BASE_SYS) |
@@ -98,6 +97,7 @@ | |||
98 | (0xfffffd50 - AT91_BASE_SYS) : \ | 97 | (0xfffffd50 - AT91_BASE_SYS) : \ |
99 | (0xfffffd60 - AT91_BASE_SYS)) | 98 | (0xfffffd60 - AT91_BASE_SYS)) |
100 | 99 | ||
100 | #define AT91CAP9_BASE_ECC 0xffffe200 | ||
101 | #define AT91CAP9_BASE_PIOA 0xfffff200 | 101 | #define AT91CAP9_BASE_PIOA 0xfffff200 |
102 | #define AT91CAP9_BASE_PIOB 0xfffff400 | 102 | #define AT91CAP9_BASE_PIOB 0xfffff400 |
103 | #define AT91CAP9_BASE_PIOC 0xfffff600 | 103 | #define AT91CAP9_BASE_PIOC 0xfffff600 |
diff --git a/arch/arm/mach-at91/include/mach/at91sam9260.h b/arch/arm/mach-at91/include/mach/at91sam9260.h index 1bea3dcae7bc..697465660955 100644 --- a/arch/arm/mach-at91/include/mach/at91sam9260.h +++ b/arch/arm/mach-at91/include/mach/at91sam9260.h | |||
@@ -80,7 +80,6 @@ | |||
80 | /* | 80 | /* |
81 | * System Peripherals (offset from AT91_BASE_SYS) | 81 | * System Peripherals (offset from AT91_BASE_SYS) |
82 | */ | 82 | */ |
83 | #define AT91_ECC (0xffffe800 - AT91_BASE_SYS) | ||
84 | #define AT91_SDRAMC0 (0xffffea00 - AT91_BASE_SYS) | 83 | #define AT91_SDRAMC0 (0xffffea00 - AT91_BASE_SYS) |
85 | #define AT91_SMC (0xffffec00 - AT91_BASE_SYS) | 84 | #define AT91_SMC (0xffffec00 - AT91_BASE_SYS) |
86 | #define AT91_MATRIX (0xffffee00 - AT91_BASE_SYS) | 85 | #define AT91_MATRIX (0xffffee00 - AT91_BASE_SYS) |
@@ -95,6 +94,7 @@ | |||
95 | #define AT91_WDT (0xfffffd40 - AT91_BASE_SYS) | 94 | #define AT91_WDT (0xfffffd40 - AT91_BASE_SYS) |
96 | #define AT91_GPBR (0xfffffd50 - AT91_BASE_SYS) | 95 | #define AT91_GPBR (0xfffffd50 - AT91_BASE_SYS) |
97 | 96 | ||
97 | #define AT91SAM9260_BASE_ECC 0xffffe800 | ||
98 | #define AT91SAM9260_BASE_PIOA 0xfffff400 | 98 | #define AT91SAM9260_BASE_PIOA 0xfffff400 |
99 | #define AT91SAM9260_BASE_PIOB 0xfffff600 | 99 | #define AT91SAM9260_BASE_PIOB 0xfffff600 |
100 | #define AT91SAM9260_BASE_PIOC 0xfffff800 | 100 | #define AT91SAM9260_BASE_PIOC 0xfffff800 |
diff --git a/arch/arm/mach-at91/include/mach/at91sam9263.h b/arch/arm/mach-at91/include/mach/at91sam9263.h index dd54079c5671..a668538340b9 100644 --- a/arch/arm/mach-at91/include/mach/at91sam9263.h +++ b/arch/arm/mach-at91/include/mach/at91sam9263.h | |||
@@ -74,10 +74,8 @@ | |||
74 | /* | 74 | /* |
75 | * System Peripherals (offset from AT91_BASE_SYS) | 75 | * System Peripherals (offset from AT91_BASE_SYS) |
76 | */ | 76 | */ |
77 | #define AT91_ECC0 (0xffffe000 - AT91_BASE_SYS) | ||
78 | #define AT91_SDRAMC0 (0xffffe200 - AT91_BASE_SYS) | 77 | #define AT91_SDRAMC0 (0xffffe200 - AT91_BASE_SYS) |
79 | #define AT91_SMC0 (0xffffe400 - AT91_BASE_SYS) | 78 | #define AT91_SMC0 (0xffffe400 - AT91_BASE_SYS) |
80 | #define AT91_ECC1 (0xffffe600 - AT91_BASE_SYS) | ||
81 | #define AT91_SDRAMC1 (0xffffe800 - AT91_BASE_SYS) | 79 | #define AT91_SDRAMC1 (0xffffe800 - AT91_BASE_SYS) |
82 | #define AT91_SMC1 (0xffffea00 - AT91_BASE_SYS) | 80 | #define AT91_SMC1 (0xffffea00 - AT91_BASE_SYS) |
83 | #define AT91_MATRIX (0xffffec00 - AT91_BASE_SYS) | 81 | #define AT91_MATRIX (0xffffec00 - AT91_BASE_SYS) |
@@ -93,6 +91,8 @@ | |||
93 | #define AT91_RTT1 (0xfffffd50 - AT91_BASE_SYS) | 91 | #define AT91_RTT1 (0xfffffd50 - AT91_BASE_SYS) |
94 | #define AT91_GPBR (0xfffffd60 - AT91_BASE_SYS) | 92 | #define AT91_GPBR (0xfffffd60 - AT91_BASE_SYS) |
95 | 93 | ||
94 | #define AT91SAM9263_BASE_ECC0 0xffffe000 | ||
95 | #define AT91SAM9263_BASE_ECC1 0xffffe600 | ||
96 | #define AT91SAM9263_BASE_PIOA 0xfffff200 | 96 | #define AT91SAM9263_BASE_PIOA 0xfffff200 |
97 | #define AT91SAM9263_BASE_PIOB 0xfffff400 | 97 | #define AT91SAM9263_BASE_PIOB 0xfffff400 |
98 | #define AT91SAM9263_BASE_PIOC 0xfffff600 | 98 | #define AT91SAM9263_BASE_PIOC 0xfffff600 |
diff --git a/arch/arm/mach-at91/include/mach/at91sam9g45.h b/arch/arm/mach-at91/include/mach/at91sam9g45.h index a487af5a2237..3c0b7c16d090 100644 --- a/arch/arm/mach-at91/include/mach/at91sam9g45.h +++ b/arch/arm/mach-at91/include/mach/at91sam9g45.h | |||
@@ -86,7 +86,6 @@ | |||
86 | /* | 86 | /* |
87 | * System Peripherals (offset from AT91_BASE_SYS) | 87 | * System Peripherals (offset from AT91_BASE_SYS) |
88 | */ | 88 | */ |
89 | #define AT91_ECC (0xffffe200 - AT91_BASE_SYS) | ||
90 | #define AT91_DDRSDRC1 (0xffffe400 - AT91_BASE_SYS) | 89 | #define AT91_DDRSDRC1 (0xffffe400 - AT91_BASE_SYS) |
91 | #define AT91_DDRSDRC0 (0xffffe600 - AT91_BASE_SYS) | 90 | #define AT91_DDRSDRC0 (0xffffe600 - AT91_BASE_SYS) |
92 | #define AT91_SMC (0xffffe800 - AT91_BASE_SYS) | 91 | #define AT91_SMC (0xffffe800 - AT91_BASE_SYS) |
@@ -103,6 +102,7 @@ | |||
103 | #define AT91_GPBR (0xfffffd60 - AT91_BASE_SYS) | 102 | #define AT91_GPBR (0xfffffd60 - AT91_BASE_SYS) |
104 | #define AT91_RTC (0xfffffdb0 - AT91_BASE_SYS) | 103 | #define AT91_RTC (0xfffffdb0 - AT91_BASE_SYS) |
105 | 104 | ||
105 | #define AT91SAM9G45_BASE_ECC 0xffffe200 | ||
106 | #define AT91SAM9G45_BASE_PIOA 0xfffff200 | 106 | #define AT91SAM9G45_BASE_PIOA 0xfffff200 |
107 | #define AT91SAM9G45_BASE_PIOB 0xfffff400 | 107 | #define AT91SAM9G45_BASE_PIOB 0xfffff400 |
108 | #define AT91SAM9G45_BASE_PIOC 0xfffff600 | 108 | #define AT91SAM9G45_BASE_PIOC 0xfffff600 |
diff --git a/arch/arm/mach-at91/include/mach/at91sam9rl.h b/arch/arm/mach-at91/include/mach/at91sam9rl.h index d3ef11ad04df..d9efe5ac93f0 100644 --- a/arch/arm/mach-at91/include/mach/at91sam9rl.h +++ b/arch/arm/mach-at91/include/mach/at91sam9rl.h | |||
@@ -70,7 +70,6 @@ | |||
70 | * System Peripherals (offset from AT91_BASE_SYS) | 70 | * System Peripherals (offset from AT91_BASE_SYS) |
71 | */ | 71 | */ |
72 | #define AT91_DMA (0xffffe600 - AT91_BASE_SYS) | 72 | #define AT91_DMA (0xffffe600 - AT91_BASE_SYS) |
73 | #define AT91_ECC (0xffffe800 - AT91_BASE_SYS) | ||
74 | #define AT91_SDRAMC0 (0xffffea00 - AT91_BASE_SYS) | 73 | #define AT91_SDRAMC0 (0xffffea00 - AT91_BASE_SYS) |
75 | #define AT91_SMC (0xffffec00 - AT91_BASE_SYS) | 74 | #define AT91_SMC (0xffffec00 - AT91_BASE_SYS) |
76 | #define AT91_MATRIX (0xffffee00 - AT91_BASE_SYS) | 75 | #define AT91_MATRIX (0xffffee00 - AT91_BASE_SYS) |
@@ -87,6 +86,7 @@ | |||
87 | #define AT91_GPBR (0xfffffd60 - AT91_BASE_SYS) | 86 | #define AT91_GPBR (0xfffffd60 - AT91_BASE_SYS) |
88 | #define AT91_RTC (0xfffffe00 - AT91_BASE_SYS) | 87 | #define AT91_RTC (0xfffffe00 - AT91_BASE_SYS) |
89 | 88 | ||
89 | #define AT91SAM9RL_BASE_ECC 0xffffe800 | ||
90 | #define AT91SAM9RL_BASE_PIOA 0xfffff400 | 90 | #define AT91SAM9RL_BASE_PIOA 0xfffff400 |
91 | #define AT91SAM9RL_BASE_PIOB 0xfffff600 | 91 | #define AT91SAM9RL_BASE_PIOB 0xfffff600 |
92 | #define AT91SAM9RL_BASE_PIOC 0xfffff800 | 92 | #define AT91SAM9RL_BASE_PIOC 0xfffff800 |