1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2015, 2021-2022 Tony Dinh <mibodhi@gmail.com>
5 * Gerald Kerma <dreagle@doukki.net>
6 * Luka Perkov <luka.perkov@sartura.hr>
9 #ifndef _CONFIG_NSA310S_H
10 #define _CONFIG_NSA310S_H
13 * mv-common.h should be defined after CMD configs since it used them
14 * to enable certain macros
16 #include "mv-common.h"
18 /* Include the common distro boot environment */
19 #ifndef CONFIG_SPL_BUILD
21 #define BOOT_TARGET_DEVICES(func) \
26 #define KERNEL_ADDR_R __stringify(0x800000)
27 #define FDT_ADDR_R __stringify(0x2c00000)
28 #define RAMDISK_ADDR_R __stringify(0x01100000)
29 #define SCRIPT_ADDR_R __stringify(0x200000)
31 #define LOAD_ADDRESS_ENV_SETTINGS \
32 "kernel_addr_r=" KERNEL_ADDR_R "\0" \
33 "fdt_addr_r=" FDT_ADDR_R "\0" \
34 "ramdisk_addr_r=" RAMDISK_ADDR_R "\0" \
35 "scriptaddr=" SCRIPT_ADDR_R "\0"
37 #include <config_distro_bootcmd.h>
39 #define CONFIG_EXTRA_ENV_SETTINGS \
40 "console=console=ttyS0,115200\0" \
41 "kernel=/boot/zImage\0" \
42 "fdt=/boot/nsa310s.dtb\0" \
43 "bootargs_root=ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw\0" \
44 LOAD_ADDRESS_ENV_SETTINGS \
47 #endif /* CONFIG_SPL_BUILD */
49 /* Ethernet driver configuration */
50 #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
51 #define CONFIG_PHY_BASE_ADR 1
53 #endif /* _CONFIG_NSA310S_H */