diff options
author | Alan Cudmore <alan.cudmore@gmail.com> | 2015-03-15 11:04:06 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2015-03-16 09:43:21 -0500 |
commit | 71260b4a092cb4afad3c44bae36c2636059bfd27 (patch) | |
tree | cddcac9f0a46d72f46e68e60881d6fe249a064fa /c/src/lib/libbsp/arm/raspberrypi/startup/mm_config_table.c | |
parent | tmtests/tmfine01: New test (diff) | |
download | rtems-71260b4a092cb4afad3c44bae36c2636059bfd27.tar.bz2 |
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.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/arm/raspberrypi/startup/mm_config_table.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 <bsp.h> #include <bsp/arm-cp15-start.h> 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 } }; |