History log of /netbsd-src/sys/dev/nand/nand.c (Results 1 – 25 of 29)
Revision Date Author Comments
# c7fb772b 07-Aug-2021 thorpej <thorpej@NetBSD.org>

Merge thorpej-cfargs2.


# 2685996b 24-Apr-2021 thorpej <thorpej@NetBSD.org>

Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass a

Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
actually needed.
- Don't be explicit about what interface attribute is attaching if
the device only has one. (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
situations, making is visibly easier to see when indirect config is
in play, and allowing for future change in semantics. (As of now,
this is just a wrapper around config_match(), but that is an
implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).

show more ...


# 10a1f0e4 13-Nov-2017 jmcneill <jmcneill@NetBSD.org>

Add support for dynamic flash partitions


# 57ab95bf 09-Nov-2017 jmcneill <jmcneill@NetBSD.org>

Add support for decoding legacy Toshiba TC58NVG2S0H NAND chip params.


# 4c5b9cca 04-Oct-2016 kiyohara <kiyohara@NetBSD.org>

Use ONFI_STATUS_WP instead of 0x80.


# 970906a8 04-Oct-2016 kiyohara <kiyohara@NetBSD.org>

Wait STATUS_RDY after ONFI_RESET.


# e5cfe5de 20-Oct-2013 christos <christos@NetBSD.org>

remove unused


# 57f2b3b2 03-Nov-2012 ahoka <ahoka@NetBSD.org>

Endiannes fixes from Brett Slager in ONFI Param page parsing.
Similar changes in nandemulator by me.
Remove panic about more than one LUNs.


# e30fb1ab 03-Nov-2012 ahoka <ahoka@NetBSD.org>

Make nc_block_pages go aways, its redundant and unused.
Print more info on attach including the width.


# 61a70aee 02-Nov-2012 pgoyette <pgoyette@NetBSD.org>

Use %zu formats to print size_t values.


# 3c5212aa 02-Nov-2012 ahoka <ahoka@NetBSD.org>

No longer use size_t in the chip structure.


# 11d96520 31-Oct-2012 riz <riz@NetBSD.org>

Hook nand_samsung.c into the build, and use it if a legacy chip
from Samsung is found.


# 90d75190 12-Jul-2012 matt <matt@NetBSD.org>

Deal with a spare size of 32. XXX necc_offset is only a guess.


# dc728170 28-Aug-2011 martin <martin@NetBSD.org>

Rename isbad argument to is_bad - stupid namespace pollution and ancient
bad sector routines interfere on some archs and cause global shadowing
warnings.


# fb19d2b7 15-Jul-2011 cliff <cliff@NetBSD.org>

Add support for CFI NOR, using MPC8536DS as initial example.
Only AMD/Fujitsu command set is suported so far.
This is still work in progress, be advised.


# f1e7eb4d 01-Jul-2011 ahoka <ahoka@NetBSD.org>

Make this actually compile by adding a wrapper function which calls
flash_io_submit.


# 0e8f635b 28-Jun-2011 ahoka <ahoka@NetBSD.org>

Refactor flash and nand driver, so we can reuse the io thread code
in the future nor driver (and any other future driver).

Also simplify some of the code in the process, eg. saner flash attachment.


# 52682d39 28-Jun-2011 ahoka <ahoka@NetBSD.org>

follow bus_space conventions in naming


# 9cc6428e 01-May-2011 rmind <rmind@NetBSD.org>

Remove trailing tabs, add RCS IDs.


# 50cd66ec 26-Apr-2011 ahoka <ahoka@NetBSD.org>

it seems we have a config_detach_children (though undocumented)
lets use that to detach flash devices before detaching nand


# 8f72be80 26-Apr-2011 ahoka <ahoka@NetBSD.org>

fix some bugs in detachment


# 4e870ad5 10-Apr-2011 ahoka <ahoka@NetBSD.org>

Fix locking and simplify some error path.


# 6adb739d 04-Apr-2011 ahoka <ahoka@NetBSD.org>

Fix badblock checking
Replace flash_addr_t with flash_off_t and use it to address flash everywhere


# c68f5a83 27-Mar-2011 ahoka <ahoka@NetBSD.org>

Add support for redifining page read and program functions by drivers.
Some controllers implement read/write in one step, so this is required
to support those.


# e01dc462 09-Mar-2011 ahoka <ahoka@NetBSD.org>

Add some PRIxxx macros to correctly print stdint types


12