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 | |
Luka Perkov | d4d8f1b | 2014-11-30 02:41:49 +0100 | [diff] [blame] | 13 | #define CONFIG_SYS_GENERIC_BOARD |
| 14 | |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 15 | /* |
| 16 | * Version number information |
| 17 | */ |
| 18 | #define CONFIG_IDENT_STRING "\nMarvell-Sheevaplug" |
| 19 | |
| 20 | /* |
| 21 | * High Level Configuration Options (easy to change) |
| 22 | */ |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 23 | #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */ |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 24 | #define CONFIG_KW88F6281 1 /* SOC Name */ |
| 25 | #define CONFIG_MACH_SHEEVAPLUG /* Machine type */ |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 26 | #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */ |
Frans Meulenbroeks | 5414fec | 2010-04-06 18:26:19 +0530 | [diff] [blame] | 27 | |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 28 | /* |
DrEagle | 0f88a5a | 2014-09-07 18:01:21 +0200 | [diff] [blame] | 29 | * Compression configuration |
| 30 | */ |
| 31 | #define CONFIG_BZIP2 |
| 32 | #define CONFIG_LZMA |
| 33 | #define CONFIG_LZO |
| 34 | |
| 35 | /* |
DrEagle | 9a5e0a7 | 2014-12-17 15:02:48 +0100 | [diff] [blame] | 36 | * Enable device tree support |
| 37 | */ |
| 38 | #define CONFIG_OF_LIBFDT |
| 39 | |
| 40 | /* |
DrEagle | 8ca21cb | 2014-09-07 18:01:24 +0200 | [diff] [blame] | 41 | * Miscellaneous configurable options |
| 42 | */ |
| 43 | #define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */ |
| 44 | |
| 45 | /* |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 46 | * Commands configuration |
| 47 | */ |
| 48 | #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */ |
| 49 | #include <config_cmd_default.h> |
DrEagle | 0f88a5a | 2014-09-07 18:01:21 +0200 | [diff] [blame] | 50 | #define CONFIG_CMD_BOOTZ |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 51 | #define CONFIG_CMD_DHCP |
| 52 | #define CONFIG_CMD_ENV |
DrEagle | 0f88a5a | 2014-09-07 18:01:21 +0200 | [diff] [blame] | 53 | #define CONFIG_CMD_IDE |
Frans Meulenbroeks | 5414fec | 2010-04-06 18:26:19 +0530 | [diff] [blame] | 54 | #define CONFIG_CMD_MII |
DrEagle | 3fe3b4f | 2014-07-25 21:07:30 +0200 | [diff] [blame] | 55 | #define CONFIG_CMD_MMC |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 56 | #define CONFIG_CMD_NAND |
| 57 | #define CONFIG_CMD_PING |
| 58 | #define CONFIG_CMD_USB |
DrEagle | 815451e | 2014-12-17 15:02:44 +0100 | [diff] [blame] | 59 | |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 60 | /* |
Prafulla Wadaskar | 54e999a | 2010-09-30 22:53:43 +0530 | [diff] [blame] | 61 | * mv-common.h should be defined after CMD configs since it used them |
| 62 | * to enable certain macros |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 63 | */ |
Prafulla Wadaskar | 54e999a | 2010-09-30 22:53:43 +0530 | [diff] [blame] | 64 | #include "mv-common.h" |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 65 | |
| 66 | /* |
| 67 | * Environment variables configurations |
| 68 | */ |
| 69 | #ifdef CONFIG_CMD_NAND |
| 70 | #define CONFIG_ENV_IS_IN_NAND 1 |
| 71 | #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */ |
| 72 | #else |
| 73 | #define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */ |
| 74 | #endif |
| 75 | /* |
| 76 | * max 4k env size is enough, but in case of nand |
| 77 | * it has to be rounded to sector size |
| 78 | */ |
| 79 | #define CONFIG_ENV_SIZE 0x20000 /* 128k */ |
DrEagle | 4dfb0e4 | 2014-09-07 18:01:20 +0200 | [diff] [blame] | 80 | #define CONFIG_ENV_ADDR 0x80000 |
| 81 | #define CONFIG_ENV_OFFSET 0x80000 /* env starts here */ |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 82 | |
| 83 | /* |
| 84 | * Default environment variables |
| 85 | */ |
| 86 | #define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \ |
| 87 | "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \ |
| 88 | "${x_bootcmd_usb}; bootm 0x6400000;" |
| 89 | |
DrEagle | 1e3d640 | 2014-09-07 18:01:23 +0200 | [diff] [blame] | 90 | #define CONFIG_MTDPARTS \ |
| 91 | "mtdparts=orion_nand:512K(uboot)," \ |
| 92 | "512K(env),1M(script),6M(kernel)," \ |
| 93 | "12M(ramdisk),4M(spare),-(rootfs)" |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 94 | |
| 95 | #define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \ |
| 96 | "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \ |
| 97 | "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x300000\0" \ |
| 98 | "x_bootcmd_usb=usb start\0" \ |
| 99 | "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0" |
| 100 | |
DrEagle | 65ae952 | 2014-09-07 18:01:22 +0200 | [diff] [blame] | 101 | #define MTDIDS_DEFAULT "nand0=orion_nand" |
| 102 | |
| 103 | #define MTDPARTS_DEFAULT \ |
| 104 | "mtdparts="CONFIG_MTDPARTS |
| 105 | |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 106 | /* |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 107 | * Ethernet Driver configuration |
| 108 | */ |
| 109 | #ifdef CONFIG_CMD_NET |
Albert Aribaud | d44265a | 2010-07-12 22:24:28 +0200 | [diff] [blame] | 110 | #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */ |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 111 | #define CONFIG_PHY_BASE_ADR 0 |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 112 | #endif /* CONFIG_CMD_NET */ |
| 113 | |
| 114 | /* |
DrEagle | 3fe3b4f | 2014-07-25 21:07:30 +0200 | [diff] [blame] | 115 | * SDIO/MMC Card Configuration |
| 116 | */ |
| 117 | #ifdef CONFIG_CMD_MMC |
| 118 | #define CONFIG_MMC |
| 119 | #define CONFIG_GENERIC_MMC |
| 120 | #define CONFIG_MVEBU_MMC |
| 121 | #define CONFIG_SYS_MMC_BASE KW_SDIO_BASE |
| 122 | #endif /* CONFIG_CMD_MMC */ |
| 123 | |
| 124 | /* |
DrEagle | 0f88a5a | 2014-09-07 18:01:21 +0200 | [diff] [blame] | 125 | * SATA driver configuration |
| 126 | */ |
| 127 | #ifdef CONFIG_CMD_IDE |
| 128 | #define __io |
| 129 | #define CONFIG_IDE_PREINIT |
| 130 | #define CONFIG_DOS_PARTITION |
| 131 | #define CONFIG_MVSATA_IDE_USE_PORT0 |
| 132 | #define CONFIG_MVSATA_IDE_USE_PORT1 |
| 133 | #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET |
| 134 | #define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET |
| 135 | #endif /* CONFIG_CMD_IDE */ |
| 136 | |
| 137 | /* |
Frans Meulenbroeks | 5414fec | 2010-04-06 18:26:19 +0530 | [diff] [blame] | 138 | * File system |
| 139 | */ |
| 140 | #define CONFIG_CMD_EXT2 |
DrEagle | 0f88a5a | 2014-09-07 18:01:21 +0200 | [diff] [blame] | 141 | #define CONFIG_CMD_EXT4 |
Frans Meulenbroeks | 5414fec | 2010-04-06 18:26:19 +0530 | [diff] [blame] | 142 | #define CONFIG_CMD_FAT |
| 143 | #define CONFIG_CMD_JFFS2 |
| 144 | #define CONFIG_CMD_UBI |
| 145 | #define CONFIG_CMD_UBIFS |
| 146 | #define CONFIG_RBTREE |
| 147 | #define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ |
| 148 | #define CONFIG_MTD_PARTITIONS |
| 149 | #define CONFIG_CMD_MTDPARTS |
Frans Meulenbroeks | 5414fec | 2010-04-06 18:26:19 +0530 | [diff] [blame] | 150 | |
Prafulla Wadaskar | 55dd4ba | 2009-07-16 20:58:00 +0530 | [diff] [blame] | 151 | #endif /* _CONFIG_SHEEVAPLUG_H */ |