diff options
author | Andrew Victor <linux@maxim.org.za> | 2008-09-21 16:30:02 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-09-21 17:58:36 -0400 |
commit | e505240b6a6fd47b84cfeb1272ffeacd3e0874b3 (patch) | |
tree | 4a1b9b3715bcf2f52c4ba86e1212c9edd09badfe /arch/arm/mach-at91/board-dk.c | |
parent | a745a622434d9c3ff6505125b37fd6828ecadb87 (diff) |
[ARM] 5257/2: [AT91] Use SZ_ definitions and MTDPART_OFS_NXTBLK instead of hex-values
In the various AT91 board files, replace hard-coded size values (eg,
0x800000) with the SZ_ size definitions (eg, SZ_8M) from sizes.h
Also replace MTD partition offsets with MTDPART_OFS_NXTBLK.
Signed-off-by: Andrew Victor <linux@maxim.org.za>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-at91/board-dk.c')
-rw-r--r-- | arch/arm/mach-at91/board-dk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-at91/board-dk.c b/arch/arm/mach-at91/board-dk.c index 43e1aa7ecef7..0fd0f5bc77ea 100644 --- a/arch/arm/mach-at91/board-dk.c +++ b/arch/arm/mach-at91/board-dk.c | |||
@@ -29,7 +29,6 @@ | |||
29 | #include <linux/spi/spi.h> | 29 | #include <linux/spi/spi.h> |
30 | #include <linux/mtd/physmap.h> | 30 | #include <linux/mtd/physmap.h> |
31 | 31 | ||
32 | #include <mach/hardware.h> | ||
33 | #include <asm/setup.h> | 32 | #include <asm/setup.h> |
34 | #include <asm/mach-types.h> | 33 | #include <asm/mach-types.h> |
35 | #include <asm/irq.h> | 34 | #include <asm/irq.h> |
@@ -38,6 +37,7 @@ | |||
38 | #include <asm/mach/map.h> | 37 | #include <asm/mach/map.h> |
39 | #include <asm/mach/irq.h> | 38 | #include <asm/mach/irq.h> |
40 | 39 | ||
40 | #include <mach/hardware.h> | ||
41 | #include <mach/board.h> | 41 | #include <mach/board.h> |
42 | #include <mach/gpio.h> | 42 | #include <mach/gpio.h> |
43 | #include <mach/at91rm9200_mc.h> | 43 | #include <mach/at91rm9200_mc.h> |
@@ -157,7 +157,7 @@ static struct atmel_nand_data __initdata dk_nand_data = { | |||
157 | }; | 157 | }; |
158 | 158 | ||
159 | #define DK_FLASH_BASE AT91_CHIPSELECT_0 | 159 | #define DK_FLASH_BASE AT91_CHIPSELECT_0 |
160 | #define DK_FLASH_SIZE 0x200000 | 160 | #define DK_FLASH_SIZE SZ_2M |
161 | 161 | ||
162 | static struct physmap_flash_data dk_flash_data = { | 162 | static struct physmap_flash_data dk_flash_data = { |
163 | .width = 2, | 163 | .width = 2, |