blob: 0590704000ec7b50c5d5a5950ce8b49a8522a3d4 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Stefanc98efc32011-12-23 06:35:04 +00002/*
3 * Copyright (C) 2011
Stefan Herbrechtsmeier91eafc02014-12-28 14:09:50 +01004 * Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
Stefanc98efc32011-12-23 06:35:04 +00005 *
6 * Based on Kirkwood support:
7 * (C) Copyright 2009
8 * Marvell Semiconductor <www.marvell.com>
9 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
Stefanc98efc32011-12-23 06:35:04 +000010 */
11
12#ifndef _CONFIG_DNS325_H
13#define _CONFIG_DNS325_H
14
Stefanc98efc32011-12-23 06:35:04 +000015#include "mv-common.h"
16
17/* Remove or override few declarations from mv-common.h */
Stefanc98efc32011-12-23 06:35:04 +000018
19/*
20 * Ethernet Driver configuration
21 */
22#ifdef CONFIG_CMD_NET
23#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
Stefanc98efc32011-12-23 06:35:04 +000024#endif
25
26/*
Stefanc98efc32011-12-23 06:35:04 +000027 * Enable GPI0 support
28 */
Stefanc98efc32011-12-23 06:35:04 +000029
30/*
Stefanc98efc32011-12-23 06:35:04 +000031 * Environment variables configurations
32 */
Stefanc98efc32011-12-23 06:35:04 +000033
34/*
35 * Default environment variables
36 */
Stefanc98efc32011-12-23 06:35:04 +000037
38#define CONFIG_EXTRA_ENV_SETTINGS \
39 "stdin=serial\0" \
40 "stdout=serial\0" \
41 "stderr=serial\0" \
42 "loadaddr=0x800000\0" \
43 "autoload=no\0" \
44 "console=ttyS0,115200\0" \
Tom Rini5ad8e112017-10-22 17:55:07 -040045 "mtdparts="CONFIG_MTDPARTS_DEFAULT \
Stefanc98efc32011-12-23 06:35:04 +000046 "optargs=\0" \
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} " \
52 "${optargs} " \
53 "${mtdparts} " \
54 "root=${bootenvroot} " \
55 "rootfstype=${bootenvrootfstype}\0" \
56 "subbootcmd=run setbootargs; " \
57 "if run bootenvloadimage; then " \
58 "bootm ${loadaddr};" \
59 "fi;\0" \
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"
67
Stefanc98efc32011-12-23 06:35:04 +000068#endif /* _CONFIG_DNS325_H */