OSDN Git Service

mtd: rawnand: Introduce nand_choose_best_sdr_timings()
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 29 May 2020 11:13:15 +0000 (13:13 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 26 Jun 2020 06:35:07 +0000 (08:35 +0200)
commitb5b39f640c1f5621ed4ff6418e74ee35ff5d988e
treed616cbada102ca2c84d0c8cc6016f3b962e1f3a1
parent42a9ad050e6f1f6e909e2117e7a99f54f5336939
mtd: rawnand: Introduce nand_choose_best_sdr_timings()

Extract the logic out of nand_choose_interface_config() to create a
public helper that can be reused by manufacturer drivers. Add the
possibility to provide a specific set of timings.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://lore.kernel.org/linux-mtd/20200529111322.7184-22-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/internals.h
drivers/mtd/nand/raw/nand_base.c