arm: include: Add DTS generated file to arch.h
This patch moves the include for the generated_dts_board.h inside of the include/arch/arm/arch.h file. This was done to simplify the includes required for files. Only two files will include the dts generated include file directly: arch.h and the linker.ld Change-Id: I2614f4fd4eeed2ab635a3264d7dac8b83f97b760 Signed-off-by: Andy Gross <andy.gross@linaro.org>
This commit is contained in:
parent
b4b395845a
commit
ac37e3e2c7
5 changed files with 4 additions and 4 deletions
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
#include <toolchain.h>
|
#include <toolchain.h>
|
||||||
#include <sections.h>
|
#include <sections.h>
|
||||||
#include <generated_dts_board.h>
|
#include <arch/cpu.h>
|
||||||
|
|
||||||
extern void _isr_wrapper(void);
|
extern void _isr_wrapper(void);
|
||||||
typedef void (*vth)(void); /* Vector Table Handler */
|
typedef void (*vth)(void); /* Vector Table Handler */
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
#include <linker-defs.h>
|
#include <linker-defs.h>
|
||||||
#include <nano_internal.h>
|
#include <nano_internal.h>
|
||||||
#include <arch/arm/cortex_m/cmsis.h>
|
#include <arch/arm/cortex_m/cmsis.h>
|
||||||
#include <generated_dts_board.h>
|
|
||||||
|
|
||||||
#ifdef CONFIG_ARMV6_M
|
#ifdef CONFIG_ARMV6_M
|
||||||
static inline void relocate_vector_table(void) { /* do nothing */ }
|
static inline void relocate_vector_table(void) { /* do nothing */ }
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
#include <arch/cpu.h>
|
#include <arch/cpu.h>
|
||||||
#include <offsets_short.h>
|
#include <offsets_short.h>
|
||||||
#include "vector_table.h"
|
#include "vector_table.h"
|
||||||
#include <generated_dts_board.h>
|
|
||||||
|
|
||||||
_ASM_FILE_PROLOGUE
|
_ASM_FILE_PROLOGUE
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,9 @@
|
||||||
#ifndef _ARM_ARCH__H_
|
#ifndef _ARM_ARCH__H_
|
||||||
#define _ARM_ARCH__H_
|
#define _ARM_ARCH__H_
|
||||||
|
|
||||||
|
/* Add include for DTS generated information */
|
||||||
|
#include <generated_dts_board.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
#define _SW_ISR_TABLE__H_
|
#define _SW_ISR_TABLE__H_
|
||||||
|
|
||||||
#include <arch/cpu.h>
|
#include <arch/cpu.h>
|
||||||
#include <generated_dts_board.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue