# HG changeset patch # User Paul Boddie # Date 1434362055 -7200 # Node ID 7eff01784edc1127c7a5c760e1d6270b0403baf1 # Parent d81fbf93be637b14bd7ae28849a078449cec2b46 Replaced duplicated definitions with a single board-specific header file. diff -r d81fbf93be63 -r 7eff01784edc stage2/board-minipc.h --- a/stage2/board-minipc.h Sun Jun 14 21:32:05 2015 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -#ifndef __BOARD_MINIPC_H__ -#define __BOARD_MINIPC_H__ - -/* Initialisation functions. */ - -void gpio_init2(void); -void cpm_init(void); -void rtc_init(void); -int timer_init(void); -int is_started(void); - -#endif /* __BOARD_MINIPC_H__ */ diff -r d81fbf93be63 -r 7eff01784edc stage2/board-nanonote.h --- a/stage2/board-nanonote.h Sun Jun 14 21:32:05 2015 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -#ifndef __BOARD_NANONOTE_H__ -#define __BOARD_NANONOTE_H__ - -/* Initialisation functions. */ - -void gpio_init2(void); -void cpm_init(void); -void rtc_init(void); -void timer_init(void); -int is_started(void); - -#endif /* __BOARD_NANONOTE_H__ */ diff -r d81fbf93be63 -r 7eff01784edc stage2/board-specific.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/stage2/board-specific.h Mon Jun 15 11:54:15 2015 +0200 @@ -0,0 +1,12 @@ +#ifndef __BOARD_SPECIFIC_H__ +#define __BOARD_SPECIFIC_H__ + +/* Initialisation functions. */ + +void gpio_init2(void); +void cpm_init(void); +void rtc_init(void); +void timer_init(void); +int is_started(void); + +#endif /* __BOARD_SPECIFIC_H__ */ diff -r d81fbf93be63 -r 7eff01784edc stage2/stage2.c --- a/stage2/stage2.c Sun Jun 14 21:32:05 2015 +0200 +++ b/stage2/stage2.c Mon Jun 15 11:54:15 2015 +0200 @@ -18,11 +18,7 @@ * along with this program. If not, see . */ -#ifdef CONFIG_CPU_JZ4730_MINIPC -#include "board-minipc.h" -#else -#include "board-nanonote.h" -#endif +#include "board-specific.h" #include "lcd.h"