summaryrefslogtreecommitdiff
path: root/nuttx/drivers/mtd
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-08-04 16:56:41 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-08-04 16:56:41 -0600
commit47683aa2a4086083916c2ae55ed25bed3c72188a (patch)
tree61998244e6e80a8ad721268221b1a3e7c5366e23 /nuttx/drivers/mtd
parent5d42b3d19f97340b3830c455601e825fbe508c4d (diff)
downloadpx4-nuttx-47683aa2a4086083916c2ae55ed25bed3c72188a.tar.gz
px4-nuttx-47683aa2a4086083916c2ae55ed25bed3c72188a.tar.bz2
px4-nuttx-47683aa2a4086083916c2ae55ed25bed3c72188a.zip
SAMA5D3x-EK: At support for the AT25 serial FLASH
Diffstat (limited to 'nuttx/drivers/mtd')
-rw-r--r--nuttx/drivers/mtd/Kconfig33
1 files changed, 29 insertions, 4 deletions
diff --git a/nuttx/drivers/mtd/Kconfig b/nuttx/drivers/mtd/Kconfig
index e4107949b..a68fcaaeb 100644
--- a/nuttx/drivers/mtd/Kconfig
+++ b/nuttx/drivers/mtd/Kconfig
@@ -86,6 +86,31 @@ config AT24XX_ADDR
endif
+config MTD_AT25
+ bool "SPI-based AT25 FLASH"
+ default n
+ select SPI
+
+if MTD_AT25
+
+config AT25_SPIMODE
+ int "AT25 SPI Mode"
+ default 0
+
+config AT25_SPIFREQUENCY
+ int "AT25 SPI Frequency"
+ default 20000000
+
+config AT25_READONLY
+ bool "AT25 Read-Only FLASH"
+ default n
+
+config AT25_SECTOR512
+ bool "Simulate 512 byte Erase Blocks"
+ default n
+
+endif
+
config MTD_AT45DB
bool "SPI-based AT45DB flash"
default n
@@ -94,15 +119,15 @@ config MTD_AT45DB
if MTD_AT45DB
config AT45DB_FREQUENCY
- int "at45db frequency"
+ int "AT45DB frequency"
default 1000000
config AT45DB_PREWAIT
- bool "enables higher performance write logic"
+ bool "Enable higher performance write logic"
default y
config AT45DB_PWRSAVE
- bool "enables power save"
+ bool "Enable power save"
default n
endif
@@ -147,7 +172,7 @@ endif
config MTD_SMART
bool "Sector Mapped Allocation for Really Tiny (SMART) Flash support"
- default y
+ default n
---help---
The MP25x series of Flash devices are typically very small and have a very large
erase block size. This causes issues with the standard Flash Translation Layer