e35c16add4ddaa83a6ec8d37e96b070588751ce2
[platform/kernel/u-boot.git] / include / configs / dns325.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2011
4  * Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
5  *
6  * Based on Kirkwood support:
7  * (C) Copyright 2009
8  * Marvell Semiconductor <www.marvell.com>
9  * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
10  */
11
12 #ifndef _CONFIG_DNS325_H
13 #define _CONFIG_DNS325_H
14
15 #include "mv-common.h"
16
17 /* Remove or override few declarations from mv-common.h */
18
19 /*
20  * Ethernet Driver configuration
21  */
22 #ifdef CONFIG_CMD_NET
23 #define CONFIG_MVGBE_PORTS              {1, 0} /* enable port 0 only */
24 #endif
25
26 /*
27  * Enable GPI0 support
28  */
29 #define CONFIG_KIRKWOOD_GPIO
30
31 /*
32  * Environment variables configurations
33  */
34
35 /*
36  * Default environment variables
37  */
38
39 #define CONFIG_EXTRA_ENV_SETTINGS \
40         "stdin=serial\0" \
41         "stdout=serial\0" \
42         "stderr=serial\0" \
43         "loadaddr=0x800000\0" \
44         "autoload=no\0" \
45         "console=ttyS0,115200\0" \
46         "mtdparts="CONFIG_MTDPARTS_DEFAULT \
47         "optargs=\0" \
48         "bootenv=uEnv.txt\0" \
49         "importbootenv=echo Importing environment ...; " \
50                 "env import -t ${loadaddr} ${filesize}\0" \
51         "loadbootenv=fatload usb 0 ${loadaddr} ${bootenv}\0" \
52         "setbootargs=setenv bootargs console=${console} " \
53                 "${optargs} " \
54                 "${mtdparts} " \
55                 "root=${bootenvroot} " \
56                 "rootfstype=${bootenvrootfstype}\0" \
57         "subbootcmd=run setbootargs; " \
58                 "if run bootenvloadimage; then " \
59                         "bootm ${loadaddr};" \
60                 "fi;\0" \
61         "nandroot=ubi0:rootfs ubi.mtd=rootfs\0" \
62         "nandrootfstype=ubifs\0" \
63         "nandloadimage=nand read ${loadaddr} kernel\0" \
64         "setnandbootenv=echo Booting from nand ...; " \
65                 "setenv bootenvroot ${nandroot}; " \
66                 "setenv bootenvrootfstype ${nandrootfstype}; " \
67                 "setenv bootenvloadimage ${nandloadimage}\0"
68
69 #endif /* _CONFIG_DNS325_H */