From: Bin Meng <bmeng.cn@gmail.com>
To: Stefan Roese <sr@denx.de>, u-boot@lists.denx.de
Subject: [PATCH 3/3] riscv: qemu: Enable MTD NOR flash support
Date: Sat, 7 Aug 2021 13:00:02 +0800 [thread overview]
Message-ID: <20210807050002.32723-3-bmeng.cn@gmail.com> (raw)
In-Reply-To: <20210807050002.32723-1-bmeng.cn@gmail.com>
Enable support to the 2 NOR flashes on the QEMU RISC-V virt machine.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
---
board/emulation/qemu-riscv/Kconfig | 2 ++
include/configs/qemu-riscv.h | 2 ++
2 files changed, 4 insertions(+)
diff --git a/board/emulation/qemu-riscv/Kconfig b/board/emulation/qemu-riscv/Kconfig
index 0818048ba6..a7de82d3bf 100644
--- a/board/emulation/qemu-riscv/Kconfig
+++ b/board/emulation/qemu-riscv/Kconfig
@@ -64,5 +64,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
imply VIRTIO_PCI
imply VIRTIO_NET
imply VIRTIO_BLK
+ imply MTD_NOR_FLASH
+ imply CFI_FLASH
endif
diff --git a/include/configs/qemu-riscv.h b/include/configs/qemu-riscv.h
index 5291de83f8..bbeea96e27 100644
--- a/include/configs/qemu-riscv.h
+++ b/include/configs/qemu-riscv.h
@@ -29,6 +29,8 @@
#define CONFIG_STANDALONE_LOAD_ADDR 0x80200000
+#define CONFIG_SYS_MAX_FLASH_BANKS 2
+
#define RISCV_MMODE_TIMERBASE 0x2000000
#define RISCV_MMODE_TIMER_FREQ 1000000
--
2.25.1
next prev parent reply other threads:[~2021-08-07 5:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-07 5:00 [PATCH 1/3] mtd: kconfig: Fix CFI_FLASH dependency Bin Meng
2021-08-07 5:00 ` [PATCH 2/3] flash.h: Remove CONFIG_SYS_FLASH_CFI from flash_info_t Bin Meng
2021-08-11 8:34 ` Stefan Roese
2021-08-11 10:45 ` Stefan Roese
2021-08-07 5:00 ` Bin Meng [this message]
2021-08-11 8:34 ` [PATCH 3/3] riscv: qemu: Enable MTD NOR flash support Stefan Roese
2021-08-11 10:45 ` Stefan Roese
2021-08-11 8:33 ` [PATCH 1/3] mtd: kconfig: Fix CFI_FLASH dependency Stefan Roese
2021-08-11 10:44 ` Stefan Roese
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210807050002.32723-3-bmeng.cn@gmail.com \
--to=bmeng.cn@gmail.com \
--cc=sr@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox