Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298150
b: refs/heads/master
c: b2acc92
h: refs/heads/master
v: v3
  • Loading branch information
Shiraz Hashim authored and David Woodhouse committed Mar 26, 2012
1 parent cb1eaf4 commit 0cd878d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 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: e29ee57b1d33abf119cb332a3d8fa69c9cd39096
refs/heads/master: b2acc92e144336dd29e30dc5d26439355be750b6
9 changes: 5 additions & 4 deletions trunk/drivers/mtd/nand/fsmc_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -729,27 +729,28 @@ static int __init fsmc_nand_probe(struct platform_device *pdev)
goto err_probe1;
}

host->resaddr = request_mem_region(res->start + PLAT_NAND_ALE,
host->resaddr = request_mem_region(res->start + pdata->ale_off,
resource_size(res), pdev->name);
if (!host->resaddr) {
ret = -EIO;
goto err_probe1;
}

host->addr_va = ioremap(res->start + PLAT_NAND_ALE, resource_size(res));
host->addr_va = ioremap(res->start + pdata->ale_off,
resource_size(res));
if (!host->addr_va) {
ret = -EIO;
goto err_probe1;
}

host->rescmd = request_mem_region(res->start + PLAT_NAND_CLE,
host->rescmd = request_mem_region(res->start + pdata->cle_off,
resource_size(res), pdev->name);
if (!host->rescmd) {
ret = -EIO;
goto err_probe1;
}

host->cmd_va = ioremap(res->start + PLAT_NAND_CLE, resource_size(res));
host->cmd_va = ioremap(res->start + pdata->cle_off, resource_size(res));
if (!host->cmd_va) {
ret = -EIO;
goto err_probe1;
Expand Down
5 changes: 5 additions & 0 deletions trunk/include/linux/mtd/fsmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ struct fsmc_nand_platform_data {
unsigned int options;
unsigned int width;
unsigned int bank;

/* CLE, ALE offsets */
unsigned long cle_off;
unsigned long ale_off;

void (*select_bank)(uint32_t bank, uint32_t busw);
};

Expand Down

0 comments on commit 0cd878d

Please sign in to comment.