Date: Fri, 12 Jun 2009 11:09:32 +0300 From: Alexandr Rybalko <ray@dlink.ua> To: "M. Warner Losh" <imp@bsdimp.com> Cc: freebsd-mips@freebsd.org, freebsd-hardware@freebsd.org Subject: CFI Message-ID: <20090612110932.22f2dfa6.ray@dlink.ua>
next in thread | raw e-mail | index | archive | help
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 <ray@dlink.ua>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090612110932.22f2dfa6.ray>