Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Stefan | bfacf46 | 2011-12-23 06:35:04 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2011 |
Stefan Herbrechtsmeier | 16437a1 | 2014-12-28 14:09:50 +0100 | [diff] [blame] | 4 | * Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net> |
Stefan | bfacf46 | 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 | bfacf46 | 2011-12-23 06:35:04 +0000 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | #ifndef _CONFIG_DNS325_H |
| 13 | #define _CONFIG_DNS325_H |
| 14 | |
Stefan | bfacf46 | 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 | bfacf46 | 2011-12-23 06:35:04 +0000 | [diff] [blame] | 18 | |
| 19 | /* |
Stefan | bfacf46 | 2011-12-23 06:35:04 +0000 | [diff] [blame] | 20 | * Enable GPI0 support |
| 21 | */ |
Stefan | bfacf46 | 2011-12-23 06:35:04 +0000 | [diff] [blame] | 22 | |
| 23 | /* |
Stefan | bfacf46 | 2011-12-23 06:35:04 +0000 | [diff] [blame] | 24 | * Environment variables configurations |
| 25 | */ |
Stefan | bfacf46 | 2011-12-23 06:35:04 +0000 | [diff] [blame] | 26 | |
| 27 | /* |
| 28 | * Default environment variables |
| 29 | */ |
Stefan | bfacf46 | 2011-12-23 06:35:04 +0000 | [diff] [blame] | 30 | |
Tom Rini | 0613c36 | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 31 | #define CFG_EXTRA_ENV_SETTINGS \ |
Stefan | bfacf46 | 2011-12-23 06:35:04 +0000 | [diff] [blame] | 32 | "stdin=serial\0" \ |
| 33 | "stdout=serial\0" \ |
| 34 | "stderr=serial\0" \ |
| 35 | "loadaddr=0x800000\0" \ |
Stefan | bfacf46 | 2011-12-23 06:35:04 +0000 | [diff] [blame] | 36 | "console=ttyS0,115200\0" \ |
Stefan | bfacf46 | 2011-12-23 06:35:04 +0000 | [diff] [blame] | 37 | "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 | |
Stefan | bfacf46 | 2011-12-23 06:35:04 +0000 | [diff] [blame] | 59 | #endif /* _CONFIG_DNS325_H */ |