diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2014-02-25 11:42:59 -0500 |
|---|---|---|
| committer | Arnd Bergmann <arnd@arndb.de> | 2014-02-25 11:43:20 -0500 |
| commit | 8c4a57bcd80532c4fef5f87d0c53be25718294ed (patch) | |
| tree | 56e21b6d7201bac111162d0888aa4334051255d8 /drivers | |
| parent | b5feaefb45e878a6a4900925e5bdae9b73257616 (diff) | |
| parent | 67f5185cad24b3c3d9ab07508dfcab55cdab02de (diff) | |
Merge tag 'davinci-for-v3.15/nand' of git://git.kernel.org/pub/scm/linux/kernel/git/nsekhar/linux-davinci into next/drivers
A patch to break dependency of DaVinci NAND
driver with mach-davinci. Required for reuse
of driver on other platforms (keystone).
* tag 'davinci-for-v3.15/nand' of git://git.kernel.org/pub/scm/linux/kernel/git/nsekhar/linux-davinci:
ARM: davinci: aemif: get rid of davinci-nand driver dependency on aemif
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/mtd/nand/davinci_nand.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c index a4989ec6292e..8eb6a36f125a 100644 --- a/drivers/mtd/nand/davinci_nand.c +++ b/drivers/mtd/nand/davinci_nand.c | |||
| @@ -746,28 +746,6 @@ static int nand_davinci_probe(struct platform_device *pdev) | |||
| 746 | goto err_clk_enable; | 746 | goto err_clk_enable; |
| 747 | } | 747 | } |
| 748 | 748 | ||
| 749 | /* | ||
| 750 | * Setup Async configuration register in case we did not boot from | ||
| 751 | * NAND and so bootloader did not bother to set it up. | ||
| 752 | */ | ||
| 753 | val = davinci_nand_readl(info, A1CR_OFFSET + info->core_chipsel * 4); | ||
| 754 | |||
| 755 | /* Extended Wait is not valid and Select Strobe mode is not used */ | ||
| 756 | val &= ~(ACR_ASIZE_MASK | ACR_EW_MASK | ACR_SS_MASK); | ||
| 757 | if (info->chip.options & NAND_BUSWIDTH_16) | ||
| 758 | val |= 0x1; | ||
| 759 | |||
| 760 | davinci_nand_writel(info, A1CR_OFFSET + info->core_chipsel * 4, val); | ||
| 761 | |||
| 762 | ret = 0; | ||
| 763 | if (info->timing) | ||
| 764 | ret = davinci_aemif_setup_timing(info->timing, info->base, | ||
| 765 | info->core_chipsel); | ||
| 766 | if (ret < 0) { | ||
| 767 | dev_dbg(&pdev->dev, "NAND timing values setup fail\n"); | ||
| 768 | goto err; | ||
| 769 | } | ||
| 770 | |||
| 771 | spin_lock_irq(&davinci_nand_lock); | 749 | spin_lock_irq(&davinci_nand_lock); |
| 772 | 750 | ||
| 773 | /* put CSxNAND into NAND mode */ | 751 | /* put CSxNAND into NAND mode */ |
