1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2015, 2021-2023 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 #define KERNEL_ADDR_R __stringify(0x800000)
19 #define FDT_ADDR_R __stringify(0x2c00000)
20 #define RAMDISK_ADDR_R __stringify(0x01100000)
21 #define SCRIPT_ADDR_R __stringify(0x200000)
23 #define LOAD_ADDRESS_ENV_SETTINGS \
24 "kernel_addr_r=" KERNEL_ADDR_R "\0" \
25 "fdt_addr_r=" FDT_ADDR_R "\0" \
26 "ramdisk_addr_r=" RAMDISK_ADDR_R "\0" \
27 "scriptaddr=" SCRIPT_ADDR_R "\0"
29 #define CFG_EXTRA_ENV_SETTINGS \
30 "console=console=ttyS0,115200\0" \
31 "kernel=/boot/zImage\0" \
32 "fdt=/boot/nsa310s.dtb\0" \
33 "bootargs_root=ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw\0" \
34 LOAD_ADDRESS_ENV_SETTINGS
36 #endif /* _CONFIG_NSA310S_H */