blob: 318e3680a6e13ef422f0795f8ad31b1d5d35bae5 [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 */
Chris Packhamb55b2c92019-01-10 21:01:00 +130016#define CONFIG_SYS_NS16550_CLK CONFIG_SYS_TCLK
17#if !defined(CONFIG_DM_SERIAL)
Chris Packhamb55b2c92019-01-10 21:01:00 +130018#define CONFIG_SYS_NS16550_COM1 MV_UART_CONSOLE_BASE
19#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
35#define MTDIDS_DEFAULT "nand0=nand"
36#define MTDPARTS_DEFAULT "mtdparts=nand:240M(user),8M(errlog),8M(nand-bbt)"
37#define MTDPARTS_MTDOOPS "errlog"
38
39/* Partition support */
40
41/* Additional FS support/configuration */
42
Chris Packhamb55b2c92019-01-10 21:01:00 +130043/* Environment in SPI NOR flash */
Chris Packhamb55b2c92019-01-10 21:01:00 +130044
Chris Packhamb55b2c92019-01-10 21:01:00 +130045#define PHY_ANEG_TIMEOUT 8000 /* PHY needs a longer aneg time */
46
Chris Packhamb55b2c92019-01-10 21:01:00 +130047/* NAND */
Chris Packhamb55b2c92019-01-10 21:01:00 +130048
Chris Packhamb55b2c92019-01-10 21:01:00 +130049#include <asm/arch/config.h>
50
Chris Packhamb55b2c92019-01-10 21:01:00 +130051/* Keep device tree and initrd in low memory so the kernel can access them */
52#define CONFIG_EXTRA_ENV_SETTINGS \
53 "fdt_high=0x10000000\0" \
54 "initrd_high=0x10000000\0"
55
Chris Packhamb55b2c92019-01-10 21:01:00 +130056#define CONFIG_UBI_PART user
57#define CONFIG_UBIFS_VOLUME user
58
Chris Packhamb55b2c92019-01-10 21:01:00 +130059#endif /* _CONFIG_X530_H */