2021-07-08 02:55:41 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
/*
|
2022-04-17 20:42:42 +00:00
|
|
|
* Copyright (C) 2015, 2021-2022 Tony Dinh <mibodhi@gmail.com>
|
2021-07-08 02:55:41 +00:00
|
|
|
* Copyright (C) 2015
|
|
|
|
* Gerald Kerma <dreagle@doukki.net>
|
|
|
|
* Luka Perkov <luka.perkov@sartura.hr>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _CONFIG_NSA310S_H
|
|
|
|
#define _CONFIG_NSA310S_H
|
|
|
|
|
2022-08-11 23:40:25 +00:00
|
|
|
/*
|
|
|
|
* mv-common.h should be defined after CMD configs since it used them
|
|
|
|
* to enable certain macros
|
|
|
|
*/
|
2021-07-08 02:55:41 +00:00
|
|
|
#include "mv-common.h"
|
|
|
|
|
2022-08-11 23:40:25 +00:00
|
|
|
/* Include the common distro boot environment */
|
|
|
|
#ifndef CONFIG_SPL_BUILD
|
|
|
|
|
|
|
|
#define BOOT_TARGET_DEVICES(func) \
|
|
|
|
func(USB, usb, 0) \
|
|
|
|
func(SATA, sata, 0) \
|
|
|
|
func(DHCP, dhcp, na)
|
|
|
|
|
|
|
|
#define KERNEL_ADDR_R __stringify(0x800000)
|
|
|
|
#define FDT_ADDR_R __stringify(0x2c00000)
|
|
|
|
#define RAMDISK_ADDR_R __stringify(0x01100000)
|
|
|
|
#define SCRIPT_ADDR_R __stringify(0x200000)
|
|
|
|
|
|
|
|
#define LOAD_ADDRESS_ENV_SETTINGS \
|
|
|
|
"kernel_addr_r=" KERNEL_ADDR_R "\0" \
|
|
|
|
"fdt_addr_r=" FDT_ADDR_R "\0" \
|
|
|
|
"ramdisk_addr_r=" RAMDISK_ADDR_R "\0" \
|
|
|
|
"scriptaddr=" SCRIPT_ADDR_R "\0"
|
|
|
|
|
|
|
|
#include <config_distro_bootcmd.h>
|
2021-07-08 02:55:41 +00:00
|
|
|
|
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
|
|
"console=console=ttyS0,115200\0" \
|
|
|
|
"kernel=/boot/zImage\0" \
|
|
|
|
"fdt=/boot/nsa310s.dtb\0" \
|
2022-08-11 23:40:25 +00:00
|
|
|
"bootargs_root=ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw\0" \
|
|
|
|
LOAD_ADDRESS_ENV_SETTINGS \
|
|
|
|
BOOTENV
|
|
|
|
|
|
|
|
#endif /* CONFIG_SPL_BUILD */
|
2021-07-08 02:55:41 +00:00
|
|
|
|
|
|
|
/* Ethernet driver configuration */
|
|
|
|
#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
|
|
|
|
#define CONFIG_PHY_BASE_ADR 1
|
|
|
|
|
|
|
|
#endif /* _CONFIG_NSA310S_H */
|