From 6e649622e4e24d59ad014ddf1ca7d9325e65c332 Mon Sep 17 00:00:00 2001 From: Stefan Roese Date: Tue, 22 May 2007 11:23:45 +0200 Subject: [PATCH] --- yaml --- r: 68459 b: refs/heads/master c: 02d929187414f2095b30ebf4acee1ce6617add45 h: refs/heads/master i: 68457: 57fa260dfa1f33cb34d5645493f1e1a8e83df4c0 68455: 16edf501621b60d533fc86cd1bb38acaf8585b85 v: v3 --- [refs] | 2 +- trunk/drivers/mtd/nand/Kconfig | 4 ++-- trunk/drivers/mtd/nand/ndfc.c | 8 ++++++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index f84e6873fd26..c6ff97e05843 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 356d70f19d949a11320ab626037b2d197a8e8b51 +refs/heads/master: 02d929187414f2095b30ebf4acee1ce6617add45 diff --git a/trunk/drivers/mtd/nand/Kconfig b/trunk/drivers/mtd/nand/Kconfig index f1d60b6f048e..d8b8fce511a8 100644 --- a/trunk/drivers/mtd/nand/Kconfig +++ b/trunk/drivers/mtd/nand/Kconfig @@ -134,10 +134,10 @@ config MTD_NAND_S3C2410_HWECC config MTD_NAND_NDFC tristate "NDFC NanD Flash Controller" - depends on 44x + depends on 4xx select MTD_NAND_ECC_SMC help - NDFC Nand Flash Controllers are integrated in EP44x SoCs + NDFC Nand Flash Controllers are integrated in IBM/AMCC's 4xx SoCs config MTD_NAND_S3C2410_CLKSTOP bool "S3C2410 NAND IDLE clock stop" diff --git a/trunk/drivers/mtd/nand/ndfc.c b/trunk/drivers/mtd/nand/ndfc.c index fd7a8d5ba29a..1c0e89f00e8d 100644 --- a/trunk/drivers/mtd/nand/ndfc.c +++ b/trunk/drivers/mtd/nand/ndfc.c @@ -24,7 +24,11 @@ #include #include +#ifdef CONFIG_40x +#include +#else #include +#endif struct ndfc_nand_mtd { struct mtd_info mtd; @@ -230,7 +234,11 @@ static int ndfc_nand_probe(struct platform_device *pdev) struct ndfc_controller *ndfc = &ndfc_ctrl; unsigned long long phys = settings->ndfc_erpn | res->start; +#ifndef CONFIG_PHYS_64BIT + ndfc->ndfcbase = ioremap((phys_addr_t)phys, res->end - res->start + 1); +#else ndfc->ndfcbase = ioremap64(phys, res->end - res->start + 1); +#endif if (!ndfc->ndfcbase) { printk(KERN_ERR "NDFC: ioremap failed\n"); return -EIO;