NetBSD/sys/dev/nor
phx 9a36cd1663 - In cfi_probe() iterate over all chip widths for every port width to find
x8/x16 configurations, or two x8 chips forming a x16 port width.
- The offset in cfi_cmd() is now always given for 64-bit port width.
  It will be scaled down for the actual port width to avoid problems
  with 0x2aa -> 0x554 instead of 0x555.
- Added missing cfi_reset_default() in cfi_jedec_id(). The reset is
  needed, because the chip was still in CFI-Query mode.
- Removed everything dealing with cfi_opmodes. It only complicates things
  and I found no reason for keeping them. The port width and chip width
  is known, so I just introduced a new cfi_read_qry() function which reads
  a single word using bus_space_read_N() from the QRY structure, which
  can be checked for 'Q', 'R' and 'Y'. That's all we need, before
  reading and unpacking the whole QRY and PRI structures.
- Added two new fields, cfi_unlock_addr1 and cfi_unlock_addr2 to
  the cfi struct. The unlock offsets should be kept variable, depending
  on the manufacturer or command set version.

Changes have been discussed with cliff@.
2011-12-17 19:42:41 +00:00
..
cfi.c - In cfi_probe() iterate over all chip widths for every port width to find 2011-12-17 19:42:41 +00:00
cfi.h - In cfi_probe() iterate over all chip widths for every port width to find 2011-12-17 19:42:41 +00:00
cfi_0002.c - In cfi_probe() iterate over all chip widths for every port width to find 2011-12-17 19:42:41 +00:00
cfi_0002.h add TNF copyright 2011-07-19 20:52:10 +00:00
files.nor - add option flags CFI_DEBUG_QRY CFI_DEBUG_JEDEC in opt_cfi.h 2011-07-23 06:24:54 +00:00
nor.c add JEDEC Mfgr ID for Macronix 2011-08-02 20:44:09 +00:00
nor.h add JEDEC Mfgr ID for Macronix 2011-08-02 20:44:09 +00:00