Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Holger Brunck | 0f2b721 | 2012-03-21 13:42:46 +0100 | [diff] [blame] | 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> |
Holger Brunck | 0f2b721 | 2012-03-21 13:42:46 +0100 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __CONFIG_H |
| 9 | #define __CONFIG_H |
| 10 | |
Mario Six | 5bc0543 | 2018-03-28 14:38:20 +0200 | [diff] [blame] | 11 | #define CONFIG_HOSTNAME "kmcoge5ne" |
Holger Brunck | 0f2b721 | 2012-03-21 13:42:46 +0100 | [diff] [blame] | 12 | #define CONFIG_KM_BOARD_NAME "kmcoge5ne" |
| 13 | #define CONFIG_KM_DEF_NETDEV "netdev=eth1\0" |
Holger Brunck | be7576f | 2013-01-21 03:55:23 +0000 | [diff] [blame] | 14 | #define CONFIG_NAND_ECC_BCH |
Holger Brunck | 0f2b721 | 2012-03-21 13:42:46 +0100 | [diff] [blame] | 15 | #define CONFIG_NAND_KMETER1 |
| 16 | #define CONFIG_SYS_MAX_NAND_DEVICE 1 |
| 17 | #define NAND_MAX_CHIPS 1 |
| 18 | #define CONFIG_SYS_NAND_BASE CONFIG_SYS_KMBEC_FPGA_BASE /* PRIO_BASE_ADDRESS */ |
| 19 | |
| 20 | #define CONFIG_KM_UBI_PARTITION_NAME_BOOT "ubi0" |
| 21 | #define CONFIG_KM_UBI_PARTITION_NAME_APP "ubi1" |
Holger Brunck | 0f2b721 | 2012-03-21 13:42:46 +0100 | [diff] [blame] | 22 | |
Mario Six | fb1b099 | 2019-01-21 09:17:34 +0100 | [diff] [blame] | 23 | /* include common defines/options for all Keymile boards */ |
| 24 | #include "km/keymile-common.h" |
| 25 | #include "km/km-powerpc.h" |
Mario Six | aed7d0e | 2019-01-21 09:18:23 +0100 | [diff] [blame] | 26 | #include "km/km-mpc83xx.h" |
| 27 | #include "km/km-mpc8360.h" |
Mario Six | fb1b099 | 2019-01-21 09:17:34 +0100 | [diff] [blame] | 28 | |
| 29 | /* |
| 30 | * System Clock Setup |
| 31 | */ |
| 32 | #define CONFIG_83XX_CLKIN 66000000 |
| 33 | #define CONFIG_SYS_CLK_FREQ 66000000 |
| 34 | #define CONFIG_83XX_PCICLK 66000000 |
| 35 | |
Holger Brunck | 0f2b721 | 2012-03-21 13:42:46 +0100 | [diff] [blame] | 36 | /** |
| 37 | * KMCOGE5NE has 512 MB RAM |
| 38 | */ |
| 39 | #define CONFIG_SYS_DDR_CS0_CONFIG (\ |
| 40 | CSCONFIG_EN | \ |
| 41 | CSCONFIG_AP | \ |
Valentin Longchamp | 22554ba | 2015-11-17 10:53:33 +0100 | [diff] [blame] | 42 | CSCONFIG_ODT_WR_ONLY_CURRENT | \ |
Holger Brunck | 0f2b721 | 2012-03-21 13:42:46 +0100 | [diff] [blame] | 43 | CSCONFIG_BANK_BIT_3 | \ |
| 44 | CSCONFIG_ROW_BIT_13 | \ |
| 45 | CSCONFIG_COL_BIT_10) |
Holger Brunck | 0f2b721 | 2012-03-21 13:42:46 +0100 | [diff] [blame] | 46 | |
Holger Brunck | 0f2b721 | 2012-03-21 13:42:46 +0100 | [diff] [blame] | 47 | /* |
| 48 | * BFTIC3 on the local bus CS4 |
| 49 | */ |
| 50 | #define CONFIG_SYS_BFTIC3_BASE 0xB0000000 |
| 51 | #define CONFIG_SYS_BFTIC3_SIZE 256 |
| 52 | |
Thomas Herzmann | 95209b6 | 2012-05-04 10:55:56 +0200 | [diff] [blame] | 53 | /* enable POST tests */ |
| 54 | #define CONFIG_POST (CONFIG_SYS_POST_MEMORY|CONFIG_SYS_POST_MEM_REGIONS) |
| 55 | #define CONFIG_POST_EXTERNAL_WORD_FUNCS /* use own functions, not generic */ |
| 56 | #define CPM_POST_WORD_ADDR CONFIG_SYS_MEMTEST_END |
| 57 | #define CONFIG_TESTPIN_REG gprt3 /* for kmcoge5ne */ |
| 58 | #define CONFIG_TESTPIN_MASK 0x20 /* for kmcoge5ne */ |
Thomas Herzmann | 95209b6 | 2012-05-04 10:55:56 +0200 | [diff] [blame] | 59 | |
Holger Brunck | 0f2b721 | 2012-03-21 13:42:46 +0100 | [diff] [blame] | 60 | #endif /* CONFIG */ |