Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 1 | /* |
DrEagle | 9ea4800 | 2014-09-07 18:01:21 +0200 | [diff] [blame] | 2 | * (C) Copyright 2009-2014 |
| 3 | * Gerald Kerma <dreagle@doukki.net> |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 4 | * Marvell Semiconductor <www.marvell.com> |
| 5 | * Written-by: Prafulla Wadaskar <prafulla@marvell.com> |
| 6 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | * SPDX-License-Identifier: GPL-2.0+ |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #ifndef _CONFIG_SHEEVAPLUG_H |
| 11 | #define _CONFIG_SHEEVAPLUG_H |
| 12 | |
| 13 | /* |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 14 | * High Level Configuration Options (easy to change) |
| 15 | */ |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 16 | #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */ |
DrEagle | 511d72d | 2014-12-17 15:02:48 +0100 | [diff] [blame] | 17 | |
| 18 | /* |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 19 | * Commands configuration |
| 20 | */ |
DrEagle | 32ca21f | 2014-12-17 15:02:44 +0100 | [diff] [blame] | 21 | |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 22 | /* |
Quentin Armitage | bb7f728 | 2015-10-28 00:47:18 +0000 | [diff] [blame] | 23 | * Standard filesystems |
| 24 | */ |
| 25 | #define CONFIG_SYS_MVFS |
| 26 | |
| 27 | /* |
Quentin Armitage | a99ac8a | 2015-10-28 00:47:21 +0000 | [diff] [blame] | 28 | * mv-plug-common.h should be defined after CMD configs since it used them |
Prafulla Wadaskar | 3268629 | 2010-09-30 22:53:43 +0530 | [diff] [blame] | 29 | * to enable certain macros |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 30 | */ |
Quentin Armitage | a99ac8a | 2015-10-28 00:47:21 +0000 | [diff] [blame] | 31 | #include "mv-plug-common.h" |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 32 | |
| 33 | /* |
| 34 | * Environment variables configurations |
| 35 | */ |
| 36 | #ifdef CONFIG_CMD_NAND |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 37 | #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */ |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 38 | #endif |
| 39 | /* |
| 40 | * max 4k env size is enough, but in case of nand |
| 41 | * it has to be rounded to sector size |
| 42 | */ |
| 43 | #define CONFIG_ENV_SIZE 0x20000 /* 128k */ |
DrEagle | c2bc79d | 2014-09-07 18:01:20 +0200 | [diff] [blame] | 44 | #define CONFIG_ENV_ADDR 0x80000 |
| 45 | #define CONFIG_ENV_OFFSET 0x80000 /* env starts here */ |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 46 | |
| 47 | /* |
| 48 | * Default environment variables |
| 49 | */ |
| 50 | #define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \ |
| 51 | "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \ |
Peter Korsgaard | 8913202 | 2016-01-17 18:23:44 +0100 | [diff] [blame] | 52 | "bootm 0x6400000;" |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 53 | |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 54 | #define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \ |
Tom Rini | 5ad8e11 | 2017-10-22 17:55:07 -0400 | [diff] [blame] | 55 | "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS_DEFAULT \ |
Peter Korsgaard | 280eb45 | 2016-01-17 18:23:45 +0100 | [diff] [blame] | 56 | "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x400000\0" \ |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 57 | "x_bootcmd_usb=usb start\0" \ |
| 58 | "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0" |
| 59 | |
| 60 | /* |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 61 | * Ethernet Driver configuration |
| 62 | */ |
| 63 | #ifdef CONFIG_CMD_NET |
Albert Aribaud | e91d7d3 | 2010-07-12 22:24:28 +0200 | [diff] [blame] | 64 | #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */ |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 65 | #define CONFIG_PHY_BASE_ADR 0 |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 66 | #endif /* CONFIG_CMD_NET */ |
| 67 | |
| 68 | /* |
DrEagle | ad88174 | 2014-07-25 21:07:30 +0200 | [diff] [blame] | 69 | * SDIO/MMC Card Configuration |
| 70 | */ |
| 71 | #ifdef CONFIG_CMD_MMC |
DrEagle | ad88174 | 2014-07-25 21:07:30 +0200 | [diff] [blame] | 72 | #define CONFIG_MVEBU_MMC |
| 73 | #define CONFIG_SYS_MMC_BASE KW_SDIO_BASE |
| 74 | #endif /* CONFIG_CMD_MMC */ |
| 75 | |
| 76 | /* |
DrEagle | 9ea4800 | 2014-09-07 18:01:21 +0200 | [diff] [blame] | 77 | * SATA driver configuration |
| 78 | */ |
Simon Glass | b569a01 | 2017-05-17 03:25:30 -0600 | [diff] [blame] | 79 | #ifdef CONFIG_IDE |
DrEagle | 9ea4800 | 2014-09-07 18:01:21 +0200 | [diff] [blame] | 80 | #define __io |
| 81 | #define CONFIG_IDE_PREINIT |
DrEagle | 9ea4800 | 2014-09-07 18:01:21 +0200 | [diff] [blame] | 82 | #define CONFIG_MVSATA_IDE_USE_PORT0 |
| 83 | #define CONFIG_MVSATA_IDE_USE_PORT1 |
| 84 | #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET |
| 85 | #define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET |
Simon Glass | b569a01 | 2017-05-17 03:25:30 -0600 | [diff] [blame] | 86 | #endif /* CONFIG_IDE */ |
DrEagle | 9ea4800 | 2014-09-07 18:01:21 +0200 | [diff] [blame] | 87 | |
Prafulla Wadaskar | 6263464 | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 88 | #endif /* _CONFIG_SHEEVAPLUG_H */ |