2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2012-03-21 12:42:46 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2012
|
|
|
|
* Holger Brunck, Keymile GmbH Hannover, <holger.brunck@keymile.com>
|
|
|
|
* Christian Herzig, Keymile AG Switzerland, <christian.herzig@keymile.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CONFIG_H
|
|
|
|
#define __CONFIG_H
|
|
|
|
|
|
|
|
#define NAND_MAX_CHIPS 1
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_NAND_BASE CFG_SYS_KMBEC_FPGA_BASE /* PRIO_BASE_ADDRESS */
|
2012-03-21 12:42:46 +00:00
|
|
|
|
2019-01-21 08:17:34 +00:00
|
|
|
/* include common defines/options for all Keymile boards */
|
2019-01-21 08:18:23 +00:00
|
|
|
#include "km/km-mpc83xx.h"
|
|
|
|
#include "km/km-mpc8360.h"
|
2019-01-21 08:17:34 +00:00
|
|
|
|
2012-03-21 12:42:46 +00:00
|
|
|
/**
|
|
|
|
* KMCOGE5NE has 512 MB RAM
|
|
|
|
*/
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_DDR_CS0_CONFIG (\
|
2012-03-21 12:42:46 +00:00
|
|
|
CSCONFIG_EN | \
|
|
|
|
CSCONFIG_AP | \
|
2015-11-17 09:53:33 +00:00
|
|
|
CSCONFIG_ODT_WR_ONLY_CURRENT | \
|
2012-03-21 12:42:46 +00:00
|
|
|
CSCONFIG_BANK_BIT_3 | \
|
|
|
|
CSCONFIG_ROW_BIT_13 | \
|
|
|
|
CSCONFIG_COL_BIT_10)
|
|
|
|
|
2012-05-04 08:55:56 +00:00
|
|
|
/* enable POST tests */
|
2022-11-19 23:45:44 +00:00
|
|
|
#define CFG_POST (CFG_SYS_POST_MEMORY|CFG_SYS_POST_MEM_REGIONS)
|
|
|
|
#define CFG_POST_EXTERNAL_WORD_FUNCS /* use own functions, not generic */
|
2020-10-29 12:54:54 +00:00
|
|
|
#define CPM_POST_WORD_ADDR CONFIG_SYS_MEMTEST_END
|
2012-05-04 08:55:56 +00:00
|
|
|
#define CONFIG_TESTPIN_REG gprt3 /* for kmcoge5ne */
|
|
|
|
#define CONFIG_TESTPIN_MASK 0x20 /* for kmcoge5ne */
|
|
|
|
|
2012-03-21 12:42:46 +00:00
|
|
|
#endif /* CONFIG */
|