Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68459
b: refs/heads/master
c: 02d9291
h: refs/heads/master
i:
  68457: 57fa260
  68455: 16edf50
v: v3
  • Loading branch information
Stefan Roese authored and David Woodhouse committed Jun 28, 2007
1 parent 1a4a719 commit 6e64962
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 356d70f19d949a11320ab626037b2d197a8e8b51
refs/heads/master: 02d929187414f2095b30ebf4acee1ce6617add45
4 changes: 2 additions & 2 deletions trunk/drivers/mtd/nand/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 8 additions & 0 deletions trunk/drivers/mtd/nand/ndfc.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
#include <linux/platform_device.h>

#include <asm/io.h>
#ifdef CONFIG_40x
#include <asm/ibm405.h>
#else
#include <asm/ibm44x.h>
#endif

struct ndfc_nand_mtd {
struct mtd_info mtd;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 6e64962

Please sign in to comment.