diff options
author | Kyungmin Park <kyungmin.park@samsung.com> | 2006-11-15 21:23:48 -0500 |
---|---|---|
committer | Kyungmin Park <kyungmin.park@samsung.com> | 2006-11-15 21:23:48 -0500 |
commit | 2c22120fbd017d78ad2b6825ba573db3ef539bca (patch) | |
tree | 017c70446ff2a985e138a1352f0bad34f503bddd /drivers/mtd/onenand/generic.c | |
parent | ff0dab64b4e9ce3a073365342297e76ddaae9697 (diff) |
MTD: OneNAND: interrupt based wait support
We can use the two methods to wait.
1. polling: read interrupt status register
2. interrupt: use kernel ineterrupt mechanism
To use interrupt method, you first connect onenand interrupt pin to your
platform and configure interrupt properly
Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
Diffstat (limited to 'drivers/mtd/onenand/generic.c')
-rw-r--r-- | drivers/mtd/onenand/generic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/onenand/generic.c b/drivers/mtd/onenand/generic.c index af06a80f44d..cdf80c68160 100644 --- a/drivers/mtd/onenand/generic.c +++ b/drivers/mtd/onenand/generic.c | |||
@@ -63,6 +63,7 @@ static int __devinit generic_onenand_probe(struct device *dev) | |||
63 | } | 63 | } |
64 | 64 | ||
65 | info->onenand.mmcontrol = pdata->mmcontrol; | 65 | info->onenand.mmcontrol = pdata->mmcontrol; |
66 | info->onenand.irq = platform_get_irq(pdev, 0); | ||
66 | 67 | ||
67 | info->mtd.name = pdev->dev.bus_id; | 68 | info->mtd.name = pdev->dev.bus_id; |
68 | info->mtd.priv = &info->onenand; | 69 | info->mtd.priv = &info->onenand; |