Commit e951ba22 authored by Tristan Gingold's avatar Tristan Gingold

boards/generic: rename board.h, extract board-decl.h

parent 54f83a74
Pipeline #4503 passed with stage
in 3 minutes and 14 seconds
......@@ -4,8 +4,8 @@
* Released according to the GNU GPL, version 2 or any later version.
*/
#ifndef __BOARD_WRC_H
#define __BOARD_WRC_H
#ifndef __BOARD_CONFIG_GENERIC_H
#define __BOARD_CONFIG_GENERIC_H
/*
* This is meant to be automatically included by the Makefile,
* when wrpc-sw is build for wrc (node) -- as opposed to wrs (switch)
......@@ -61,6 +61,4 @@
#define EEPROM_STORAGE 0
int wrc_generic_board_storage_init(void);
#endif /* __BOARD_WRC_H */
#endif /* __BOARD_CONFIG_GENERIC_H */
/*
* This work is part of the White Rabbit project
*
* Released according to the GNU GPL, version 2 or any later version.
*/
#ifndef __BOARD_DECL_H
#define __BOARD_DECL_H
int wrc_generic_board_storage_init(void);
#endif /* __BOARD_DECL_H */
......@@ -4,6 +4,7 @@
#include "dev/syscon.h"
#include "dev/endpoint.h"
#include "storage.h"
#include "board-decl.h"
int wrc_board_early_init(void)
{
......
......@@ -5,6 +5,7 @@
#include "dev/endpoint.h"
#include "dev/si57x.h"
#include "storage.h"
#include "../generic/board-decl.h"
#include <wrc-debug.h>
......
......@@ -34,13 +34,12 @@
#define BASE_CLOCK_MONITOR (DEV_BASE + 0xa00)
#define BASE_AUXWB (DEV_BASE + 0x8000)
/* Board configuration. */
#if defined(CONFIG_TARGET_GENERIC_PHY_8BIT) || defined(CONFIG_TARGET_GENERIC_PHY_16BIT) || defined(CONFIG_TARGET_SPEC_SILABS)
# include "boards/generic/board.h"
# include "boards/generic/board-config.h"
#elif defined(CONFIG_TARGET_WR_SWITCH)
# include "boards/wr-switch/board.h"
#elif defined(CONFIG_TARGET_AFCZ_V1)
# include "boards/afcz/board.h"
#elif defined(CONFIG_TARGET_AFCZ_V2)
#elif defined(CONFIG_TARGET_AFCZ_V1) || defined(CONFIG_TARGET_AFCZ_V2)
# include "boards/afcz/board.h"
#elif defined(CONFIG_TARGET_ERTM14)
# include "boards/ertm14/board.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment