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/04/28 19:47:34 UTC
[mynewt-core] branch master updated: hw/drivers/flash/spiflash: add
XM25QH32B chip
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 56d9f9d hw/drivers/flash/spiflash: add XM25QH32B chip
56d9f9d is described below
commit 56d9f9d68d6dca10e991bebf153e5e3ef6b063d5
Author: tt1pjm <48...@users.noreply.github.com>
AuthorDate: Sat Apr 24 10:37:28 2021 +0200
hw/drivers/flash/spiflash: add XM25QH32B chip
---
hw/drivers/flash/spiflash/chips/syscfg.yml | 3 +++
hw/drivers/flash/spiflash/src/spiflash.c | 3 +++
2 files changed, 6 insertions(+)
diff --git a/hw/drivers/flash/spiflash/chips/syscfg.yml b/hw/drivers/flash/spiflash/chips/syscfg.yml
index a07cd8c..f9c8e8f 100644
--- a/hw/drivers/flash/spiflash/chips/syscfg.yml
+++ b/hw/drivers/flash/spiflash/chips/syscfg.yml
@@ -503,3 +503,6 @@ syscfg.defs:
SPIFLASH_XT25F32B:
description: Add support for XT25F32B
value: 0
+ SPIFLASH_XM25QH32B:
+ description: Add support for XM25QH32B
+ value: 0
diff --git a/hw/drivers/flash/spiflash/src/spiflash.c b/hw/drivers/flash/spiflash/src/spiflash.c
index 266c439..8154b4f 100644
--- a/hw/drivers/flash/spiflash/src/spiflash.c
+++ b/hw/drivers/flash/spiflash/src/spiflash.c
@@ -579,6 +579,9 @@ static struct spiflash_chip supported_chips[] = {
#if MYNEWT_VAL(SPIFLASH_XT25F32B)
XTX_CHIP(XT25F32B, 0x40, FLASH_CAPACITY_32MBIT),
#endif
+#if MYNEWT_VAL(SPIFLASH_XM25QH32B)
+ MICRON_CHIP(XM25QH32B, 0x40, FLASH_CAPACITY_32MBIT),
+#endif
{ {0} },
};