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 | |
Holger Brunck | 0f2b721 | 2012-03-21 13:42:46 +0100 | [diff] [blame] | 11 | #define NAND_MAX_CHIPS 1 |
Tom Rini | 65cc0e2 | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 12 | #define CFG_SYS_NAND_BASE CFG_SYS_KMBEC_FPGA_BASE /* PRIO_BASE_ADDRESS */ |
Holger Brunck | 0f2b721 | 2012-03-21 13:42:46 +0100 | [diff] [blame] | 13 | |
Mario Six | fb1b099 | 2019-01-21 09:17:34 +0100 | [diff] [blame] | 14 | /* include common defines/options for all Keymile boards */ |
Mario Six | aed7d0e | 2019-01-21 09:18:23 +0100 | [diff] [blame] | 15 | #include "km/km-mpc83xx.h" |
Mario Six | fb1b099 | 2019-01-21 09:17:34 +0100 | [diff] [blame] | 16 | |
Holger Brunck | 0f2b721 | 2012-03-21 13:42:46 +0100 | [diff] [blame] | 17 | /** |
| 18 | * KMCOGE5NE has 512 MB RAM |
| 19 | */ |
Tom Rini | 65cc0e2 | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 20 | #define CFG_SYS_DDR_CS0_CONFIG (\ |
Holger Brunck | 0f2b721 | 2012-03-21 13:42:46 +0100 | [diff] [blame] | 21 | CSCONFIG_EN | \ |
| 22 | CSCONFIG_AP | \ |
Valentin Longchamp | 22554ba | 2015-11-17 10:53:33 +0100 | [diff] [blame] | 23 | CSCONFIG_ODT_WR_ONLY_CURRENT | \ |
Holger Brunck | 0f2b721 | 2012-03-21 13:42:46 +0100 | [diff] [blame] | 24 | CSCONFIG_BANK_BIT_3 | \ |
| 25 | CSCONFIG_ROW_BIT_13 | \ |
| 26 | CSCONFIG_COL_BIT_10) |
Holger Brunck | 0f2b721 | 2012-03-21 13:42:46 +0100 | [diff] [blame] | 27 | |
Thomas Herzmann | 95209b6 | 2012-05-04 10:55:56 +0200 | [diff] [blame] | 28 | /* enable POST tests */ |
Tom Rini | 9cebc4a | 2022-11-19 18:45:44 -0500 | [diff] [blame] | 29 | #define CFG_POST (CFG_SYS_POST_MEMORY|CFG_SYS_POST_MEM_REGIONS) |
| 30 | #define CFG_POST_EXTERNAL_WORD_FUNCS /* use own functions, not generic */ |
Holger Brunck | c904a0b | 2020-10-29 13:54:54 +0100 | [diff] [blame] | 31 | #define CPM_POST_WORD_ADDR CONFIG_SYS_MEMTEST_END |
Tom Rini | 39d4e7b | 2022-12-04 10:14:00 -0500 | [diff] [blame] | 32 | #define CFG_TESTPIN_REG gprt3 /* for kmcoge5ne */ |
Tom Rini | 77cfb3d | 2022-12-04 10:13:59 -0500 | [diff] [blame] | 33 | #define CFG_TESTPIN_MASK 0x20 /* for kmcoge5ne */ |
Thomas Herzmann | 95209b6 | 2012-05-04 10:55:56 +0200 | [diff] [blame] | 34 | |
Holger Brunck | 0f2b721 | 2012-03-21 13:42:46 +0100 | [diff] [blame] | 35 | #endif /* CONFIG */ |