summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2012-06-03 01:00:55 +0000
committermarius <marius@FreeBSD.org>2012-06-03 01:00:55 +0000
commit8573447bb655201aa7209a2e4efcc16e84f33c18 (patch)
treefd0b2c60e34ee5bf2acd58278d4c7aa3100f761e /etc
parent9edaefbc6b7e59496ac1a0b5b7b2d9a313549eb2 (diff)
downloadFreeBSD-src-8573447bb655201aa7209a2e4efcc16e84f33c18.zip
FreeBSD-src-8573447bb655201aa7209a2e4efcc16e84f33c18.tar.gz
- Loop up to 3 seconds when waiting for a device to get ready. [1]
- Make the device description match the driver name. - Identify the chip variant based on the JEDEC and use that information to use the proper values for page count, offset and size instead of hardcoding a AT45DB642x with 2^N byte page support disabled. - Take advantage of bioq_takefirst(). - Given that CONTINUOUS_ARRAY_READ_HF (0x0b) command isn't even mentioned in Atmel's DataFlash Application Note, as suggested by the previous comment may not work on all all devices and actually doesn't properly on at least AT45DB321D (JEDEC 0x1f2701), rewrite at45d_task() to use CONTINUOUS_ARRAY_READ (0xe8) for reading instead. This rewrite is laid out in a way allowing to easily add support for BIO_DELETE later on. - Add support for reads and writes not starting on a page boundary. - Verify the flash content after writing. - Let at45d_task() gracefully handle errors on SPI transfers and the device not becoming ready afterwards again. [1] - Use DEVMETHOD_END. [1] - Use NULL instead of 0 for pointers. [1] Additional testing by: Ian Lepore Submitted by: Ian Lepore [1] MFC after: 1 week
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud