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/configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'c/src/lib/libbsp/arm/raspberrypi/configure.ac') diff --git a/c/src/lib/libbsp/arm/raspberrypi/configure.ac b/c/src/lib/libbsp/arm/raspberrypi/configure.ac index 42be4e9c9c..27abe6c09f 100644 --- a/c/src/lib/libbsp/arm/raspberrypi/configure.ac +++ b/c/src/lib/libbsp/arm/raspberrypi/configure.ac @@ -24,6 +24,14 @@ AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes") RTEMS_BSPOPTS_SET([BSP_START_RESET_VECTOR],[*],[]) RTEMS_BSPOPTS_HELP([BSP_START_RESET_VECTOR],[reset vector address for BSP start]) +# Is this a Raspberry Pi 2? +RTEMS_BSPOPTS_SET([BSP_IS_RPI2],[raspberrypi2],[1]) +RTEMS_BSPOPTS_SET([BSP_IS_RPI2],[*],[0]) +RTEMS_BSPOPTS_HELP([BSP_IS_RPI2],[Set if the BSP variant is Raspberry Pi 2.]) +AM_CONDITIONAL(RTEMS_RPI2,[test "$BSP_IS_RPI2" = "1"]) + + + RTEMS_BSP_CLEANUP_OPTIONS(0, 0) RTEMS_BSP_LINKCMDS -- cgit v1.2.3