Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2009 |
| 3 | * Marvell Semiconductor <www.marvell.com> |
| 4 | * Written-by: Prafulla Wadaskar <prafulla@marvell.com> |
| 5 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 6 | * SPDX-License-Identifier: GPL-2.0+ |
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 | /* |
| 13 | * Version number information |
| 14 | */ |
| 15 | #define CONFIG_IDENT_STRING "\nMarvell-Sheevaplug" |
| 16 | |
| 17 | /* |
| 18 | * High Level Configuration Options (easy to change) |
| 19 | */ |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 20 | #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */ |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 21 | #define CONFIG_KW88F6281 1 /* SOC Name */ |
| 22 | #define CONFIG_MACH_SHEEVAPLUG /* Machine type */ |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 23 | #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */ |
Frans Meulenbroeks | 5414fec | 2010-04-06 18:26:19 +0530 | [diff] [blame] | 24 | |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 25 | /* |
| 26 | * Commands configuration |
| 27 | */ |
| 28 | #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */ |
| 29 | #include <config_cmd_default.h> |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 30 | #define CONFIG_CMD_DHCP |
| 31 | #define CONFIG_CMD_ENV |
Frans Meulenbroeks | 5414fec | 2010-04-06 18:26:19 +0530 | [diff] [blame] | 32 | #define CONFIG_CMD_MII |
DrEagle | 3fe3b4f | 2014-07-25 21:07:30 +0200 | [diff] [blame] | 33 | #define CONFIG_CMD_MMC |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 34 | #define CONFIG_CMD_NAND |
| 35 | #define CONFIG_CMD_PING |
| 36 | #define CONFIG_CMD_USB |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 37 | /* |
Prafulla Wadaskar | 54e999a | 2010-09-30 22:53:43 +0530 | [diff] [blame] | 38 | * mv-common.h should be defined after CMD configs since it used them |
| 39 | * to enable certain macros |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 40 | */ |
Prafulla Wadaskar | 54e999a | 2010-09-30 22:53:43 +0530 | [diff] [blame] | 41 | #include "mv-common.h" |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 42 | |
| 43 | /* |
| 44 | * Environment variables configurations |
| 45 | */ |
| 46 | #ifdef CONFIG_CMD_NAND |
| 47 | #define CONFIG_ENV_IS_IN_NAND 1 |
| 48 | #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */ |
| 49 | #else |
| 50 | #define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */ |
| 51 | #endif |
| 52 | /* |
| 53 | * max 4k env size is enough, but in case of nand |
| 54 | * it has to be rounded to sector size |
| 55 | */ |
| 56 | #define CONFIG_ENV_SIZE 0x20000 /* 128k */ |
Frans Meulenbroeks | 5414fec | 2010-04-06 18:26:19 +0530 | [diff] [blame] | 57 | #define CONFIG_ENV_ADDR 0x60000 |
| 58 | #define CONFIG_ENV_OFFSET 0x60000 /* env starts here */ |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 59 | |
| 60 | /* |
| 61 | * Default environment variables |
| 62 | */ |
| 63 | #define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \ |
| 64 | "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \ |
| 65 | "${x_bootcmd_usb}; bootm 0x6400000;" |
| 66 | |
| 67 | #define CONFIG_MTDPARTS "orion_nand:512k(uboot)," \ |
| 68 | "3m@1m(kernel),1m@4m(psm),13m@5m(rootfs) rw\0" |
| 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 | |
| 76 | /* |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 77 | * Ethernet Driver configuration |
| 78 | */ |
| 79 | #ifdef CONFIG_CMD_NET |
Albert Aribaud | d44265a | 2010-07-12 22:24:28 +0200 | [diff] [blame] | 80 | #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */ |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 81 | #define CONFIG_PHY_BASE_ADR 0 |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 82 | #endif /* CONFIG_CMD_NET */ |
| 83 | |
| 84 | /* |
DrEagle | 3fe3b4f | 2014-07-25 21:07:30 +0200 | [diff] [blame] | 85 | * SDIO/MMC Card Configuration |
| 86 | */ |
| 87 | #ifdef CONFIG_CMD_MMC |
| 88 | #define CONFIG_MMC |
| 89 | #define CONFIG_GENERIC_MMC |
| 90 | #define CONFIG_MVEBU_MMC |
| 91 | #define CONFIG_SYS_MMC_BASE KW_SDIO_BASE |
| 92 | #endif /* CONFIG_CMD_MMC */ |
| 93 | |
| 94 | /* |
Frans Meulenbroeks | 5414fec | 2010-04-06 18:26:19 +0530 | [diff] [blame] | 95 | * File system |
| 96 | */ |
| 97 | #define CONFIG_CMD_EXT2 |
| 98 | #define CONFIG_CMD_FAT |
| 99 | #define CONFIG_CMD_JFFS2 |
| 100 | #define CONFIG_CMD_UBI |
| 101 | #define CONFIG_CMD_UBIFS |
| 102 | #define CONFIG_RBTREE |
| 103 | #define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ |
| 104 | #define CONFIG_MTD_PARTITIONS |
| 105 | #define CONFIG_CMD_MTDPARTS |
| 106 | #define CONFIG_LZO |
| 107 | |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 108 | #endif /* _CONFIG_SHEEVAPLUG_H */ |