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 | |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 14 | /* |
| 15 | * Version number information |
| 16 | */ |
| 17 | #define CONFIG_IDENT_STRING "\nMarvell-GuruPlug" |
| 18 | |
| 19 | /* |
| 20 | * High Level Configuration Options (easy to change) |
| 21 | */ |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 22 | #define CONFIG_SHEEVA_88SV131 1 /* CPU Core subversion */ |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 23 | #define CONFIG_KW88F6281 1 /* SOC Name */ |
| 24 | #define CONFIG_MACH_GURUPLUG /* Machine type */ |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 25 | #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */ |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 26 | |
| 27 | /* |
Gerald Kerma | 361b3d8 | 2014-12-19 08:13:09 +0100 | [diff] [blame] | 28 | * Compression configuration |
| 29 | */ |
| 30 | #define CONFIG_BZIP2 |
| 31 | #define CONFIG_LZMA |
| 32 | #define CONFIG_LZO |
| 33 | |
| 34 | /* |
| 35 | * Enable device tree support |
| 36 | */ |
| 37 | #define CONFIG_OF_LIBFDT |
| 38 | |
| 39 | /* |
| 40 | * Miscellaneous configurable options |
| 41 | */ |
| 42 | #define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */ |
| 43 | |
| 44 | /* |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 45 | * Commands configuration |
| 46 | */ |
| 47 | #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */ |
Gerald Kerma | 361b3d8 | 2014-12-19 08:13:09 +0100 | [diff] [blame] | 48 | #define CONFIG_CMD_BOOTZ |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 49 | #define CONFIG_CMD_DHCP |
| 50 | #define CONFIG_CMD_ENV |
Gerald Kerma | 361b3d8 | 2014-12-19 08:13:09 +0100 | [diff] [blame] | 51 | #define CONFIG_CMD_IDE |
| 52 | #define CONFIG_CMD_MII |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 53 | #define CONFIG_CMD_NAND |
| 54 | #define CONFIG_CMD_PING |
| 55 | #define CONFIG_CMD_USB |
Gerald Kerma | 361b3d8 | 2014-12-19 08:13:09 +0100 | [diff] [blame] | 56 | #define CONFIG_CMD_FAT |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 57 | |
| 58 | /* |
Prafulla Wadaskar | 54e999a | 2010-09-30 22:53:43 +0530 | [diff] [blame] | 59 | * mv-common.h should be defined after CMD configs since it used them |
| 60 | * to enable certain macros |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 61 | */ |
Prafulla Wadaskar | 54e999a | 2010-09-30 22:53:43 +0530 | [diff] [blame] | 62 | #include "mv-common.h" |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 63 | |
| 64 | /* |
| 65 | * Environment variables configurations |
| 66 | */ |
| 67 | #ifdef CONFIG_CMD_NAND |
| 68 | #define CONFIG_ENV_IS_IN_NAND 1 |
| 69 | #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */ |
| 70 | #else |
| 71 | #define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */ |
| 72 | #endif |
| 73 | /* |
| 74 | * max 4k env size is enough, but in case of nand |
| 75 | * it has to be rounded to sector size |
| 76 | */ |
| 77 | #define CONFIG_ENV_SIZE 0x20000 /* 128k */ |
Gerald Kerma | 361b3d8 | 2014-12-19 08:13:09 +0100 | [diff] [blame] | 78 | #define CONFIG_ENV_OFFSET 0xE0000 /* env starts here */ |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 79 | |
| 80 | /* |
| 81 | * Default environment variables |
| 82 | */ |
Gerald Kerma | 361b3d8 | 2014-12-19 08:13:09 +0100 | [diff] [blame] | 83 | #define CONFIG_BOOTCOMMAND \ |
| 84 | "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \ |
| 85 | "ubi part root; " \ |
| 86 | "ubifsmount ubi:rootfs; " \ |
| 87 | "ubifsload 0x800000 ${kernel}; " \ |
| 88 | "ubifsload 0x700000 ${fdt}; " \ |
| 89 | "ubifsumount; " \ |
| 90 | "fdt addr 0x700000; fdt resize; fdt chosen; " \ |
| 91 | "bootz 0x800000 - 0x700000" |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 92 | |
Gerald Kerma | 361b3d8 | 2014-12-19 08:13:09 +0100 | [diff] [blame] | 93 | #define CONFIG_MTDPARTS \ |
| 94 | "mtdparts=orion_nand:" \ |
| 95 | "896K(uboot),128K(uboot_env)," \ |
| 96 | "-@1M(root)\0" |
| 97 | |
| 98 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 99 | "console=console=ttyS0,115200\0" \ |
| 100 | "mtdids=nand0=orion_nand\0" \ |
| 101 | "mtdparts="CONFIG_MTDPARTS \ |
| 102 | "kernel=/boot/zImage\0" \ |
| 103 | "fdt=/boot/guruplug-server-plus.dtb\0" \ |
| 104 | "bootargs_root=ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs rw\0" |
| 105 | |
| 106 | #define MTDIDS_DEFAULT "nand0=orion_nand" |
| 107 | |
| 108 | #define MTDPARTS_DEFAULT \ |
| 109 | "mtdparts="CONFIG_MTDPARTS |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 110 | |
| 111 | /* |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 112 | * Ethernet Driver configuration |
| 113 | */ |
| 114 | #ifdef CONFIG_CMD_NET |
Albert Aribaud | d44265a | 2010-07-12 22:24:28 +0200 | [diff] [blame] | 115 | #define CONFIG_MVGBE_PORTS {1, 1} /* enable both ports */ |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 116 | #define CONFIG_PHY_BASE_ADR 0 |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 117 | #endif /* CONFIG_CMD_NET */ |
| 118 | |
| 119 | /* |
Prafulla Wadaskar | 54e999a | 2010-09-30 22:53:43 +0530 | [diff] [blame] | 120 | * SATA Driver configuration |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 121 | */ |
Prafulla Wadaskar | 54e999a | 2010-09-30 22:53:43 +0530 | [diff] [blame] | 122 | #ifdef CONFIG_MVSATA_IDE |
| 123 | #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET |
| 124 | #endif /*CONFIG_MVSATA_IDE*/ |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 125 | |
Gerald Kerma | 361b3d8 | 2014-12-19 08:13:09 +0100 | [diff] [blame] | 126 | /* |
| 127 | * File system |
| 128 | */ |
| 129 | #define CONFIG_CMD_EXT2 |
| 130 | #define CONFIG_CMD_EXT4 |
| 131 | #define CONFIG_CMD_FAT |
| 132 | #define CONFIG_CMD_JFFS2 |
| 133 | #define CONFIG_CMD_UBI |
| 134 | #define CONFIG_CMD_UBIFS |
| 135 | #define CONFIG_RBTREE |
| 136 | #define CONFIG_MTD_DEVICE |
| 137 | #define CONFIG_MTD_PARTITIONS |
| 138 | #define CONFIG_CMD_MTDPARTS |
| 139 | |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 140 | #define CONFIG_SYS_ALT_MEMTEST |
| 141 | |
| 142 | #endif /* _CONFIG_GURUPLUG_H */ |