Marten Svanfeldt
edeb2eed4e
Added driver of IS25xP SPI flash devices
...
Based on sst25xx driver
Signed-off-by: Marten Svanfeldt <marten@intuitiveaerial.com>
2016-06-09 05:13:06 +02:00
Gregory Nutt
a18dbfda6e
Remove drivers/mtd/flash_eraseall.c. It is not used in the OS and is just a dumb wrapper around the MDIOC_BULKERASE IOCTL call.
2016-06-02 10:44:13 -06:00
Sebastien Lorquet
880b59aa26
Additional configuration option to enable SST26 driver debug output. Using comming FS debug output generates too much output.
2016-05-25 13:43:44 -06:00
Sebastien Lorquet
f4fa4799f7
Add a driver for SST26F spi/qspi flash devices (SPI mode only)
2016-05-10 11:09:15 -06:00
ziggurat29
d3fbd86657
bug in smart.c; return code of smart_scan not checked, can cause success result in failure case, leading to 'dev' pointer being invalid.
2016-04-27 19:33:45 -05:00
Gregory Nutt
e8f0965d35
Mostly cosmetic changes from review of last PR
2016-04-17 14:13:44 -06:00
ziggurat29
1b9d837df3
add MTD support for Micron N25Qxxx family of QSPI flash
2016-04-17 12:20:07 -05:00
Gregory Nutt
84cd720479
FTL: Make it clear the the unlink method has not been implemented
2016-04-15 07:03:28 -06:00
Paul A. Patience
c62bb9beb1
Fix issues detected by cppcheck
2016-03-22 15:46:47 -04:00
Gregory Nutt
3ef25dc49d
AT24xx: Add logic to unregister from the procfs file system if the driver is uninitialized
2016-03-17 09:55:10 -06:00
Max Neklyudov
1951b9df57
Improve m25px driver
2016-03-17 07:37:45 -06:00
Gregory Nutt
7fa0adff83
Fix a misplaced right bracket
2016-03-08 15:33:33 -06:00
Frank Benkert
4d9c41fd57
AT24XX: Correct address calculation in Multi-Block-Read
2016-03-08 15:31:23 -06:00
Gregory Nutt
0fb035f76b
Standardize some naming in code section comments
2016-02-21 18:09:04 -06:00
Gregory Nutt
009e9f76cb
I2C: Fixes/improvements from last massive I2C commits
2016-02-02 07:13:03 -06:00
Gregory Nutt
69ce24c70c
I2C: Remove the setfrequency method from the interface
2016-02-01 16:31:13 -06:00
Gregory Nutt
f9053182d3
I2C: Remove setaddress method
2016-02-01 12:14:31 -06:00
Gregory Nutt
8c9bddf998
I2C: Eliminate the I2C_WRITE and I2C_READ macros
2016-02-01 08:57:22 -06:00
Gregory Nutt
3a781a2d3f
Remove I2C slave methods from I2C master interface; rename i2c_dev_s to i2c_master_s.
2016-01-30 08:36:47 -06:00
Gregory Nutt
ceb415204e
Move include/nuttx/i2c.h to include/nuttx/i2c/i2c_master.h
2016-01-30 08:00:16 -06:00
Gregory Nutt
7edf921c5e
Remove CONFIG_SPI_OWNBUS: Now it is not just a good idea, it is the law
2016-01-23 18:54:36 -06:00
Gregory Nutt
f6e49caba8
All SPI-based device drivers needs to call SPI_HWFEATURES() with zero in order to co-exist with drivers that use H/W features
2016-01-23 16:18:13 -06:00
Gregory Nutt
f348e68069
Update to use 64-bit timer when available
2016-01-21 11:54:26 -06:00
Gregory Nutt
c16648b3fd
Most cosmetic but also includes a fix for a compile problem from Ken Pettit
2015-12-01 12:54:57 -06:00
Gregory Nutt
3af1def49a
Fix an error in a function prototype
2015-11-29 14:42:56 -06:00
Ken Pettit
5821af1bbe
drivers/mtd: Add support for /dev/smart loop device. From Ken Petit
2015-11-28 09:00:26 -06:00
Gregory Nutt
6ff67d3061
Minor changes from code review
2015-11-25 14:57:25 -06:00
Ken Pettit
d4a58af380
drivers/mtd/mtd/mtd_procfs/c and include/nuttx/mtd/mtd.h: Add an interface to un-regiser an MTD procfs entry.
...
drivers/mtd/filemtd.c: New new MTD conversion layer that will convert a regular file (or driver file) to an MTD device. This is useful for testing on the simulation using the hostfs.
From Ken Petit
2015-11-25 14:46:28 -06:00
Gregory Nutt
289b3e281f
drivers/mtd/smart.c: Fix a compile error when CONFIG_MTD_SMART_MINIMIZE_RAM=y
2015-11-22 17:18:43 -06:00
Gregory Nutt
891589b307
drivers/mtd/smart.c: Add some run-time geometry tests
2015-11-22 17:10:42 -06:00
Gregory Nutt
54549ef082
Revert "Add option to specify logical sector size during low level format plus adds some run-time geometry tests. fs/smartfs: Remove the 'mksmartfs()' code from the kernel 'fs'"
...
This reverts commit 96faf0fa3251ca10a17daddc728d931be5a206e0.
2015-11-22 10:15:06 -06:00
Gregory Nutt
64e8f12e2b
Add option to specify logical sector size during low level format plus adds some run-time geometry tests. fs/smartfs: Remove the 'mksmartfs()' code from the kernel 'fs'
...
directory and build.
2015-11-22 10:07:35 -06:00
Gregory Nutt
db2fe45666
Update some comments
2015-11-20 09:55:18 -06:00
Ken Pettit
d30b73be82
W25: Add support for byte write mode. From Ken Petit
2015-11-20 07:34:07 -06:00
Gregory Nutt
1c86c004c4
FLASH progmem memory MTD: Need to register with PROCFS if enabled
2015-11-19 06:57:02 -06:00
Ken Pettit
7b590ec9a2
drivers/mtd/smart.c Fixed SmartFS wear level error that occurs when the logical sector size is too small to save all wear level status bytes in a single sector. Logical sectors 1 and 2 were simply not being allocated and then the read_sector and write_sector routines were failing. From Ken Petit
2015-11-18 18:12:06 -06:00
Ken Pettit
f0f7dd9956
drivers/mtd/smart.c: Fix a Smart wear-leveling bug. From Ken Petit
2015-11-18 07:01:13 -06:00
Ken Pettit
7e58e4c4cf
W25: Fix W25 page read/write logic
2015-11-18 06:56:53 -06:00
Gregory Nutt
e61d51dab3
If multiple AT24xx devices are supported and resources are allocated, then it may also be necessary to free those resource
2015-11-17 08:39:06 -06:00
Gregory Nutt
724901ceb9
Add support for multiple AT24xx EEPROM devices
2015-11-17 07:40:17 -06:00
Gregory Nutt
015429684f
MTD progmem: Fix an address calculation
2015-11-13 11:32:34 -06:00
Gregory Nutt
2706b4f8aa
mtd_progmem.c: Fix calculation of block size
2015-11-13 09:19:25 -06:00
Gregory Nutt
fdb17620a0
Need a prototype for progmem_initialize in include/nuttx/mtd/mtd.h
2015-11-12 16:03:24 -06:00
Gregory Nutt
ef59f83a38
drivers/mtd/mtd_progmem.c: Add an upper-half driver that can be used with any FLASH library that provides the itnerfaces defined in include/nuttx/progmem.h
2015-11-12 13:40:18 -06:00
Gregory Nutt
9f3edd6373
MTD Smart: Remove checks for 64KB erase block size. erasesize was changed to 32-bits in struct mtd_geometry_s
2015-11-11 08:25:03 -06:00
Gregory Nutt
2ff1b173f2
SmartFS: Backout last change. It alters the behavior when it should not. Obviously there is something that I do not understand
2015-11-11 08:15:08 -06:00
Gregory Nutt
08200d8f86
S24FL1: Fix so that the driver compiles with 512 byte block support
2015-11-10 13:34:33 -06:00
Gregory Nutt
eb1191df63
S24FL1: Fix an error in the page write logic
2015-11-10 12:48:29 -06:00
Gregory Nutt
965addb397
s25fl1: When unprotecting, handle case where protection bits are inverted. Add option to s25flinitilize() to unprotected on power up
2015-11-10 11:33:35 -06:00
Gregory Nutt
2ab0832c26
Smart MTD: fix some outdated logic: geometray erase size is now 32-bits
2015-11-09 09:35:14 -06:00
Gregory Nutt
91429433f6
Correct naming of Spansion part. S25FL1, not ST25FL1
2015-11-07 11:51:09 -06:00
Gregory Nutt
b2bdba0824
S25FL1 FLASH driver: Fix return value from the bwrite() method
2015-11-07 11:26:53 -06:00
Gregory Nutt
bfeef77f1f
SmartFS: Fix a compile error when FS debug enabled. Plus some changes needed by NuttX coding standard
2015-11-05 11:25:39 -06:00
Gregory Nutt
a314b2ac11
ST25FL1: Fix error that was overwriting status
2015-11-05 10:38:47 -06:00
Frank Benkert
e772c56ef6
AT24xx EEPROM Driver: Correct typo from last changeset
2015-10-31 09:04:53 -06:00
Gregory Nutt
46b688e701
Merged in marten_svanfeldt/nuttx-public/for_upstream/at24cxx (pull request #28 )
...
Improvements of AT24xx MTD driver
2015-10-22 18:15:39 +08:00
Marten Svanfeldt
a31d1fd378
Make I2C frequency configurable for the AT24Cxx EEPROM driver
...
Signed-off-by: Marten Svanfeldt <marten@intuitiveaerial.com>
2015-10-21 12:01:36 +08:00
Marten Svanfeldt
af9590eef7
Extend the AT24Cxx MTD driver with support for -04,-08 and -16 parts.
...
These parts utilize the same one-byte-address in the I2C protocol as the -02,
but requires different I2C addresses for different banks of the EEPROM.
Signed-off-by: Marten Svanfeldt <marten@intuitiveaerial.com>
2015-10-21 12:01:36 +08:00
Gregory Nutt
cf14f8d1b5
drivers/: Fixes to spacing and alignement
2015-10-10 10:41:00 -06:00
Gregory Nutt
0b12dbf95d
Fix some spacing problems
2015-10-04 15:04:00 -06:00
Gregory Nutt
cb9e27c3b0
Standardize naming used for public data and function groupings
2015-10-02 16:30:35 -06:00
Gregory Nutt
7d33e858dd
QSPI interface + ST25FL1 driver: Add methods to allocate properly aligned memory
2015-09-06 09:37:34 -06:00
Gregory Nutt
f44320d2a6
ST25FL1: SAMV71 QSPI always does transfers in multiples of 4 bytes
2015-09-02 10:19:47 -06:00
Paul A. Patience
3b89eabd50
Correct #if to #ifdef when the macro can be undefined. Fix bug in AT24XX driver: it should compare AT24XX_ADDRSIZE to 2.
2015-09-01 13:52:29 -04:00
Gregory Nutt
ebd97dcf89
ST25FL1: Make buffers all even multiple of 32-bit values
2015-08-31 10:18:50 -06:00
Gregory Nutt
2d84270552
ST25FL1: Correct some compile problems when file system debug is enabled
2015-08-31 09:25:14 -06:00
Gregory Nutt
ed750f3600
ST25FL1: Changes after review of ST24FL1 clocking
2015-08-29 18:54:20 -06:00
Gregory Nutt
d6b0a8fe72
ST25FL1 driver is code complete
2015-08-29 15:58:54 -06:00
Gregory Nutt
4a1951b192
ST25FL1: Flesh out FLASH write logic
2015-08-28 12:01:08 -06:00
Gregory Nutt
d2653ef7a8
ST25FL1: Update for changes to QSPI interface definitions
2015-08-28 10:15:39 -06:00
Gregory Nutt
361e35a7be
QSPI: Make changes to interface to better work with the SAMV71
2015-08-27 14:16:51 -06:00
Gregory Nutt
7936819fcc
ST25FL1: Flesh out more initialization logic
2015-08-26 14:16:45 -06:00
Gregory Nutt
1cf57ae2bd
Cosmetic
2015-08-26 07:16:07 -06:00
Gregory Nutt
8fe0121e1a
Convert fragmentation ST24FL1 driver to use QSPI interface
2015-08-25 17:20:54 -06:00
Gregory Nutt
94ecf7ebad
drivers/mtd/st25fl1.c: Add a driver for ST25FL1*K QuadSPI FLASH parts
2015-08-25 09:10:12 -06:00
Gregory Nutt
3743d3d84a
Add configuration options for forthcoming st25fl1 devices
2015-08-24 08:00:39 -06:00
David Sidrane
c83d92e846
RAMTRON: Update driver to include support for newer RAMTRON parts.
2015-08-10 11:30:37 -06:00
Gregory Nutt
be09a87c0e
SST25: Eliminate some warnings
2015-07-03 14:38:33 -06:00
Gregory Nutt
342f5fe33d
Fix references to the no-longer-existent misc/ directory in comments, README files, and documentation
2015-06-28 08:08:57 -06:00
Gregory Nutt
d43a09275a
AT24 EEPROM driver. Fix some an incorrect variable name used in conditional compilation. SourceForge patch #55
2015-05-15 06:15:58 -06:00
Gregory Nutt
e4d2822af8
Make some file section headers more consistent with standard
2015-04-08 07:15:32 -06:00
Gregory Nutt
495f420978
Extend the AT24 EEPROM driver so that it supports: (1) the byte-oriented read() method, (2) parts with extended memory regions, and (3) parts with 8-bit addressing.
2015-03-17 14:27:27 -06:00
Gregory Nutt
b5bfb6762d
Fix some BBRAM return values (from David Sidrane). Also some MTD-related cosmetic changes
2015-03-05 08:08:11 -06:00
Gregory Nutt
e7470e0834
Update dates in all skeleton files
2015-02-13 06:13:34 -06:00
Gregory Nutt
f3427cb32a
mtd/ramtron.c: Table of parts is not terminated properly if CONFIG_RAMTRON_FRAM_NON_JEDEC is not defined
2015-02-09 16:35:58 -06:00
Gregory Nutt
1c39b67e32
STM32: Fix some incorrectly placed conditional logic
2014-12-26 12:41:35 -06:00
Gregory Nutt
33bcb5dbca
Back out some incorrect conditional compilation
2014-12-26 10:26:52 -06:00
Gregory Nutt
6daa9468f6
More RAMTRON related fixes from David Sidrane
2014-12-26 08:15:59 -06:00
Gregory Nutt
996d6c9d55
Most superstitous updates to the RAMTROM driver make it more compatibile with the version used by PX4. From David Sidrane
2014-12-26 07:59:09 -06:00
Gregory Nutt
a84bd3f433
M25P serial flash driver: Add subsector size of the M24P16 part. From Lazlo
2014-12-10 18:48:36 -06:00
Gregory Nutt
cdc8fc52d1
SmartFS: Implements wear-leveling in the SmartFS. From Ken Pettit
2014-12-09 14:11:15 -06:00
Gregory Nutt
bc3212d70e
EEPROM: Add a README file
2014-11-27 09:14:00 -06:00
Gregory Nutt
40b27115cc
Add support for generic EEPROM access via a character driver. Add also the EEPROM driver itself. From Sebastien Lorquet
2014-11-26 13:55:34 -06:00
Gregory Nutt
2994448d85
More fixes to problems noted by cppcheck. Some are kind of risky; some are real bugs.
2014-11-25 13:15:09 -06:00
Gregory Nutt
d9b238b002
Extend MTD support to M25P16. From Sébastien Lorquet
2014-11-07 10:35:03 -06:00
Gregory Nutt
b33f8b3013
MTD read-ahear/write buffering layer seems functional
2014-09-25 13:35:10 -06:00
Gregory Nutt
7c89724b99
A few fixes for clean apps/examples/mtdrwb build
2014-09-25 10:41:47 -06:00
Gregory Nutt
6626f62b08
In at45db_bwrite, the buffer is not increased when writing more than 1 page. Sourceforge bug #34
2014-09-25 06:48:04 -06:00
Gregory Nutt
34a057334c
Update SMART FS procfs support. From Ken Pettit
2014-09-22 11:19:49 -06:00
Gregory Nutt
205260d5e2
Reanem kzalloc to kmm_zalloc for consistency
2014-08-31 17:34:44 -06:00