Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2009 |
| 3 | * Marvell Semiconductor <www.marvell.com> |
| 4 | * Written-by: Siddarth Gore <gores@marvell.com> |
| 5 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 6 | * SPDX-License-Identifier: GPL-2.0+ |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef _CONFIG_GURUPLUG_H |
| 10 | #define _CONFIG_GURUPLUG_H |
| 11 | |
| 12 | /* |
| 13 | * Version number information |
| 14 | */ |
| 15 | #define CONFIG_IDENT_STRING "\nMarvell-GuruPlug" |
| 16 | |
| 17 | /* |
| 18 | * High Level Configuration Options (easy to change) |
| 19 | */ |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 20 | #define CONFIG_SHEEVA_88SV131 1 /* CPU Core subversion */ |
| 21 | #define CONFIG_KIRKWOOD 1 /* SOC Family Name */ |
| 22 | #define CONFIG_KW88F6281 1 /* SOC Name */ |
| 23 | #define CONFIG_MACH_GURUPLUG /* Machine type */ |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 24 | #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */ |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 25 | |
| 26 | /* |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 27 | * Commands configuration |
| 28 | */ |
| 29 | #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */ |
| 30 | #include <config_cmd_default.h> |
| 31 | #define CONFIG_CMD_DHCP |
| 32 | #define CONFIG_CMD_ENV |
| 33 | #define CONFIG_CMD_FAT |
| 34 | #define CONFIG_CMD_NAND |
| 35 | #define CONFIG_CMD_PING |
| 36 | #define CONFIG_CMD_USB |
Prafulla Wadaskar | 54e999a | 2010-09-30 22:53:43 +0530 | [diff] [blame] | 37 | #define CONFIG_CMD_IDE |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 38 | |
| 39 | /* |
Prafulla Wadaskar | 54e999a | 2010-09-30 22:53:43 +0530 | [diff] [blame] | 40 | * mv-common.h should be defined after CMD configs since it used them |
| 41 | * to enable certain macros |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 42 | */ |
Prafulla Wadaskar | 54e999a | 2010-09-30 22:53:43 +0530 | [diff] [blame] | 43 | #include "mv-common.h" |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 44 | |
| 45 | /* |
| 46 | * Environment variables configurations |
| 47 | */ |
| 48 | #ifdef CONFIG_CMD_NAND |
| 49 | #define CONFIG_ENV_IS_IN_NAND 1 |
| 50 | #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */ |
| 51 | #else |
| 52 | #define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */ |
| 53 | #endif |
| 54 | /* |
| 55 | * max 4k env size is enough, but in case of nand |
| 56 | * it has to be rounded to sector size |
| 57 | */ |
| 58 | #define CONFIG_ENV_SIZE 0x20000 /* 128k */ |
Gray Remlin | 5842383 | 2010-10-28 19:02:12 +0530 | [diff] [blame] | 59 | #define CONFIG_ENV_ADDR 0x60000 |
| 60 | #define CONFIG_ENV_OFFSET 0x60000 /* env starts here */ |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 61 | |
| 62 | /* |
| 63 | * Default environment variables |
| 64 | */ |
| 65 | #define CONFIG_BOOTCOMMAND "setenv ethact egiga0; " \ |
| 66 | "${x_bootcmd_ethernet}; setenv ethact egiga1; " \ |
| 67 | "${x_bootcmd_ethernet}; ${x_bootcmd_usb}; ${x_bootcmd_kernel}; "\ |
| 68 | "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \ |
| 69 | "bootm 0x6400000;" |
| 70 | |
| 71 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 72 | "x_bootcmd_ethernet=ping 192.168.2.1\0" \ |
| 73 | "x_bootcmd_usb=usb start\0" \ |
| 74 | "x_bootcmd_kernel=nand read.e 0x6400000 0x100000 0x400000\0" \ |
| 75 | "x_bootargs=console=ttyS0,115200\0" \ |
| 76 | "x_bootargs_root=ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs\0" |
| 77 | |
| 78 | /* |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 79 | * Ethernet Driver configuration |
| 80 | */ |
| 81 | #ifdef CONFIG_CMD_NET |
Albert Aribaud | d44265a | 2010-07-12 22:24:28 +0200 | [diff] [blame] | 82 | #define CONFIG_MVGBE_PORTS {1, 1} /* enable both ports */ |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 83 | #define CONFIG_PHY_BASE_ADR 0 |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 84 | #endif /* CONFIG_CMD_NET */ |
| 85 | |
| 86 | /* |
Prafulla Wadaskar | 54e999a | 2010-09-30 22:53:43 +0530 | [diff] [blame] | 87 | * SATA Driver configuration |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 88 | */ |
Prafulla Wadaskar | 54e999a | 2010-09-30 22:53:43 +0530 | [diff] [blame] | 89 | #ifdef CONFIG_MVSATA_IDE |
| 90 | #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET |
| 91 | #endif /*CONFIG_MVSATA_IDE*/ |
Siddarth Gore | 16b7670 | 2010-03-18 20:25:40 +0530 | [diff] [blame] | 92 | |
| 93 | #define CONFIG_SYS_ALT_MEMTEST |
| 94 | |
| 95 | #endif /* _CONFIG_GURUPLUG_H */ |