Skip to content
Snippets Groups Projects
Commit 1bc66a57 authored by Marcel Ziswiler's avatar Marcel Ziswiler Committed by Tom Warren
Browse files

tegra: nand: fix read_byte required for proper onfi detection


Fix PIO read_byte() implementation not only used for the legacy READ ID
but also the PARAM command required for proper ONFI detection.

This fix is inspired by Lucas Stach's Linux Tegra NAND driver of late
(not mainline yet but getting there soon I hope).

I vaguely remember that those commands are special on 16-bit bus NAND
(e.g. always return 8-bit data regardless) and later Linux MTD fixed/
changed the way this is handled which in turn broke once U-Boot pulled
that in. Basically instead of doing PIO read regular DMA block read is
now used which this patch actually fixes.

Signed-off-by: default avatarMarcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: default avatarScott Wood <scottwood@freescale.com>
Signed-off-by: default avatarTom Warren <twarren@nvidia.com>
parent 10ef82d3
No related branches found
No related tags found
Loading
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