]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/mach-omap2/board-3430sdp-flash.c
OMAP3 flash: fix use of system_rev in board-3430sdp-flash.c
[linux-2.6-omap-h63xx.git] / arch / arm / mach-omap2 / board-3430sdp-flash.c
index b16f70c9e852561363125dd9f48b7b5c80515e87..51dd839c61b6f7b0775dc8d6315ff1a8fa5f6c0f 100644 (file)
@@ -26,6 +26,8 @@
 #include <mach/gpmc.h>
 #include <mach/nand.h>
 
+#define NAND_BLOCK_SIZE                SZ_128K
+
 static struct mtd_partition sdp_nor_partitions[] = {
        /* bootloader (U-Boot, etc) in first sector */
        {
@@ -208,7 +210,7 @@ void __init sdp3430_flash_init(void)
        gpmc_base_add   = OMAP34XX_GPMC_VIRT;
 
        /* Configure start address and size of NOR device */
-       if (system_rev > OMAP3430_REV_ES1_0) {
+       if (omap_rev() > OMAP3430_REV_ES1_0) {
                sdp_nor_resource.start  = FLASH_BASE_SDPV2;
                sdp_nor_resource.end    = FLASH_BASE_SDPV2
                                                + FLASH_SIZE_SDPV2 - 1;