Linux-mtd Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Multiple NANDs on non contiguous chip selects, how?
@ 2016-02-15 12:22 Sascha Hauer
  2016-02-21  7:36 ` Boris Brezillon
  0 siblings, 1 reply; 3+ messages in thread
From: Sascha Hauer @ 2016-02-15 12:22 UTC (permalink / raw)
  To: linux-mtd

Hi all,

I have a i.MX6 board here which has two NAND chips connected to CS0 and
CS2 on the same controller. The current code in nand_scan_ident iterates
over the chip selects and bails out when there's nothing found on a chip
select. This means the current code never finds the chip on CS2 since it
already bails out after probing the empty CS1.

Any preferences how this should be handled? I could implement a i.MX6
specific mapping function, possibly initialized from the device tree, to
map the real chip selects to contiguous chip selects for the NAND layer.

Normally such a function should not be needed since we could autodetect
if a chip select has a device connected or not, so the NAND layer could
handle this without driver intervention, but is that what we want?

Any ideas/opinions?

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-23  6:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-15 12:22 Multiple NANDs on non contiguous chip selects, how? Sascha Hauer
2016-02-21  7:36 ` Boris Brezillon
2016-02-23  6:48   ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox