Skip to contentSkip to conversation

CFI chip detection

DISCUSSION David Vrabel 2 participants 2 messages Aug 7, 2000 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi,

In cfi_cfi_probe() there is

	for (base = (1<<cfi.chipshift) * cfi.interleave; base < map->size; base
+=
	     (1<<cfi.chipshift) * cfi.interleave)
		cfi_probe_new_chip(map, base, &chip[0], &cfi);
		...

to detect aditional chips. However is did not work on the board I have (SBC-MediaGX). Removing the `* cfi.interleave' caused additional chips to be detected. Is this a quirk particular to this board or is the above code wrong?

The SBC-MediaGX has:
1x 28F640 in x8 mode for the 8 Mbyte board
2x 28F640 in x8 mode for the 16 Mbyte board

David Vrabel

To unsubscribe, send "unsubscribe mtd" to [email protected]

#1 lore raw
Quoted 7 lines · [email protected] said:

Removing the `* cfi.interleave' caused additional chips to be
detected. Is this a quirk particular to this board or is the above code wrong?

The SBC-MediaGX has:
1x 28F640 in x8 mode for the 8 Mbyte board
2x 28F640 in x8 mode for the 16 Mbyte board

Odd. How exactly are the chips mapped in the 16 MB board? Are they interleaved, or just concurrently mapped?

Can you show the output when it fails to detect the second chip?

--
dwmw2

To unsubscribe, send "unsubscribe mtd" to [email protected]