blob: 982b1292873400827a81ef902c190517a71a1c12 [file] [log] [blame]
Chris Packhamb55b2c92019-01-10 21:01:00 +13001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright (C) 2018 Allied Telesis Labs
4 */
5
6#ifndef _CONFIG_X530_H
7#define _CONFIG_X530_H
8
9/*
10 * High Level Configuration Options (easy to change)
11 */
12
Chris Packhamb55b2c92019-01-10 21:01:00 +130013/*
14 * NS16550 Configuration
15 */
Tom Rini6a5dccc2022-11-16 13:10:41 -050016#define CFG_SYS_NS16550_CLK CFG_SYS_TCLK
Tom Rini952cc382022-12-04 10:14:13 -050017#if !CONFIG_IS_ENABLED(DM_SERIAL)
Tom Rinidf6a2152022-11-16 13:10:28 -050018#define CFG_SYS_NS16550_COM1 MV_UART_CONSOLE_BASE
Chris Packhamb55b2c92019-01-10 21:01:00 +130019#endif
20
21/*
22 * Serial Port configuration
23 * The following definitions let you select what serial you want to use
24 * for your console driver.
25 */
26
Chris Packhamb55b2c92019-01-10 21:01:00 +130027/* NAND */
Chris Packhamb55b2c92019-01-10 21:01:00 +130028
29#define BBT_CUSTOM_SCAN
30#define BBT_CUSTOM_SCAN_PAGE 0
31#define BBT_CUSTOM_SCAN_POSITION 2048
32
33/* SPI NOR flash default params, used by sf commands */
Chris Packhamb55b2c92019-01-10 21:01:00 +130034
Chris Packhamb55b2c92019-01-10 21:01:00 +130035#define MTDPARTS_MTDOOPS "errlog"
36
37/* Partition support */
38
39/* Additional FS support/configuration */
40
Chris Packhamb55b2c92019-01-10 21:01:00 +130041/* Environment in SPI NOR flash */
Chris Packhamb55b2c92019-01-10 21:01:00 +130042
Chris Packhamb55b2c92019-01-10 21:01:00 +130043/* NAND */
Chris Packhamb55b2c92019-01-10 21:01:00 +130044
Chris Packhamb55b2c92019-01-10 21:01:00 +130045#include <asm/arch/config.h>
46
Chris Packhamb55b2c92019-01-10 21:01:00 +130047/* Keep device tree and initrd in low memory so the kernel can access them */
Tom Rinic9edebe2022-12-04 10:03:50 -050048#define CFG_EXTRA_ENV_SETTINGS \
Chris Packhamb55b2c92019-01-10 21:01:00 +130049 "fdt_high=0x10000000\0" \
50 "initrd_high=0x10000000\0"
51
Chris Packhamb55b2c92019-01-10 21:01:00 +130052#endif /* _CONFIG_X530_H */