Skip to content

Commit 3744405

Browse files
committed
boards: expose PERIPH mmap windows on QEMU RISC-V and ARM
- Give sdk_suite/mem_grant a stable ULMK_BOARD_PERIPH_* region on each board
1 parent ab02644 commit 3744405

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

boards/qemu_mps2_an500/board_config.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,8 @@
4242
#define BOARD_TIMER_NVIC_IRQ 8u
4343
#define BOARD_TIMER_HW_CLOCK_HZ 25000000u
4444

45+
/* Generic MMIO window for ULMK_MMAP_PERIPH tests (CMSDK timer0). */
46+
#define ULMK_BOARD_PERIPH_BASE 0x40000000u
47+
#define ULMK_BOARD_PERIPH_SIZE 0x1000u
48+
4549
#endif /* ULMK_BOARD_CONFIG_H */

boards/qemu_mps2_an505/board_config.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,8 @@
4343
#define BOARD_TIMER_NVIC_IRQ 3u
4444
#define BOARD_TIMER_HW_CLOCK_HZ 25000000u
4545

46+
/* Generic MMIO window for ULMK_MMAP_PERIPH tests (CMSDK timer0). */
47+
#define ULMK_BOARD_PERIPH_BASE 0x50000000u
48+
#define ULMK_BOARD_PERIPH_SIZE 0x1000u
49+
4650
#endif /* ULMK_BOARD_CONFIG_H */

boards/qemu_riscv_virt/board_config.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,8 @@
4545
#define ULMK_ARCH_IDLE_IS_WFI 0
4646
#endif
4747

48+
/* Generic MMIO window for ULMK_MMAP_PERIPH tests (UART0). */
49+
#define ULMK_BOARD_PERIPH_BASE 0x10000000u
50+
#define ULMK_BOARD_PERIPH_SIZE 0x1000u
51+
4852
#endif /* ULMK_BOARD_CONFIG_H */

0 commit comments

Comments
 (0)