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 | /* |
| 14 | * Version number information |
| 15 | */ |
| 16 | #define CONFIG_IDENT_STRING "\nMarvell-Sheevaplug" |
| 17 | |
| 18 | /* |
| 19 | * High Level Configuration Options (easy to change) |
| 20 | */ |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 21 | #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */ |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 22 | #define CONFIG_MACH_SHEEVAPLUG /* Machine type */ |
DrEagle | 9a5e0a7 | 2014-12-17 15:02:48 +0100 | [diff] [blame] | 23 | |
| 24 | /* |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 25 | * Commands configuration |
| 26 | */ |
DrEagle | 815451e | 2014-12-17 15:02:44 +0100 | [diff] [blame] | 27 | |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 28 | /* |
Quentin Armitage | ea94400 | 2015-10-28 00:47:18 +0000 | [diff] [blame] | 29 | * Standard filesystems |
| 30 | */ |
| 31 | #define CONFIG_SYS_MVFS |
| 32 | |
| 33 | /* |
Quentin Armitage | 38c0e86 | 2015-10-28 00:47:21 +0000 | [diff] [blame] | 34 | * 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] | 35 | * to enable certain macros |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 36 | */ |
Quentin Armitage | 38c0e86 | 2015-10-28 00:47:21 +0000 | [diff] [blame] | 37 | #include "mv-plug-common.h" |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 38 | |
| 39 | /* |
| 40 | * Environment variables configurations |
| 41 | */ |
| 42 | #ifdef CONFIG_CMD_NAND |
| 43 | #define CONFIG_ENV_IS_IN_NAND 1 |
| 44 | #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */ |
| 45 | #else |
| 46 | #define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */ |
| 47 | #endif |
| 48 | /* |
| 49 | * max 4k env size is enough, but in case of nand |
| 50 | * it has to be rounded to sector size |
| 51 | */ |
| 52 | #define CONFIG_ENV_SIZE 0x20000 /* 128k */ |
DrEagle | 4dfb0e4 | 2014-09-07 18:01:20 +0200 | [diff] [blame] | 53 | #define CONFIG_ENV_ADDR 0x80000 |
| 54 | #define CONFIG_ENV_OFFSET 0x80000 /* env starts here */ |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 55 | |
| 56 | /* |
| 57 | * Default environment variables |
| 58 | */ |
| 59 | #define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \ |
| 60 | "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \ |
Peter Korsgaard | a807369 | 2016-01-17 18:23:44 +0100 | [diff] [blame] | 61 | "bootm 0x6400000;" |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 62 | |
DrEagle | 1e3d640 | 2014-09-07 18:01:23 +0200 | [diff] [blame] | 63 | #define CONFIG_MTDPARTS \ |
Peter Korsgaard | 1011226 | 2016-01-17 18:23:43 +0100 | [diff] [blame] | 64 | "orion_nand:512K(uboot)," \ |
Peter Korsgaard | 371b9e9 | 2016-01-17 18:23:45 +0100 | [diff] [blame] | 65 | "512K(env),4M(kernel)," \ |
| 66 | "-(rootfs)\0" |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 67 | |
| 68 | #define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \ |
| 69 | "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \ |
Peter Korsgaard | 371b9e9 | 2016-01-17 18:23:45 +0100 | [diff] [blame] | 70 | "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x400000\0" \ |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 71 | "x_bootcmd_usb=usb start\0" \ |
| 72 | "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0" |
| 73 | |
DrEagle | 65ae952 | 2014-09-07 18:01:22 +0200 | [diff] [blame] | 74 | #define MTDIDS_DEFAULT "nand0=orion_nand" |
| 75 | |
| 76 | #define MTDPARTS_DEFAULT \ |
| 77 | "mtdparts="CONFIG_MTDPARTS |
| 78 | |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 79 | /* |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 80 | * Ethernet Driver configuration |
| 81 | */ |
| 82 | #ifdef CONFIG_CMD_NET |
Albert Aribaud | d44265a | 2010-07-12 22:24:28 +0200 | [diff] [blame] | 83 | #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */ |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 84 | #define CONFIG_PHY_BASE_ADR 0 |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 85 | #endif /* CONFIG_CMD_NET */ |
| 86 | |
| 87 | /* |
DrEagle | 3fe3b4f | 2014-07-25 21:07:30 +0200 | [diff] [blame] | 88 | * SDIO/MMC Card Configuration |
| 89 | */ |
| 90 | #ifdef CONFIG_CMD_MMC |
| 91 | #define CONFIG_MMC |
| 92 | #define CONFIG_GENERIC_MMC |
| 93 | #define CONFIG_MVEBU_MMC |
| 94 | #define CONFIG_SYS_MMC_BASE KW_SDIO_BASE |
| 95 | #endif /* CONFIG_CMD_MMC */ |
| 96 | |
| 97 | /* |
DrEagle | 0f88a5a | 2014-09-07 18:01:21 +0200 | [diff] [blame] | 98 | * SATA driver configuration |
| 99 | */ |
| 100 | #ifdef CONFIG_CMD_IDE |
| 101 | #define __io |
| 102 | #define CONFIG_IDE_PREINIT |
| 103 | #define CONFIG_DOS_PARTITION |
| 104 | #define CONFIG_MVSATA_IDE_USE_PORT0 |
| 105 | #define CONFIG_MVSATA_IDE_USE_PORT1 |
| 106 | #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET |
| 107 | #define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET |
| 108 | #endif /* CONFIG_CMD_IDE */ |
| 109 | |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 110 | #endif /* _CONFIG_SHEEVAPLUG_H */ |