diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2010-08-06 09:53:04 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-08-06 11:34:44 -0400 |
commit | 938cf997f998f3172e7cb9beafceccdec259b10d (patch) | |
tree | 912704c1f85629adb882c794be4e51137f251293 /drivers/mtd/nand | |
parent | 08b9ab9996c7e582f86da319f43d2dcb8ff55993 (diff) |
mxc_nand: remove 0xe00 offset from registers
Add the offset to the register base instead. This is done
in preparation for v3 controller support.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r-- | drivers/mtd/nand/mxc_nand.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c index e8dc6468f8bc..f14f93392491 100644 --- a/drivers/mtd/nand/mxc_nand.c +++ b/drivers/mtd/nand/mxc_nand.c | |||
@@ -41,22 +41,22 @@ | |||
41 | #define nfc_is_v1() (cpu_is_mx31() || cpu_is_mx27() || cpu_is_mx21()) | 41 | #define nfc_is_v1() (cpu_is_mx31() || cpu_is_mx27() || cpu_is_mx21()) |
42 | 42 | ||
43 | /* Addresses for NFC registers */ | 43 | /* Addresses for NFC registers */ |
44 | #define NFC_BUF_SIZE 0xE00 | 44 | #define NFC_BUF_SIZE 0x00 |
45 | #define NFC_BUF_ADDR 0xE04 | 45 | #define NFC_BUF_ADDR 0x04 |
46 | #define NFC_FLASH_ADDR 0xE06 | 46 | #define NFC_FLASH_ADDR 0x06 |
47 | #define NFC_FLASH_CMD 0xE08 | 47 | #define NFC_FLASH_CMD 0x08 |
48 | #define NFC_CONFIG 0xE0A | 48 | #define NFC_CONFIG 0x0a |
49 | #define NFC_ECC_STATUS_RESULT 0xE0C | 49 | #define NFC_ECC_STATUS_RESULT 0x0c |
50 | #define NFC_RSLTMAIN_AREA 0xE0E | 50 | #define NFC_RSLTMAIN_AREA 0x0e |
51 | #define NFC_RSLTSPARE_AREA 0xE10 | 51 | #define NFC_RSLTSPARE_AREA 0x10 |
52 | #define NFC_WRPROT 0xE12 | 52 | #define NFC_WRPROT 0x12 |
53 | #define NFC_V1_UNLOCKSTART_BLKADDR 0xe14 | 53 | #define NFC_V1_UNLOCKSTART_BLKADDR 0x14 |
54 | #define NFC_V1_UNLOCKEND_BLKADDR 0xe16 | 54 | #define NFC_V1_UNLOCKEND_BLKADDR 0x16 |
55 | #define NFC_V21_UNLOCKSTART_BLKADDR 0xe20 | 55 | #define NFC_V21_UNLOCKSTART_BLKADDR 0x20 |
56 | #define NFC_V21_UNLOCKEND_BLKADDR 0xe22 | 56 | #define NFC_V21_UNLOCKEND_BLKADDR 0x22 |
57 | #define NFC_NF_WRPRST 0xE18 | 57 | #define NFC_NF_WRPRST 0x18 |
58 | #define NFC_CONFIG1 0xE1A | 58 | #define NFC_CONFIG1 0x1a |
59 | #define NFC_CONFIG2 0xE1C | 59 | #define NFC_CONFIG2 0x1c |
60 | 60 | ||
61 | /* Set INT to 0, FCMD to 1, rest to 0 in NFC_CONFIG2 Register | 61 | /* Set INT to 0, FCMD to 1, rest to 0 in NFC_CONFIG2 Register |
62 | * for Command operation */ | 62 | * for Command operation */ |
@@ -764,14 +764,14 @@ static int __init mxcnd_probe(struct platform_device *pdev) | |||
764 | host->main_area1 = host->base + 0x200; | 764 | host->main_area1 = host->base + 0x200; |
765 | 765 | ||
766 | if (nfc_is_v21()) { | 766 | if (nfc_is_v21()) { |
767 | host->regs = host->base + 0x1000; | 767 | host->regs = host->base + 0x1e00; |
768 | host->spare0 = host->base + 0x1000; | 768 | host->spare0 = host->base + 0x1000; |
769 | host->spare_len = 64; | 769 | host->spare_len = 64; |
770 | oob_smallpage = &nandv2_hw_eccoob_smallpage; | 770 | oob_smallpage = &nandv2_hw_eccoob_smallpage; |
771 | oob_largepage = &nandv2_hw_eccoob_largepage; | 771 | oob_largepage = &nandv2_hw_eccoob_largepage; |
772 | this->ecc.bytes = 9; | 772 | this->ecc.bytes = 9; |
773 | } else if (nfc_is_v1()) { | 773 | } else if (nfc_is_v1()) { |
774 | host->regs = host->base; | 774 | host->regs = host->base + 0xe00; |
775 | host->spare0 = host->base + 0x800; | 775 | host->spare0 = host->base + 0x800; |
776 | host->spare_len = 16; | 776 | host->spare_len = 16; |
777 | oob_smallpage = &nandv1_hw_eccoob_smallpage; | 777 | oob_smallpage = &nandv1_hw_eccoob_smallpage; |