blob: 4842eccf40de9c05b3571683b70f68d9d03e09ed [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/*
Stefanc98efc32011-12-23 06:35:04 +000020 * Enable GPI0 support
21 */
Stefanc98efc32011-12-23 06:35:04 +000022
23/*
Stefanc98efc32011-12-23 06:35:04 +000024 * Environment variables configurations
25 */
Stefanc98efc32011-12-23 06:35:04 +000026
27/*
28 * Default environment variables
29 */
Stefanc98efc32011-12-23 06:35:04 +000030
Tom Rinic9edebe2022-12-04 10:03:50 -050031#define CFG_EXTRA_ENV_SETTINGS \
Stefanc98efc32011-12-23 06:35:04 +000032 "stdin=serial\0" \
33 "stdout=serial\0" \
34 "stderr=serial\0" \
35 "loadaddr=0x800000\0" \
Stefanc98efc32011-12-23 06:35:04 +000036 "console=ttyS0,115200\0" \
Stefanc98efc32011-12-23 06:35:04 +000037 "optargs=\0" \
38 "bootenv=uEnv.txt\0" \
39 "importbootenv=echo Importing environment ...; " \
40 "env import -t ${loadaddr} ${filesize}\0" \
41 "loadbootenv=fatload usb 0 ${loadaddr} ${bootenv}\0" \
42 "setbootargs=setenv bootargs console=${console} " \
43 "${optargs} " \
44 "${mtdparts} " \
45 "root=${bootenvroot} " \
46 "rootfstype=${bootenvrootfstype}\0" \
47 "subbootcmd=run setbootargs; " \
48 "if run bootenvloadimage; then " \
49 "bootm ${loadaddr};" \
50 "fi;\0" \
51 "nandroot=ubi0:rootfs ubi.mtd=rootfs\0" \
52 "nandrootfstype=ubifs\0" \
53 "nandloadimage=nand read ${loadaddr} kernel\0" \
54 "setnandbootenv=echo Booting from nand ...; " \
55 "setenv bootenvroot ${nandroot}; " \
56 "setenv bootenvrootfstype ${nandrootfstype}; " \
57 "setenv bootenvloadimage ${nandloadimage}\0"
58
Stefanc98efc32011-12-23 06:35:04 +000059#endif /* _CONFIG_DNS325_H */