]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mtd: nand: mtk: add ->setup_data_interface() hook
authorXiaolei Li <xiaolei.li@mediatek.com>
Fri, 23 Jun 2017 07:12:28 +0000 (15:12 +0800)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Sun, 25 Jun 2017 14:54:03 +0000 (16:54 +0200)
commitedfee3619c4955be38d414f25bd4f6c5c1b029ba
treeb977ffef5949b79662e40e45bca292a68018d8e5
parentc4ec13543e322d4cc68eb6018f5a8a8858d0053a
mtd: nand: mtk: add ->setup_data_interface() hook

Currently, we use the fixed ACC timing 0x10804211. This is not the best
setting for each case. Actually, MTK NAND controller can adapt ACC timings
dynamically according to nfi clock frequence.
Implement the ->setup_data_interface() hook to optimize driver performance.

Signed-off-by: Xiaolei Li <xiaolei.li@mediatek.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/mtk_nand.c