Skip to content

Commit

Permalink
mtd: rawnand: gpmi: support ->setup_data_interface()
Browse files Browse the repository at this point in the history
Until now the GPMI driver had its own timings logic while the core
already handles that and request the NAND controller drivers to support
the ->setup_data_interface() hook. Implement that hook by reusing the
already existing function. No real glue is necessary between core timing
delays and GPMI registers because the driver already translates the
ONFI timing modes into register values.

Make use of the core's tREA, tRLOH and tRHOH values that allow computing
more precise timings for mode [0-3] and get significantly better values
(+20% with an i.MX6 Sabre Auto board). Otherwise use the existing logic.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Tested-by: Han Xu <han.xu@nxp.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
  • Loading branch information
Miquel Raynal authored and Boris Brezillon committed Mar 20, 2018
1 parent bd0b643 commit 76e1a00
Show file tree
Hide file tree
Showing 3 changed files with 150 additions and 250 deletions.
Loading

0 comments on commit 76e1a00

Please sign in to comment.