Good day!

Writing to you Warner because you made cfi driver.
I found what Spansion S29AL032D90TFII03 and S29GL064A90TFI03 detect in byte 
mode on addresses shifted by 1,
and in chip manual I found what, 
in byte mode we read on shifted address (like 0x20 for 'Q'),
in word mode we read on non shifted address (like 0x10 for 'Q')

So if we wont to use same driver for any CFI chips, we need to test on shifted 
addresses.

Temporary I change
val = bus_space_read_1(sc->sc_tag, sc->sc_handle, ofs);
to
val = bus_space_read_1(sc->sc_tag, sc->sc_handle, ofs<<1);

And chip detect correctly.

Thunks.

-- 
Alexandr Rybalko <r...@dlink.ua>
_______________________________________________
freebsd-hardware@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hardware
To unsubscribe, send any mail to "freebsd-hardware-unsubscr...@freebsd.org"

Reply via email to