arm/raspberrypi: ensure that correct RPI_PERIPHERAL_BASE is provided by raspberrypi.h

If the raspberrypi.h has been included without preceding inclussion
of bsp.h then BSP_IS_RPI2 has not been set for Raspberry Pi 2
BSP variant and bad things happen later.

The patch includes bspopts.h by raspberrypi.h and even includes
bsp.h in critical peripherals support.
This commit is contained in:
Pavel Pisa
2016-05-31 10:33:42 +02:00
parent 4c59eebfbf
commit de378ad40d
4 changed files with 4 additions and 0 deletions
@@ -14,6 +14,7 @@
* http://www.rtems.org/license/LICENSE.
*/
#include <bsp.h>
#include <bsp/raspberrypi.h>
#include <bsp/irq-generic.h>
#include <bsp/gpio.h>
@@ -21,6 +21,7 @@
#ifndef LIBBSP_ARM_RASPBERRYPI_RASPBERRYPI_H
#define LIBBSP_ARM_RASPBERRYPI_RASPBERRYPI_H
#include <bspopts.h>
#include <stdint.h>
#include <bsp/utility.h>
@@ -17,6 +17,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <bsp.h>
#include <bsp/raspberrypi.h>
#include <bsp/mailbox.h>
@@ -16,6 +16,7 @@
*
*/
#include <bsp.h>
#include <rtems.h>
#include <rtems/btimer.h>
#include <bsp/raspberrypi.h>