1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/stage2/board-defs.h Sat Apr 23 17:26:50 2016 +0200
1.3 @@ -0,0 +1,12 @@
1.4 +#ifndef __BOARD_DEFS_H__
1.5 +#define __BOARD_DEFS_H__
1.6 +
1.7 +/* Select the board definitions according to the configuration. */
1.8 +
1.9 +#ifdef CONFIG_CPU_JZ4730_MINIPC
1.10 +#include "minipc.h"
1.11 +#else
1.12 +#include "nanonote.h"
1.13 +#endif
1.14 +
1.15 +#endif /* __BOARD_DEFS_H__ */
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/stage2/board-display.h Sat Apr 23 17:26:50 2016 +0200
2.3 @@ -0,0 +1,14 @@
2.4 +#ifndef __BOARD_DISPLAY_H__
2.5 +#define __BOARD_DISPLAY_H__
2.6 +
2.7 +/* Select the board display definitions according to the configuration. */
2.8 +
2.9 +#ifdef CONFIG_CPU_JZ4730_MINIPC
2.10 +#include "minipc_claa070vc01.h"
2.11 +#include "minipc.h"
2.12 +#else
2.13 +#include "nanonote_gpm940b0.h"
2.14 +#include "nanonote.h"
2.15 +#endif
2.16 +
2.17 +#endif /* __BOARD_DISPLAY_H__ */
3.1 --- a/stage2/irq.c Sat Apr 23 17:19:29 2016 +0200
3.2 +++ b/stage2/irq.c Sat Apr 23 17:26:50 2016 +0200
3.3 @@ -17,11 +17,7 @@
3.4 * along with this program. If not, see <http://www.gnu.org/licenses/>.
3.5 */
3.6
3.7 -#ifdef CONFIG_CPU_JZ4730_MINIPC
3.8 -#include "minipc.h"
3.9 -#else
3.10 -#include "nanonote.h"
3.11 -#endif
3.12 +#include "board-defs.h"
3.13
3.14 #include "init.h"
3.15 #include "board.h"
4.1 --- a/stage2/lcd.c Sat Apr 23 17:19:29 2016 +0200
4.2 +++ b/stage2/lcd.c Sat Apr 23 17:26:50 2016 +0200
4.3 @@ -18,13 +18,7 @@
4.4 * along with this program. If not, see <http://www.gnu.org/licenses/>.
4.5 */
4.6
4.7 -#ifdef CONFIG_CPU_JZ4730_MINIPC
4.8 -#include "minipc_claa070vc01.h"
4.9 -#include "minipc.h"
4.10 -#else
4.11 -#include "nanonote_gpm940b0.h"
4.12 -#include "nanonote.h"
4.13 -#endif
4.14 +#include "board-display.h"
4.15
4.16 #include "xburst_types.h"
4.17 #include "jzlcd.h"