Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Eric Cooper | a3f41c8 | 2010-11-24 17:11:32 +0530 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2010 Eric C. Cooper <ecc@cmu.edu> |
| 4 | * |
| 5 | * Based on sheevaplug.h originally written by |
| 6 | * Prafulla Wadaskar <prafulla@marvell.com> |
| 7 | * (C) Copyright 2009 |
| 8 | * Marvell Semiconductor <www.marvell.com> |
Eric Cooper | a3f41c8 | 2010-11-24 17:11:32 +0530 | [diff] [blame] | 9 | */ |
| 10 | |
| 11 | #ifndef _CONFIG_DOCKSTAR_H |
| 12 | #define _CONFIG_DOCKSTAR_H |
| 13 | |
| 14 | /* |
Eric Cooper | a3f41c8 | 2010-11-24 17:11:32 +0530 | [diff] [blame] | 15 | * mv-common.h should be defined after CMD configs since it used them |
| 16 | * to enable certain macros |
| 17 | */ |
| 18 | #include "mv-common.h" |
| 19 | |
Eric Cooper | a3f41c8 | 2010-11-24 17:11:32 +0530 | [diff] [blame] | 20 | /* |
| 21 | * Environment variables configurations |
| 22 | */ |
Eric Cooper | a3f41c8 | 2010-11-24 17:11:32 +0530 | [diff] [blame] | 23 | /* |
| 24 | * max 4k env size is enough, but in case of nand |
| 25 | * it has to be rounded to sector size |
| 26 | */ |
Eric Cooper | a3f41c8 | 2010-11-24 17:11:32 +0530 | [diff] [blame] | 27 | |
| 28 | /* |
| 29 | * Default environment variables |
| 30 | */ |
Eric Cooper | a3f41c8 | 2010-11-24 17:11:32 +0530 | [diff] [blame] | 31 | |
Eric Cooper | a3f41c8 | 2010-11-24 17:11:32 +0530 | [diff] [blame] | 32 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 33 | "console=console=ttyS0,115200\0" \ |
| 34 | "mtdids=nand0=orion_nand\0" \ |
Tom Rini | 5ad8e11 | 2017-10-22 17:55:07 -0400 | [diff] [blame] | 35 | "mtdparts="CONFIG_MTDPARTS_DEFAULT \ |
Eric Cooper | a3f41c8 | 2010-11-24 17:11:32 +0530 | [diff] [blame] | 36 | "kernel=/boot/uImage\0" \ |
| 37 | "initrd=/boot/uInitrd\0" \ |
| 38 | "bootargs_root=ubi.mtd=1 root=ubi0:root rootfstype=ubifs ro\0" |
| 39 | |
| 40 | /* |
| 41 | * Ethernet Driver configuration |
| 42 | */ |
| 43 | #ifdef CONFIG_CMD_NET |
| 44 | #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */ |
| 45 | #define CONFIG_PHY_BASE_ADR 0 |
| 46 | #endif /* CONFIG_CMD_NET */ |
| 47 | |
| 48 | /* |
| 49 | * File system |
| 50 | */ |
Eric Cooper | a3f41c8 | 2010-11-24 17:11:32 +0530 | [diff] [blame] | 51 | |
| 52 | #endif /* _CONFIG_DOCKSTAR_H */ |