Commit b2ac3225 authored by Ayush Singh's avatar Ayush Singh Committed by Henrik Brix Andersen
Browse files

boards: beagle: pocketbeagle_2: Support splitting code and data section

The M4F allows concurrent fetch for instruction code and data via dedicated
buses (I-Code and D-Code, respectively).

Signed-off-by: default avatarAyush Singh <ayush@beagleboard.org>
parent 0a9d6b84
Loading
Loading
Loading
Loading
+3 −2
Changes for boards/beagle/pocketbeagle_2/pocketbeagle_2_am6232_m4_defconfig: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -7,8 +7,9 @@
# Platform Configuration
CONFIG_CORTEX_M_SYSTICK=y

# Zephyr Kernel Configuration
CONFIG_XIP=n
# XIP is required to place text and data sections in I-RAM and D-RAM
# respectively.
CONFIG_XIP=y

# Serial Driver
CONFIG_SERIAL=y
+3 −2
Changes for boards/beagle/pocketbeagle_2/pocketbeagle_2_am6254_m4_defconfig: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -7,8 +7,9 @@
# Platform Configuration
CONFIG_CORTEX_M_SYSTICK=y

# Zephyr Kernel Configuration
CONFIG_XIP=n
# XIP is required to place text and data sections in I-RAM and D-RAM
# respectively.
CONFIG_XIP=y

# Serial Driver
CONFIG_SERIAL=y
+5 −1
Changes for boards/beagle/pocketbeagle_2/pocketbeagle_2_m4-common.dtsi: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -12,7 +12,11 @@
	compatible = "beagle,pocketbeagle_2_m4";

	chosen {
		zephyr,sram = &sram0;
		/* Split and place TEXT and DATA in I-RAM and D-RAM respectively. `sram_icode`
		 * is a section in internal SRAM, not an external flash.
		 */
		zephyr,flash = &sram_icode;
		zephyr,sram = &sram_dcode;
		zephyr,console = &uart0;
		zephyr,shell-uart = &uart0;
		zephyr,ipc = &ipc0;