Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 2 | /* |
DrEagle | 0f88a5a | 2014-09-07 18:01:21 +0200 | [diff] [blame] | 3 | * (C) Copyright 2009-2014 |
| 4 | * Gerald Kerma <dreagle@doukki.net> |
Prafulla Wadaskar | 55dd4ba | 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 | 55dd4ba | 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 | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 13 | * High Level Configuration Options (easy to change) |
| 14 | */ |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 15 | #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */ |
DrEagle | 9a5e0a7 | 2014-12-17 15:02:48 +0100 | [diff] [blame] | 16 | |
| 17 | /* |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 18 | * Commands configuration |
| 19 | */ |
DrEagle | 815451e | 2014-12-17 15:02:44 +0100 | [diff] [blame] | 20 | |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 21 | /* |
Quentin Armitage | ea94400 | 2015-10-28 00:47:18 +0000 | [diff] [blame] | 22 | * Standard filesystems |
| 23 | */ |
Chris Packham | e85f490 | 2018-05-26 22:32:29 +1200 | [diff] [blame] | 24 | #define CONFIG_BZIP2 |
Quentin Armitage | ea94400 | 2015-10-28 00:47:18 +0000 | [diff] [blame] | 25 | |
| 26 | /* |
Quentin Armitage | 38c0e86 | 2015-10-28 00:47:21 +0000 | [diff] [blame] | 27 | * mv-plug-common.h should be defined after CMD configs since it used them |
Prafulla Wadaskar | 54e999a | 2010-09-30 22:53:43 +0530 | [diff] [blame] | 28 | * to enable certain macros |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 29 | */ |
Quentin Armitage | 38c0e86 | 2015-10-28 00:47:21 +0000 | [diff] [blame] | 30 | #include "mv-plug-common.h" |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 31 | |
| 32 | /* |
| 33 | * Environment variables configurations |
| 34 | */ |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 35 | /* |
| 36 | * max 4k env size is enough, but in case of nand |
| 37 | * it has to be rounded to sector size |
| 38 | */ |
Chris Packham | 84035fc | 2018-06-04 19:51:49 +1200 | [diff] [blame] | 39 | /* |
| 40 | * Environment is right behind U-Boot in flash. Make sure U-Boot |
| 41 | * doesn't grow into the environment area. |
| 42 | */ |
| 43 | #define CONFIG_BOARD_SIZE_LIMIT CONFIG_ENV_OFFSET |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 44 | |
| 45 | /* |
| 46 | * Default environment variables |
| 47 | */ |
| 48 | #define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \ |
| 49 | "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \ |
Peter Korsgaard | a807369 | 2016-01-17 18:23:44 +0100 | [diff] [blame] | 50 | "bootm 0x6400000;" |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 51 | |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 52 | #define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \ |
Tom Rini | 43ede0b | 2017-10-22 17:55:07 -0400 | [diff] [blame] | 53 | "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS_DEFAULT \ |
Peter Korsgaard | 371b9e9 | 2016-01-17 18:23:45 +0100 | [diff] [blame] | 54 | "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x400000\0" \ |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 55 | "x_bootcmd_usb=usb start\0" \ |
| 56 | "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0" |
| 57 | |
| 58 | /* |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 59 | * Ethernet Driver configuration |
| 60 | */ |
| 61 | #ifdef CONFIG_CMD_NET |
Albert Aribaud | d44265a | 2010-07-12 22:24:28 +0200 | [diff] [blame] | 62 | #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */ |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 63 | #define CONFIG_PHY_BASE_ADR 0 |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 64 | #endif /* CONFIG_CMD_NET */ |
| 65 | |
| 66 | /* |
DrEagle | 3fe3b4f | 2014-07-25 21:07:30 +0200 | [diff] [blame] | 67 | * SDIO/MMC Card Configuration |
| 68 | */ |
| 69 | #ifdef CONFIG_CMD_MMC |
DrEagle | 3fe3b4f | 2014-07-25 21:07:30 +0200 | [diff] [blame] | 70 | #define CONFIG_MVEBU_MMC |
| 71 | #define CONFIG_SYS_MMC_BASE KW_SDIO_BASE |
| 72 | #endif /* CONFIG_CMD_MMC */ |
| 73 | |
| 74 | /* |
DrEagle | 0f88a5a | 2014-09-07 18:01:21 +0200 | [diff] [blame] | 75 | * SATA driver configuration |
| 76 | */ |
Simon Glass | fc843a0 | 2017-05-17 03:25:30 -0600 | [diff] [blame] | 77 | #ifdef CONFIG_IDE |
DrEagle | 0f88a5a | 2014-09-07 18:01:21 +0200 | [diff] [blame] | 78 | #define __io |
| 79 | #define CONFIG_IDE_PREINIT |
DrEagle | 0f88a5a | 2014-09-07 18:01:21 +0200 | [diff] [blame] | 80 | #define CONFIG_MVSATA_IDE_USE_PORT0 |
| 81 | #define CONFIG_MVSATA_IDE_USE_PORT1 |
| 82 | #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET |
| 83 | #define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET |
Simon Glass | fc843a0 | 2017-05-17 03:25:30 -0600 | [diff] [blame] | 84 | #endif /* CONFIG_IDE */ |
DrEagle | 0f88a5a | 2014-09-07 18:01:21 +0200 | [diff] [blame] | 85 | |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 86 | #endif /* _CONFIG_SHEEVAPLUG_H */ |