blob: bdd35cc7fb754b72742bfa99a5e6de2a1cb99cc6 [file] [log] [blame]
Mario Six0e0674f2019-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 Six0e0674f2019-01-21 09:17:30 +010023#define CONFIG_HOSTNAME "kmtegr1"
Mario Six0e0674f2019-01-21 09:17:30 +010024#define CONFIG_KM_UBI_PARTITION_NAME_BOOT "ubi0"
25#define CONFIG_KM_UBI_PARTITION_NAME_APP "ubi1"
26
Mario Six0e0674f2019-01-21 09:17:30 +010027#define CONFIG_NAND_ECC_BCH
28#define CONFIG_NAND_KMETER1
29#define CONFIG_SYS_MAX_NAND_DEVICE 1
30#define NAND_MAX_CHIPS 1
31
Holger Brunck4d488002019-11-26 19:09:00 +010032#define CONFIG_SYS_SICRL (0 \
33 | SICR_1_UART1_UART1RTS \
34 | SICR_1_I2C_CKSTOP \
35 | SICR_1_IRQ_A_IRQ \
36 | SICR_1_IRQ_B_IRQ \
37 | SICR_1_GPIO_A_GPIO \
38 | SICR_1_GPIO_B_GPIO \
39 | SICR_1_GPIO_C_GPIO \
40 | SICR_1_GPIO_D_GPIO \
41 | SICR_1_GPIO_E_LCS \
42 | SICR_1_GPIO_F_GPIO \
43 | SICR_1_USB_A_UART2S \
44 | SICR_1_USB_B_UART2RTS \
45 | SICR_1_FEC1_FEC1 \
46 | SICR_1_FEC2_FEC2 \
47 )
48
Mario Sixfb1b0992019-01-21 09:17:34 +010049/* include common defines/options for all Keymile boards */
50#include "km/keymile-common.h"
51#include "km/km-powerpc.h"
Mario Sixaed7d0e2019-01-21 09:18:23 +010052#include "km/km-mpc83xx.h"
53#include "km/km-mpc8309.h"
Mario Six0e890d42019-01-21 09:17:32 +010054
Mario Six0e0674f2019-01-21 09:17:30 +010055/* must be after the include because KMBEC_FPGA is otherwise undefined */
56#define CONFIG_SYS_NAND_BASE CONFIG_SYS_KMBEC_FPGA_BASE /* PRIO_BASE_ADDRESS */
57
Mario Six0e0674f2019-01-21 09:17:30 +010058#endif /* __CONFIG_H */