blob: d52f45ba911d66e603a5937d82eb71ac7112775e [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Holger Brunck3bf8b982012-03-21 13:42:46 +01002/*
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 Brunck3bf8b982012-03-21 13:42:46 +01006 */
7
8#ifndef __CONFIG_H
9#define __CONFIG_H
10
Holger Brunck3bf8b982012-03-21 13:42:46 +010011#define NAND_MAX_CHIPS 1
Tom Rini6a5dccc2022-11-16 13:10:41 -050012#define CFG_SYS_NAND_BASE CFG_SYS_KMBEC_FPGA_BASE /* PRIO_BASE_ADDRESS */
Holger Brunck3bf8b982012-03-21 13:42:46 +010013
Mario Sixcb791a82019-01-21 09:17:34 +010014/* include common defines/options for all Keymile boards */
Mario Six3e67cb22019-01-21 09:18:23 +010015#include "km/km-mpc83xx.h"
16#include "km/km-mpc8360.h"
Mario Sixcb791a82019-01-21 09:17:34 +010017
Holger Brunck3bf8b982012-03-21 13:42:46 +010018/**
Holger Brunck3bf8b982012-03-21 13:42:46 +010019 * KMCOGE5NE has 512 MB RAM
20 */
Tom Rini6a5dccc2022-11-16 13:10:41 -050021#define CFG_SYS_DDR_CS0_CONFIG (\
Holger Brunck3bf8b982012-03-21 13:42:46 +010022 CSCONFIG_EN | \
23 CSCONFIG_AP | \
Valentin Longchamp9c36b472015-11-17 10:53:33 +010024 CSCONFIG_ODT_WR_ONLY_CURRENT | \
Holger Brunck3bf8b982012-03-21 13:42:46 +010025 CSCONFIG_BANK_BIT_3 | \
26 CSCONFIG_ROW_BIT_13 | \
27 CSCONFIG_COL_BIT_10)
Holger Brunck3bf8b982012-03-21 13:42:46 +010028
Thomas Herzmann94fbf522012-05-04 10:55:56 +020029/* enable POST tests */
Tom Rini8eaa3c72022-11-19 18:45:44 -050030#define CFG_POST (CFG_SYS_POST_MEMORY|CFG_SYS_POST_MEM_REGIONS)
31#define CFG_POST_EXTERNAL_WORD_FUNCS /* use own functions, not generic */
Holger Brunck108ce1b2020-10-29 13:54:54 +010032#define CPM_POST_WORD_ADDR CONFIG_SYS_MEMTEST_END
Tom Rinie9fc2632022-12-04 10:14:00 -050033#define CFG_TESTPIN_REG gprt3 /* for kmcoge5ne */
Tom Rini115ad742022-12-04 10:13:59 -050034#define CFG_TESTPIN_MASK 0x20 /* for kmcoge5ne */
Thomas Herzmann94fbf522012-05-04 10:55:56 +020035
Holger Brunck3bf8b982012-03-21 13:42:46 +010036#endif /* CONFIG */