1 /* SPDX-License-Identifier: GPL-2.0+ */
4 * Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
6 * Based on Kirkwood support:
8 * Marvell Semiconductor <www.marvell.com>
9 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
12 #ifndef _CONFIG_DNS325_H
13 #define _CONFIG_DNS325_H
15 #include "mv-common.h"
17 /* Remove or override few declarations from mv-common.h */
20 * Ethernet Driver configuration
23 #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
31 * Environment variables configurations
35 * Default environment variables
38 #define CONFIG_EXTRA_ENV_SETTINGS \
42 "loadaddr=0x800000\0" \
44 "console=ttyS0,115200\0" \
45 "mtdparts="CONFIG_MTDPARTS_DEFAULT \
47 "bootenv=uEnv.txt\0" \
48 "importbootenv=echo Importing environment ...; " \
49 "env import -t ${loadaddr} ${filesize}\0" \
50 "loadbootenv=fatload usb 0 ${loadaddr} ${bootenv}\0" \
51 "setbootargs=setenv bootargs console=${console} " \
54 "root=${bootenvroot} " \
55 "rootfstype=${bootenvrootfstype}\0" \
56 "subbootcmd=run setbootargs; " \
57 "if run bootenvloadimage; then " \
58 "bootm ${loadaddr};" \
60 "nandroot=ubi0:rootfs ubi.mtd=rootfs\0" \
61 "nandrootfstype=ubifs\0" \
62 "nandloadimage=nand read ${loadaddr} kernel\0" \
63 "setnandbootenv=echo Booting from nand ...; " \
64 "setenv bootenvroot ${nandroot}; " \
65 "setenv bootenvrootfstype ${nandrootfstype}; " \
66 "setenv bootenvloadimage ${nandloadimage}\0"
68 #endif /* _CONFIG_DNS325_H */