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