blob: a441fca12187bb3c8ed7c754d14530518d5ac07d [file] [log] [blame]
Mario Six5590b152019-01-21 09:17:30 +01001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright (C) 2006 Freescale Semiconductor, Inc.
4 * Dave Liu <daveliu@freescale.com>
5 *
6 * Copyright (C) 2007 Logic Product Development, Inc.
7 * Peter Barada <peterb@logicpd.com>
8 *
9 * Copyright (C) 2007 MontaVista Software, Inc.
10 * Anton Vorontsov <avorontsov@ru.mvista.com>
11 *
12 * (C) Copyright 2010
13 * Heiko Schocher, DENX Software Engineering, hs@denx.de.
14 */
15
16#ifndef __CONFIG_H
17#define __CONFIG_H
18
19/*
20 * High Level Configuration Options
21 */
22
Mario Six5590b152019-01-21 09:17:30 +010023#define CONFIG_HOSTNAME "kmtegr1"
24#define CONFIG_KM_BOARD_NAME "kmtegr1"
25#define CONFIG_KM_UBI_PARTITION_NAME_BOOT "ubi0"
26#define CONFIG_KM_UBI_PARTITION_NAME_APP "ubi1"
27
Mario Six5590b152019-01-21 09:17:30 +010028#define CONFIG_NAND_ECC_BCH
29#define CONFIG_NAND_KMETER1
30#define CONFIG_SYS_MAX_NAND_DEVICE 1
31#define NAND_MAX_CHIPS 1
32
Holger Brunck0f5d0652019-11-26 19:09:00 +010033#define CONFIG_SYS_SICRL (0 \
34 | SICR_1_UART1_UART1RTS \
35 | SICR_1_I2C_CKSTOP \
36 | SICR_1_IRQ_A_IRQ \
37 | SICR_1_IRQ_B_IRQ \
38 | SICR_1_GPIO_A_GPIO \
39 | SICR_1_GPIO_B_GPIO \
40 | SICR_1_GPIO_C_GPIO \
41 | SICR_1_GPIO_D_GPIO \
42 | SICR_1_GPIO_E_LCS \
43 | SICR_1_GPIO_F_GPIO \
44 | SICR_1_USB_A_UART2S \
45 | SICR_1_USB_B_UART2RTS \
46 | SICR_1_FEC1_FEC1 \
47 | SICR_1_FEC2_FEC2 \
48 )
49
Mario Sixcb791a82019-01-21 09:17:34 +010050/* include common defines/options for all Keymile boards */
51#include "km/keymile-common.h"
52#include "km/km-powerpc.h"
Mario Six3e67cb22019-01-21 09:18:23 +010053#include "km/km-mpc83xx.h"
54#include "km/km-mpc8309.h"
Mario Sixd656e782019-01-21 09:17:32 +010055
Mario Six5590b152019-01-21 09:17:30 +010056/* must be after the include because KMBEC_FPGA is otherwise undefined */
57#define CONFIG_SYS_NAND_BASE CONFIG_SYS_KMBEC_FPGA_BASE /* PRIO_BASE_ADDRESS */
58
Mario Six5590b152019-01-21 09:17:30 +010059#endif /* __CONFIG_H */