You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2021/02/09 12:50:59 UTC
[mynewt-core] branch master updated: Add support for IS25LP064A,
W25Q64JV, and W25Q128JV to spiflash.
This is an automated email from the ASF dual-hosted git repository.
jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new 952d923 Add support for IS25LP064A, W25Q64JV, and W25Q128JV to spiflash.
952d923 is described below
commit 952d9234dd280104cc99424065fee4e64b649944
Author: Jeremy Wood <je...@gmail.com>
AuthorDate: Mon Feb 8 17:48:48 2021 -0800
Add support for IS25LP064A, W25Q64JV, and W25Q128JV to spiflash.
---
hw/drivers/flash/spiflash/chips/syscfg.yml | 9 +++++++++
hw/drivers/flash/spiflash/include/spiflash/spiflash.h | 2 ++
hw/drivers/flash/spiflash/src/spiflash.c | 9 +++++++++
3 files changed, 20 insertions(+)
diff --git a/hw/drivers/flash/spiflash/chips/syscfg.yml b/hw/drivers/flash/spiflash/chips/syscfg.yml
index 421c570..ac576e5 100644
--- a/hw/drivers/flash/spiflash/chips/syscfg.yml
+++ b/hw/drivers/flash/spiflash/chips/syscfg.yml
@@ -380,6 +380,9 @@ syscfg.defs:
SPIFLASH_IS25WP032D:
description: Add support for IS25WP032D
value: 0
+ SPIFLASH_IS25LP064A:
+ description: Add support for IS25LP064A
+ value: 0
SPIFLASH_W25X05CL:
description: Add support for W25X05CL
value: 0
@@ -458,6 +461,12 @@ syscfg.defs:
SPIFLASH_W25Q32JW_IQ:
description: Add support for W25Q32JW_IQ
value: 0
+ SPIFLASH_W25Q64JV:
+ description: Add support for W25Q64JV
+ value: 0
+ SPIFLASH_W25Q128JV:
+ description: Add support for W25Q128JV
+ value: 0
SPIFLASH_AT25SF041:
description: Add support for AT25SF041
value: 0
diff --git a/hw/drivers/flash/spiflash/include/spiflash/spiflash.h b/hw/drivers/flash/spiflash/include/spiflash/spiflash.h
index 2e3f6fd..da9e070 100644
--- a/hw/drivers/flash/spiflash/include/spiflash/spiflash.h
+++ b/hw/drivers/flash/spiflash/include/spiflash/spiflash.h
@@ -135,6 +135,8 @@ struct spiflash_chip {
#define FLASH_CAPACITY_8MBIT 0x14
#define FLASH_CAPACITY_16MBIT 0x15
#define FLASH_CAPACITY_32MBIT 0x16
+#define FLASH_CAPACITY_64MBIT 0x17
+#define FLASH_CAPACITY_128MBIT 0x18
void spiflash_power_down(struct spiflash_dev *dev);
void spiflash_release_power_down(struct spiflash_dev *dev);
diff --git a/hw/drivers/flash/spiflash/src/spiflash.c b/hw/drivers/flash/spiflash/src/spiflash.c
index 98e926d..b615928 100644
--- a/hw/drivers/flash/spiflash/src/spiflash.c
+++ b/hw/drivers/flash/spiflash/src/spiflash.c
@@ -454,6 +454,9 @@ static struct spiflash_chip supported_chips[] = {
#if MYNEWT_VAL(SPIFLASH_IS25WP032D)
ISSI_CHIP(IS25WP032D, 0x70, FLASH_CAPACITY_32MBIT),
#endif
+#if MYNEWT_VAL(SPIFLASH_IS25LP064A)
+ ISSI_CHIP(IS25LP064A, 0x60, FLASH_CAPACITY_64MBIT),
+#endif
#if MYNEWT_VAL(SPIFLASH_W25X05CL)
WINBOND_CHIP(W25X05CL, 0x30, FLASH_CAPACITY_512KBIT),
#endif
@@ -532,6 +535,12 @@ static struct spiflash_chip supported_chips[] = {
#if MYNEWT_VAL(SPIFLASH_W25Q32JW_IQ)
WINBOND_CHIP(W25Q32JW_IQ, 0x60, FLASH_CAPACITY_32MBIT),
#endif
+#if MYNEWT_VAL(SPIFLASH_W25Q64JV)
+ WINBOND_CHIP(W25Q64JV, 0x40, FLASH_CAPACITY_64MBIT),
+#endif
+#if MYNEWT_VAL(SPIFLASH_W25Q128JV)
+ WINBOND_CHIP(W25Q128JV, 0x40, FLASH_CAPACITY_128MBIT),
+#endif
#if MYNEWT_VAL(SPIFLASH_AT25SF041)
ADESTO_CHIP(AT25SF041, 0x84, 1),
#endif