blob: e59ef11e66a70de3bae033ebacf90dcb3cea7cdf [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Gerald Kerma06990b82015-10-23 09:50:58 +02002/*
3 * Copyright (C) 2015
4 * Gerald Kerma <dreagle@doukki.net>
5 * Tony Dinh <mibodhi@gmail.com>
6 * Luka Perkov <luka.perkov@sartura.hr>
Gerald Kerma06990b82015-10-23 09:50:58 +02007 */
8
9#ifndef _CONFIG_NSA310S_H
10#define _CONFIG_NSA310S_H
11
12/* high level configuration options */
13#define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
14#define CONFIG_KW88F6192 1 /* SOC Name */
15#define CONFIG_KW88F6702 1 /* SOC Name */
16#define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
17
Gerald Kerma06990b82015-10-23 09:50:58 +020018/* compression configuration */
19#define CONFIG_BZIP2
Gerald Kerma06990b82015-10-23 09:50:58 +020020
21/* commands configuration */
Gerald Kerma06990b82015-10-23 09:50:58 +020022
23/*
24 * mv-common.h should be defined after CMD configs since it used them
25 * to enable certain macros
26 */
27#include "mv-common.h"
28
29/* environment variables configuration */
Gerald Kerma06990b82015-10-23 09:50:58 +020030
31/* default environment variables */
32#define CONFIG_BOOTCOMMAND \
33 "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
34 "ubi part root; " \
35 "ubifsmount ubi:rootfs; " \
36 "ubifsload 0x800000 ${kernel}; " \
37 "ubifsload 0x700000 ${fdt}; " \
38 "ubifsumount; " \
39 "fdt addr 0x700000; fdt resize; fdt chosen; " \
40 "bootz 0x800000 - 0x700000"
41
Gerald Kerma06990b82015-10-23 09:50:58 +020042#define CONFIG_EXTRA_ENV_SETTINGS \
43 "console=console=ttyS0,115200\0" \
44 "mtdids=nand0=orion_nand\0" \
Tom Rini5ad8e112017-10-22 17:55:07 -040045 "mtdparts="CONFIG_MTDPARTS_DEFAULT \
Gerald Kerma06990b82015-10-23 09:50:58 +020046 "kernel=/boot/zImage\0" \
47 "fdt=/boot/nsa310s.dtb\0" \
48 "bootargs_root=ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw\0"
49
50/* Ethernet driver configuration */
51#ifdef CONFIG_CMD_NET
52#define CONFIG_NETCONSOLE
Gerald Kerma06990b82015-10-23 09:50:58 +020053#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
54#define CONFIG_PHY_BASE_ADR 1
Gerald Kerma06990b82015-10-23 09:50:58 +020055#define CONFIG_RESET_PHY_R
56#endif /* CONFIG_CMD_NET */
57
58/* SATA driver configuration */
Simon Glassb569a012017-05-17 03:25:30 -060059#ifdef CONFIG_IDE
Gerald Kerma06990b82015-10-23 09:50:58 +020060#define __io
61#define CONFIG_IDE_PREINIT
Gerald Kerma06990b82015-10-23 09:50:58 +020062#define CONFIG_MVSATA_IDE_USE_PORT0
63#define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
Simon Glassb569a012017-05-17 03:25:30 -060064#endif /* CONFIG_IDE */
Gerald Kerma06990b82015-10-23 09:50:58 +020065
66/* RTC driver configuration */
67#ifdef CONFIG_CMD_DATE
68#define CONFIG_RTC_MV
69#endif /* CONFIG_CMD_DATE */
70
71#endif /* _CONFIG_NSA310S_H */