blob: 4c320522d2f77d49341ada28a621ba2ec15d99c5 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Gerald Kermaf1df81c2015-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 Kermaf1df81c2015-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
18/* add target to build it automatically upon "make" */
19#define CONFIG_BUILD_TARGET "u-boot.kwb"
20
21/* compression configuration */
22#define CONFIG_BZIP2
Gerald Kermaf1df81c2015-10-23 09:50:58 +020023
24/* commands configuration */
Gerald Kermaf1df81c2015-10-23 09:50:58 +020025#define CONFIG_SYS_MVFS
Gerald Kermaf1df81c2015-10-23 09:50:58 +020026
27/*
28 * mv-common.h should be defined after CMD configs since it used them
29 * to enable certain macros
30 */
31#include "mv-common.h"
32
33/* environment variables configuration */
34#ifdef CONFIG_CMD_NAND
Gerald Kermaf1df81c2015-10-23 09:50:58 +020035#define CONFIG_ENV_SECT_SIZE 0x20000
Gerald Kermaf1df81c2015-10-23 09:50:58 +020036#endif
37#define CONFIG_ENV_SIZE 0x20000
38#define CONFIG_ENV_OFFSET 0xe0000
39
40/* default environment variables */
41#define CONFIG_BOOTCOMMAND \
42 "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
43 "ubi part root; " \
44 "ubifsmount ubi:rootfs; " \
45 "ubifsload 0x800000 ${kernel}; " \
46 "ubifsload 0x700000 ${fdt}; " \
47 "ubifsumount; " \
48 "fdt addr 0x700000; fdt resize; fdt chosen; " \
49 "bootz 0x800000 - 0x700000"
50
Gerald Kermaf1df81c2015-10-23 09:50:58 +020051#define CONFIG_EXTRA_ENV_SETTINGS \
52 "console=console=ttyS0,115200\0" \
53 "mtdids=nand0=orion_nand\0" \
Tom Rini43ede0b2017-10-22 17:55:07 -040054 "mtdparts="CONFIG_MTDPARTS_DEFAULT \
Gerald Kermaf1df81c2015-10-23 09:50:58 +020055 "kernel=/boot/zImage\0" \
56 "fdt=/boot/nsa310s.dtb\0" \
57 "bootargs_root=ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw\0"
58
59/* Ethernet driver configuration */
60#ifdef CONFIG_CMD_NET
61#define CONFIG_NETCONSOLE
Gerald Kermaf1df81c2015-10-23 09:50:58 +020062#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
63#define CONFIG_PHY_BASE_ADR 1
Gerald Kermaf1df81c2015-10-23 09:50:58 +020064#define CONFIG_RESET_PHY_R
65#endif /* CONFIG_CMD_NET */
66
67/* SATA driver configuration */
Simon Glassfc843a02017-05-17 03:25:30 -060068#ifdef CONFIG_IDE
Gerald Kermaf1df81c2015-10-23 09:50:58 +020069#define __io
70#define CONFIG_IDE_PREINIT
Gerald Kermaf1df81c2015-10-23 09:50:58 +020071#define CONFIG_MVSATA_IDE_USE_PORT0
72#define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
Simon Glassfc843a02017-05-17 03:25:30 -060073#endif /* CONFIG_IDE */
Gerald Kermaf1df81c2015-10-23 09:50:58 +020074
75/* RTC driver configuration */
76#ifdef CONFIG_CMD_DATE
77#define CONFIG_RTC_MV
78#endif /* CONFIG_CMD_DATE */
79
80#endif /* _CONFIG_NSA310S_H */