From 71260b4a092cb4afad3c44bae36c2636059bfd27 Mon Sep 17 00:00:00 2001 From: Alan Cudmore Date: Sun, 15 Mar 2015 11:04:06 -0500 Subject: preliminary Raspberry Pi Model 2 support This patch adds a BSP variant for the Raspberry Pi 2. You can build both variants by configuring with the option --enable-rtemsbsp="raspberrypi2 raspberrypi" For the current BSP, the only change was the peripheral register base address and the compiler options. The raspberrypi/make/custom rules were re-factored: raspberrypi.inc -- Common rules raspberrypi.cfg -- Raspberry Pi 1 specific rule/optons raspberrypi2.cfg -- Raspberry Pi 2 specific rule/options I tested hello, ticker, unlimited, and paranoia on both the Pi (Model A+) and Pi 2. --- c/src/lib/libbsp/arm/raspberrypi/startup/mm_config_table.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'c/src/lib/libbsp/arm/raspberrypi/startup/mm_config_table.c') diff --git a/c/src/lib/libbsp/arm/raspberrypi/startup/mm_config_table.c b/c/src/lib/libbsp/arm/raspberrypi/startup/mm_config_table.c index 398ba98096..8a6d37a45a 100644 --- a/c/src/lib/libbsp/arm/raspberrypi/startup/mm_config_table.c +++ b/c/src/lib/libbsp/arm/raspberrypi/startup/mm_config_table.c @@ -20,6 +20,7 @@ * http://www.rtems.org/license/LICENSE. */ +#include #include const arm_cp15_start_section_config arm_cp15_start_mmu_config_table[] = { @@ -64,8 +65,8 @@ const arm_cp15_start_section_config arm_cp15_start_mmu_config_table[] = { .end = (uint32_t) bsp_section_stack_end, .flags = ARMV7_MMU_DATA_READ_WRITE_CACHED }, { - .begin = 0x20000000, - .end = 0x21000000, + .begin = RPI_PERIPHERAL_BASE, + .end = RPI_PERIPHERAL_BASE + RPI_PERIPHERAL_SIZE, .flags = ARMV7_MMU_DEVICE } }; -- cgit v1.2.3