blob: 0f75ad71859e1c83903a5ebd1d9779b25aeb0c83 [file] [log] [blame]
Chris Packham4db944a2019-04-11 22:22:53 +12001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright (C) 2014 Stefan Roese <sr@denx.de>
4 */
5
6#ifndef _CONFIG_DB_XC3_24G4G_H
7#define _CONFIG_DB_XC3_24G4G_H
8
9/*
10 * High Level Configuration Options (easy to change)
11 */
12
13#define CONFIG_SYS_KWD_CONFIG $(CONFIG_BOARDDIR)/kwbimage.cfg
14#define CONFIG_SYS_TCLK 200000000 /* 200MHz */
15
16/* USB/EHCI configuration */
17#define CONFIG_EHCI_IS_TDI
18
19/* Environment in SPI NOR flash */
20#define CONFIG_ENV_OFFSET (1 << 20) /* 1MiB in */
21#define CONFIG_ENV_SIZE (64 << 10) /* 64KiB */
22#define CONFIG_ENV_SECT_SIZE (256 << 10) /* 256KiB sectors */
23
24/* NAND */
25#define CONFIG_SYS_NAND_USE_FLASH_BBT
26#define CONFIG_SYS_NAND_ONFI_DETECTION
27
28/* Keep device tree and initrd in lower memory so the kernel can access them */
29#define CONFIG_EXTRA_ENV_SETTINGS \
30 "fdt_high=0x10000000\0" \
31 "initrd_high=0x10000000\0"
32
33/*
34 * mv-common.h should be defined after CMD configs since it used them
35 * to enable certain macros
36 */
37#include "mv-common.h"
38#undef CONFIG_SYS_MAXARGS
39#define CONFIG_SYS_MAXARGS 96
40
41#endif /* _CONFIG_DB_XC3_24G4G_H */