Skip to content
Snippets Groups Projects
Commit c316f577 authored by Daniel Mack's avatar Daniel Mack Committed by Tom Rini
Browse files

mtd: OMAP: Enable GPMC prefetch mode


Enable GPMC's prefetch feature for NAND access. This speeds up NAND read
access a lot by pre-fetching contents in the background and reading them
through the FIFO address.

The current implementation has two limitations:

 a) it only works in 8-bit mode
 b) it only supports read access

Both is easily fixable by someone who has hardware to implement it.

Note that U-Boot code uses non word-aligned buffers to read data into, and
request read lengths that are not multiples of 4, so both partial buffers
(head and tail) have to be addressed.

Tested on AM335x hardware.

Tested-by: default avatarGuido Martínez <guido@vanguardiasur.com.ar>
Reviewed-by: default avatarGuido Martínez <guido@vanguardiasur.com.ar>
Signed-off-by: default avatarDaniel Mack <zonque@gmail.com>
[trini: Make apply again, use 'cs' fix pointed out by Guido]
Signed-off-by: default avatarTom Rini <trini@ti.com>
parent 92fa7f53
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment