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