Merge branch '2022-12-07-Kconfig-migrations' into next
[platform/kernel/u-boot.git] / include / configs / kmcoge5ne.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * (C) Copyright 2012
4  * Holger Brunck, Keymile GmbH Hannover, <holger.brunck@keymile.com>
5  * Christian Herzig, Keymile AG Switzerland, <christian.herzig@keymile.com>
6  */
7
8 #ifndef __CONFIG_H
9 #define __CONFIG_H
10
11 #define CONFIG_HOSTNAME         "kmcoge5ne"
12 #define NAND_MAX_CHIPS                          1
13 #define CFG_SYS_NAND_BASE CFG_SYS_KMBEC_FPGA_BASE /* PRIO_BASE_ADDRESS */
14
15 #define CONFIG_KM_UBI_PARTITION_NAME_BOOT       "ubi0"
16 #define CONFIG_KM_UBI_PARTITION_NAME_APP        "ubi1"
17
18 /* include common defines/options for all Keymile boards */
19 #include "km/keymile-common.h"
20 #include "km/km-powerpc.h"
21 #include "km/km-mpc83xx.h"
22 #include "km/km-mpc8360.h"
23
24 /**
25  * KMCOGE5NE has 512 MB RAM
26  */
27 #define CFG_SYS_DDR_CS0_CONFIG (\
28         CSCONFIG_EN | \
29         CSCONFIG_AP | \
30         CSCONFIG_ODT_WR_ONLY_CURRENT | \
31         CSCONFIG_BANK_BIT_3 | \
32         CSCONFIG_ROW_BIT_13 | \
33         CSCONFIG_COL_BIT_10)
34
35 /* enable POST tests */
36 #define CFG_POST (CFG_SYS_POST_MEMORY|CFG_SYS_POST_MEM_REGIONS)
37 #define CFG_POST_EXTERNAL_WORD_FUNCS /* use own functions, not generic */
38 #define CPM_POST_WORD_ADDR  CONFIG_SYS_MEMTEST_END
39 #define CONFIG_TESTPIN_REG  gprt3       /* for kmcoge5ne */
40 #define CONFIG_TESTPIN_MASK 0x20        /* for kmcoge5ne */
41
42 #endif /* CONFIG */