Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 2 | /* |
DrEagle | 9ea4800 | 2014-09-07 18:01:21 +0200 | [diff] [blame] | 3 | * (C) Copyright 2009-2014 |
| 4 | * Gerald Kerma <dreagle@doukki.net> |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 5 | * Marvell Semiconductor <www.marvell.com> |
| 6 | * Written-by: Prafulla Wadaskar <prafulla@marvell.com> |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef _CONFIG_SHEEVAPLUG_H |
| 10 | #define _CONFIG_SHEEVAPLUG_H |
| 11 | |
| 12 | /* |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 13 | * High Level Configuration Options (easy to change) |
| 14 | */ |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 15 | #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */ |
DrEagle | 511d72d | 2014-12-17 15:02:48 +0100 | [diff] [blame] | 16 | |
Quentin Armitage | a99ac8a | 2015-10-28 00:47:21 +0000 | [diff] [blame] | 17 | #include "mv-plug-common.h" |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 18 | |
| 19 | /* |
| 20 | * Environment variables configurations |
| 21 | */ |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 22 | /* |
| 23 | * max 4k env size is enough, but in case of nand |
| 24 | * it has to be rounded to sector size |
| 25 | */ |
Chris Packham | f585c01 | 2018-06-04 19:51:49 +1200 | [diff] [blame] | 26 | /* |
| 27 | * Environment is right behind U-Boot in flash. Make sure U-Boot |
| 28 | * doesn't grow into the environment area. |
| 29 | */ |
| 30 | #define CONFIG_BOARD_SIZE_LIMIT CONFIG_ENV_OFFSET |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 31 | |
| 32 | /* |
| 33 | * Default environment variables |
| 34 | */ |
| 35 | #define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \ |
| 36 | "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \ |
Peter Korsgaard | 8913202 | 2016-01-17 18:23:44 +0100 | [diff] [blame] | 37 | "bootm 0x6400000;" |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 38 | |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 39 | #define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \ |
Tom Rini | 5ad8e11 | 2017-10-22 17:55:07 -0400 | [diff] [blame] | 40 | "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS_DEFAULT \ |
Peter Korsgaard | 280eb45 | 2016-01-17 18:23:45 +0100 | [diff] [blame] | 41 | "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x400000\0" \ |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 42 | "x_bootcmd_usb=usb start\0" \ |
| 43 | "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0" |
| 44 | |
| 45 | /* |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 46 | * Ethernet Driver configuration |
| 47 | */ |
| 48 | #ifdef CONFIG_CMD_NET |
Albert Aribaud | e91d7d3 | 2010-07-12 22:24:28 +0200 | [diff] [blame] | 49 | #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */ |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 50 | #define CONFIG_PHY_BASE_ADR 0 |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 51 | #endif /* CONFIG_CMD_NET */ |
| 52 | |
| 53 | /* |
DrEagle | 9ea4800 | 2014-09-07 18:01:21 +0200 | [diff] [blame] | 54 | * SATA driver configuration |
| 55 | */ |
Tony Dinh | 488c519d | 2021-07-13 21:35:46 -0700 | [diff] [blame] | 56 | #ifdef CONFIG_SATA |
| 57 | #define CONFIG_SYS_SATA_MAX_DEVICE 2 |
| 58 | #define CONFIG_LBA48 |
| 59 | #endif /* CONFIG_SATA */ |
DrEagle | 9ea4800 | 2014-09-07 18:01:21 +0200 | [diff] [blame] | 60 | |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 61 | #endif /* _CONFIG_SHEEVAPLUG_H */ |