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