diff options
| author | Brian Norris <[email protected]> | 2014-01-29 22:08:12 +0000 |
|---|---|---|
| committer | Brian Norris <[email protected]> | 2014-03-11 05:42:22 +0000 |
| commit | 3dad2344e92c6e1aeae42df1c4824f307c51bcc7 (patch) | |
| tree | ca71a7005c582cd98eebf5e16049b125564925f5 /drivers/mtd/lpddr/lpddr_cmds.c | |
| parent | mtd: nand: add support for SanDisk SDTNRGAMA-008G (diff) | |
| download | kernel-3dad2344e92c6e1aeae42df1c4824f307c51bcc7.tar.gz kernel-3dad2344e92c6e1aeae42df1c4824f307c51bcc7.zip | |
mtd: nand: force NAND_CMD_READID onto 8-bit bus
The NAND command helpers tend to automatically shift the column address
for x16 bus devices, since most commands expect a word address, not a
byte address. The Read ID command, however, expects an 8-bit address
(i.e., 0x00, 0x20, or 0x40 should not be translated to 0x00, 0x10, or
0x20).
This fixes the column address for a few drivers which imitate the
nand_base defaults. Note that I don't touch sh_flctl.c, since it already
handles this problem slightly differently (note its comment "READID is
always performed using an 8-bit bus").
I have not tested this patch, as I only have x8 parts up for testing at
this point. Hopefully that can change soon...
Signed-off-by: Brian Norris <[email protected]>
Tested-by: Ezequiel Garcia <[email protected]>
Tested-By: Pekon Gupta <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions
