blob: cb126837b9ca3e5ec955c89a191841e4ebec0fd8 [file] [log] [blame]
Chris Packham0e316662019-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 Packham0e316662019-01-10 21:01:00 +130013/*
14 * NS16550 Configuration
15 */
16#define CONFIG_SYS_NS16550_SERIAL
17#define CONFIG_SYS_NS16550_CLK CONFIG_SYS_TCLK
18#if !defined(CONFIG_DM_SERIAL)
19#define CONFIG_SYS_NS16550_REG_SIZE (-4)
20#define CONFIG_SYS_NS16550_COM1 MV_UART_CONSOLE_BASE
21#endif
22
23/*
24 * Serial Port configuration
25 * The following definitions let you select what serial you want to use
26 * for your console driver.
27 */
28
Chris Packham0e316662019-01-10 21:01:00 +130029/* NAND */
Chris Packham0e316662019-01-10 21:01:00 +130030#define CONFIG_SYS_MAX_NAND_DEVICE 1
31
32#define BBT_CUSTOM_SCAN
33#define BBT_CUSTOM_SCAN_PAGE 0
34#define BBT_CUSTOM_SCAN_POSITION 2048
35
36/* SPI NOR flash default params, used by sf commands */
Chris Packham0e316662019-01-10 21:01:00 +130037
38#define MTDIDS_DEFAULT "nand0=nand"
39#define MTDPARTS_DEFAULT "mtdparts=nand:240M(user),8M(errlog),8M(nand-bbt)"
40#define MTDPARTS_MTDOOPS "errlog"
41
42/* Partition support */
43
44/* Additional FS support/configuration */
45
Chris Packham0e316662019-01-10 21:01:00 +130046/* Environment in SPI NOR flash */
Chris Packham0e316662019-01-10 21:01:00 +130047
Chris Packham0e316662019-01-10 21:01:00 +130048#define PHY_ANEG_TIMEOUT 8000 /* PHY needs a longer aneg time */
49
Chris Packham0e316662019-01-10 21:01:00 +130050/* NAND */
Chris Packham0e316662019-01-10 21:01:00 +130051
Chris Packham0e316662019-01-10 21:01:00 +130052#include <asm/arch/config.h>
53
Chris Packham0e316662019-01-10 21:01:00 +130054/* Keep device tree and initrd in low memory so the kernel can access them */
55#define CONFIG_EXTRA_ENV_SETTINGS \
56 "fdt_high=0x10000000\0" \
57 "initrd_high=0x10000000\0"
58
Chris Packham0e316662019-01-10 21:01:00 +130059#define CONFIG_UBI_PART user
60#define CONFIG_UBIFS_VOLUME user
61
Chris Packham0e316662019-01-10 21:01:00 +130062#endif /* _CONFIG_X530_H */