diff mbox series

[3/3] riscv: qemu: Enable MTD NOR flash support

Message ID 20210807050002.32723-3-bmeng.cn@gmail.com
State Accepted
Commit d248627f9d4218688e7430bc714405a23885abfa
Delegated to: Stefan Roese
Headers show
Series [1/3] mtd: kconfig: Fix CFI_FLASH dependency | expand

Commit Message

Bin Meng Aug. 7, 2021, 5 a.m. UTC
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(+)

Comments

Stefan Roese Aug. 11, 2021, 8:34 a.m. UTC | #1
On 07.08.21 07:00, Bin Meng wrote:
> Enable support to the 2 NOR flashes on the QEMU RISC-V virt machine.
> 
> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>

Reviewed-by: Stefan Roese <sr@denx.de>

Thanks,
Stefan

> ---
> 
>   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
>   
> 


Viele Grüße,
Stefan
Stefan Roese Aug. 11, 2021, 10:45 a.m. UTC | #2
On 07.08.21 07:00, Bin Meng wrote:
> Enable support to the 2 NOR flashes on the QEMU RISC-V virt machine.
> 
> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>

Applied to u-boot-cfi-flash/master

Thanks,
Stefan

> ---
> 
>   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
>   
> 


Viele Grüße,
Stefan
diff mbox series

Patch

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