Skip to contentSkip to conversation

riscv: Add support for BeagleV-Fire

PATCH In review Jamie Gibbons 2 participants 2 messages Jan 16 – Feb 9 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 riscv: Add support for BeagleV-Fire

Bring U-Boot support for the BeagleV-Fire by adding a device tree and supporting board files etc.

---
v1 -> v2:
- add missing configs to defconfig
- reorder defconfig from make savedefconfig
- add missing implied configs to kconfig for target

---
 arch/riscv/Kconfig                       |   4 +
 board/beagle/beaglev_fire/Kconfig        |  43 +++++++++
 board/beagle/beaglev_fire/MAINTAINERS    |   7 ++
 board/beagle/beaglev_fire/Makefile       |   6 ++
 board/beagle/beaglev_fire/beaglev_fire.c | 117 +++++++++++++++++++++++
 configs/beaglev_fire_defconfig           |  29 ++++++
 include/configs/beaglev_fire.h           |  57 +++++++++++
 7 files changed, 263 insertions(+)
 create mode 100644 board/beagle/beaglev_fire/Kconfig
 create mode 100644 board/beagle/beaglev_fire/MAINTAINERS
 create mode 100644 board/beagle/beaglev_fire/Makefile
 create mode 100644 board/beagle/beaglev_fire/beaglev_fire.c
 create mode 100644 configs/beaglev_fire_defconfig
 create mode 100644 include/configs/beaglev_fire.h
arch/riscv/Kconfig +4 -0
index 79867656b15..ad7589123c6 100644
@@ -17,6 +17,9 @@ config TARGET_ANDES_VOYAGER
 config TARGET_BANANAPI_F3
 	bool "Support BananaPi F3 Board"
 
+config TARGET_BEAGLEBOARD_BEAGLEVFIRE
+	bool "Support BeagleBoard BeagleV-Fire Board (based on Microchip MPFS)"
+
 config TARGET_K230_CANMV
 	bool "Support K230 CanMV Board"
 
@@ -106,6 +109,7 @@ config SPL_ZERO_MEM_BEFORE_USE
 source "board/andestech/ae350/Kconfig"
 source "board/andestech/voyager/Kconfig"
 source "board/aspeed/ibex_ast2700/Kconfig"
+source "board/beagle/beaglev_fire/Kconfig"
 source "board/canaan/k230_canmv/Kconfig"
 source "board/emulation/qemu-riscv/Kconfig"
 source "board/microchip/mpfs_generic/Kconfig"
board/beagle/beaglev_fire/Kconfig new file +43 -0

43 lines not on this page · raw message

board/beagle/beaglev_fire/MAINTAINERS new file +7 -0
new file mode 100644
index 00000000000..a5dad93ee99
@@ -0,0 +1,7 @@
+BeagleBoard MPFS BeagleV-Fire
+M:	Cyril Jean <[email protected]>
+M:	Jamie Gibbons <[email protected]>
+S:	Maintained
+F:	board/beagle/beaglev_fire/
+F:	include/configs/beaglev_fire.h
+F:	configs/beaglev_fire_defconfig
\ No newline at end of file
board/beagle/beaglev_fire/Makefile new file +6 -0
new file mode 100644
index 00000000000..a4109a8aad4
@@ -0,0 +1,6 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# Copyright (C) 2023 Microchip Technology Inc.
+#
+
+obj-y	+= beaglev_fire.o
\ No newline at end of file
board/beagle/beaglev_fire/beaglev_fire.c new file +117 -0

118 lines not on this page · raw message

configs/beaglev_fire_defconfig new file +29 -0
new file mode 100644
index 00000000000..9ebb08abbfe
@@ -0,0 +1,29 @@
+CONFIG_RISCV=y
+CONFIG_SYS_MALLOC_LEN=0x800000
+CONFIG_SYS_MALLOC_F_LEN=0x2800
+CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
+CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80200000
+CONFIG_ENV_SIZE=0x2000
+CONFIG_DM_GPIO=y
+CONFIG_DEFAULT_DEVICE_TREE="microchip/mpfs-beaglev-fire"
+CONFIG_OF_LIBFDT_OVERLAY=y
+CONFIG_SYS_BOOTM_LEN=0x4000000
+CONFIG_SYS_LOAD_ADDR=0x80200000
+CONFIG_TARGET_BEAGLEBOARD_BEAGLEVFIRE=y
+CONFIG_ARCH_RV64I=y
+CONFIG_RISCV_SMODE=y
+CONFIG_FIT=y
+CONFIG_DISTRO_DEFAULTS=y
+CONFIG_OF_BOARD_SETUP=y
+CONFIG_DEFAULT_FDT_FILE="microchip/mpfs-beaglev-fire.dtb"
+CONFIG_SYS_CBSIZE=256
+CONFIG_SYS_PBSIZE=282
+CONFIG_DISPLAY_CPUINFO=y
+CONFIG_DISPLAY_BOARDINFO=y
+CONFIG_SYS_PROMPT="RISC-V # "
+CONFIG_CMD_GPIO=y
+CONFIG_OF_UPSTREAM=y
+CONFIG_BOOTP_SEND_HOSTNAME=y
+CONFIG_MPFS_GPIO=y
+CONFIG_MMC_SPI=y
+CONFIG_SYSRESET=y
include/configs/beaglev_fire.h new file +57 -0

57 lines not on this page · raw message

Signature · 1 line
2.43.0
Reviewed-by on v2 1/1
#1 lore raw
Quoted 9 lines · Jamie Gibbons

Bring U-Boot support for the BeagleV-Fire by adding a device tree and supporting board files etc.

---
v1 -> v2:
- add missing configs to defconfig
- reorder defconfig from make savedefconfig
- add missing implied configs to kconfig for target

Quoted 15 lines
---
 arch/riscv/Kconfig                       |   4 +
 board/beagle/beaglev_fire/Kconfig        |  43 +++++++++
 board/beagle/beaglev_fire/MAINTAINERS    |   7 ++
 board/beagle/beaglev_fire/Makefile       |   6 ++
 board/beagle/beaglev_fire/beaglev_fire.c | 117 +++++++++++++++++++++++
 configs/beaglev_fire_defconfig           |  29 ++++++
 include/configs/beaglev_fire.h           |  57 +++++++++++
 7 files changed, 263 insertions(+)
 create mode 100644 board/beagle/beaglev_fire/Kconfig
 create mode 100644 board/beagle/beaglev_fire/MAINTAINERS
 create mode 100644 board/beagle/beaglev_fire/Makefile
 create mode 100644 board/beagle/beaglev_fire/beaglev_fire.c
 create mode 100644 configs/beaglev_fire_defconfig
 create mode 100644 include/configs/beaglev_fire.h