Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 1 | /* |
Gerald Kerma | 361b3d8 | 2014-12-19 08:13:09 +0100 | [diff] [blame] | 2 | * (C) Copyright 2009-2014 |
| 3 | * Gerald Kerma <dreagle@doukki.net> |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 4 | * Marvell Semiconductor <www.marvell.com> |
| 5 | * Written-by: Siddarth Gore <gores@marvell.com> |
| 6 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | * SPDX-License-Identifier: GPL-2.0+ |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #ifndef _CONFIG_GURUPLUG_H |
| 11 | #define _CONFIG_GURUPLUG_H |
| 12 | |
Gerald Kerma | 361b3d8 | 2014-12-19 08:13:09 +0100 | [diff] [blame] | 13 | #define CONFIG_SYS_GENERIC_BOARD |
| 14 | |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 15 | /* |
| 16 | * Version number information |
| 17 | */ |
| 18 | #define CONFIG_IDENT_STRING "\nMarvell-GuruPlug" |
| 19 | |
| 20 | /* |
| 21 | * High Level Configuration Options (easy to change) |
| 22 | */ |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 23 | #define CONFIG_SHEEVA_88SV131 1 /* CPU Core subversion */ |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 24 | #define CONFIG_KW88F6281 1 /* SOC Name */ |
| 25 | #define CONFIG_MACH_GURUPLUG /* Machine type */ |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 26 | #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */ |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 27 | |
| 28 | /* |
Gerald Kerma | 361b3d8 | 2014-12-19 08:13:09 +0100 | [diff] [blame] | 29 | * Compression configuration |
| 30 | */ |
| 31 | #define CONFIG_BZIP2 |
| 32 | #define CONFIG_LZMA |
| 33 | #define CONFIG_LZO |
| 34 | |
| 35 | /* |
| 36 | * Enable device tree support |
| 37 | */ |
| 38 | #define CONFIG_OF_LIBFDT |
| 39 | |
| 40 | /* |
| 41 | * Miscellaneous configurable options |
| 42 | */ |
| 43 | #define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */ |
| 44 | |
| 45 | /* |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 46 | * Commands configuration |
| 47 | */ |
| 48 | #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */ |
| 49 | #include <config_cmd_default.h> |
Gerald Kerma | 361b3d8 | 2014-12-19 08:13:09 +0100 | [diff] [blame] | 50 | #define CONFIG_CMD_BOOTZ |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 51 | #define CONFIG_CMD_DHCP |
| 52 | #define CONFIG_CMD_ENV |
Gerald Kerma | 361b3d8 | 2014-12-19 08:13:09 +0100 | [diff] [blame] | 53 | #define CONFIG_CMD_IDE |
| 54 | #define CONFIG_CMD_MII |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 55 | #define CONFIG_CMD_NAND |
| 56 | #define CONFIG_CMD_PING |
| 57 | #define CONFIG_CMD_USB |
Gerald Kerma | 361b3d8 | 2014-12-19 08:13:09 +0100 | [diff] [blame] | 58 | #define CONFIG_CMD_FAT |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 59 | |
| 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 |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 63 | */ |
Prafulla Wadaskar | 54e999a | 2010-09-30 22:53:43 +0530 | [diff] [blame] | 64 | #include "mv-common.h" |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +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 */ |
Gerald Kerma | 361b3d8 | 2014-12-19 08:13:09 +0100 | [diff] [blame] | 80 | #define CONFIG_ENV_OFFSET 0xE0000 /* env starts here */ |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 81 | |
| 82 | /* |
| 83 | * Default environment variables |
| 84 | */ |
Gerald Kerma | 361b3d8 | 2014-12-19 08:13:09 +0100 | [diff] [blame] | 85 | #define CONFIG_BOOTCOMMAND \ |
| 86 | "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \ |
| 87 | "ubi part root; " \ |
| 88 | "ubifsmount ubi:rootfs; " \ |
| 89 | "ubifsload 0x800000 ${kernel}; " \ |
| 90 | "ubifsload 0x700000 ${fdt}; " \ |
| 91 | "ubifsumount; " \ |
| 92 | "fdt addr 0x700000; fdt resize; fdt chosen; " \ |
| 93 | "bootz 0x800000 - 0x700000" |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 94 | |
Gerald Kerma | 361b3d8 | 2014-12-19 08:13:09 +0100 | [diff] [blame] | 95 | #define CONFIG_MTDPARTS \ |
| 96 | "mtdparts=orion_nand:" \ |
| 97 | "896K(uboot),128K(uboot_env)," \ |
| 98 | "-@1M(root)\0" |
| 99 | |
| 100 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 101 | "console=console=ttyS0,115200\0" \ |
| 102 | "mtdids=nand0=orion_nand\0" \ |
| 103 | "mtdparts="CONFIG_MTDPARTS \ |
| 104 | "kernel=/boot/zImage\0" \ |
| 105 | "fdt=/boot/guruplug-server-plus.dtb\0" \ |
| 106 | "bootargs_root=ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs rw\0" |
| 107 | |
| 108 | #define MTDIDS_DEFAULT "nand0=orion_nand" |
| 109 | |
| 110 | #define MTDPARTS_DEFAULT \ |
| 111 | "mtdparts="CONFIG_MTDPARTS |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 112 | |
| 113 | /* |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 114 | * Ethernet Driver configuration |
| 115 | */ |
| 116 | #ifdef CONFIG_CMD_NET |
Albert Aribaud | d44265a | 2010-07-12 22:24:28 +0200 | [diff] [blame] | 117 | #define CONFIG_MVGBE_PORTS {1, 1} /* enable both ports */ |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 118 | #define CONFIG_PHY_BASE_ADR 0 |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 119 | #endif /* CONFIG_CMD_NET */ |
| 120 | |
| 121 | /* |
Prafulla Wadaskar | 54e999a | 2010-09-30 22:53:43 +0530 | [diff] [blame] | 122 | * SATA Driver configuration |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 123 | */ |
Prafulla Wadaskar | 54e999a | 2010-09-30 22:53:43 +0530 | [diff] [blame] | 124 | #ifdef CONFIG_MVSATA_IDE |
| 125 | #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET |
| 126 | #endif /*CONFIG_MVSATA_IDE*/ |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 127 | |
Gerald Kerma | 361b3d8 | 2014-12-19 08:13:09 +0100 | [diff] [blame] | 128 | /* |
| 129 | * File system |
| 130 | */ |
| 131 | #define CONFIG_CMD_EXT2 |
| 132 | #define CONFIG_CMD_EXT4 |
| 133 | #define CONFIG_CMD_FAT |
| 134 | #define CONFIG_CMD_JFFS2 |
| 135 | #define CONFIG_CMD_UBI |
| 136 | #define CONFIG_CMD_UBIFS |
| 137 | #define CONFIG_RBTREE |
| 138 | #define CONFIG_MTD_DEVICE |
| 139 | #define CONFIG_MTD_PARTITIONS |
| 140 | #define CONFIG_CMD_MTDPARTS |
| 141 | |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 142 | #define CONFIG_SYS_ALT_MEMTEST |
| 143 | |
| 144 | #endif /* _CONFIG_GURUPLUG_H */ |