• Daniel Mack's avatar
    mtd: OMAP: Enable GPMC prefetch mode · c316f577
    Daniel Mack authored
    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>
    c316f577
README.nand 14.7 KB