Prafulla Wadaskar | 60a04f9 | 2009-07-16 20:58:01 +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 | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 6 | * SPDX-License-Identifier: GPL-2.0+ |
Prafulla Wadaskar | 60a04f9 | 2009-07-16 20:58:01 +0530 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef _CONFIG_MV88F6281GTW_GE_H |
| 10 | #define _CONFIG_MV88F6281GTW_GE_H |
| 11 | |
| 12 | /* |
| 13 | * Version number information |
| 14 | */ |
| 15 | #define CONFIG_IDENT_STRING "\nMarvell-MV88F6281GTW_GE" |
| 16 | |
| 17 | /* |
| 18 | * High Level Configuration Options (easy to change) |
| 19 | */ |
Prafulla Wadaskar | 60a04f9 | 2009-07-16 20:58:01 +0530 | [diff] [blame] | 20 | #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */ |
Prafulla Wadaskar | 60a04f9 | 2009-07-16 20:58:01 +0530 | [diff] [blame] | 21 | #define CONFIG_KW88F6281 1 /* SOC Name */ |
| 22 | #define CONFIG_MACH_MV88F6281GTW_GE /* Machine type */ |
Prafulla Wadaskar | 60a04f9 | 2009-07-16 20:58:01 +0530 | [diff] [blame] | 23 | #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */ |
Prafulla Wadaskar | 60a04f9 | 2009-07-16 20:58:01 +0530 | [diff] [blame] | 24 | |
| 25 | /* |
Prafulla Wadaskar | 60a04f9 | 2009-07-16 20:58:01 +0530 | [diff] [blame] | 26 | * Commands configuration |
| 27 | */ |
| 28 | #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */ |
| 29 | #include <config_cmd_default.h> |
Prafulla Wadaskar | 60a04f9 | 2009-07-16 20:58:01 +0530 | [diff] [blame] | 30 | #define CONFIG_CMD_DHCP |
Prafulla Wadaskar | 3268629 | 2010-09-30 22:53:43 +0530 | [diff] [blame] | 31 | #define CONFIG_CMD_PING |
Prafulla Wadaskar | 60a04f9 | 2009-07-16 20:58:01 +0530 | [diff] [blame] | 32 | #define CONFIG_CMD_ENV |
| 33 | #define CONFIG_CMD_FAT |
| 34 | #define CONFIG_CMD_PING |
| 35 | #define CONFIG_CMD_SF |
| 36 | #define CONFIG_CMD_USB |
| 37 | |
| 38 | /* |
Prafulla Wadaskar | 3268629 | 2010-09-30 22:53:43 +0530 | [diff] [blame] | 39 | * mv-common.h should be defined after CMD configs since it used them |
| 40 | * to enable certain macros |
Prafulla Wadaskar | 60a04f9 | 2009-07-16 20:58:01 +0530 | [diff] [blame] | 41 | */ |
Prafulla Wadaskar | 3268629 | 2010-09-30 22:53:43 +0530 | [diff] [blame] | 42 | #include "mv-common.h" |
| 43 | |
| 44 | /* Unwanted stuffs from mv-common.h */ |
| 45 | #undef CONFIG_CMD_EXT2 |
| 46 | #undef CONFIG_CMD_JFFS2 |
| 47 | #undef CONFIG_CMD_FAT |
| 48 | #undef CONFIG_CMD_UBI |
| 49 | #undef CONFIG_CMD_UBIFS |
| 50 | #undef CONFIG_RBTREE |
Prafulla Wadaskar | 60a04f9 | 2009-07-16 20:58:01 +0530 | [diff] [blame] | 51 | |
| 52 | /* |
| 53 | * Environment variables configurations |
| 54 | */ |
| 55 | #ifdef CONFIG_SPI_FLASH |
| 56 | #define CONFIG_ENV_IS_IN_SPI_FLASH 1 |
| 57 | #define CONFIG_ENV_SECT_SIZE 0x10000 /* 64K */ |
| 58 | #else |
| 59 | #define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */ |
| 60 | #endif |
| 61 | #define CONFIG_ENV_SIZE 0x1000 /* 4k */ |
| 62 | #define CONFIG_ENV_ADDR 0x30000 |
| 63 | #define CONFIG_ENV_OFFSET 0x30000 /* env starts here */ |
| 64 | |
| 65 | /* |
| 66 | * Default environment variables |
| 67 | */ |
| 68 | #define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \ |
| 69 | "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \ |
| 70 | "${x_bootcmd_usb}; bootm 0x6400000;" |
| 71 | |
| 72 | #define CONFIG_MTDPARTS "spi0.0:512k(uboot)," \ |
| 73 | "512k@512k(psm),2m@1m(kernel),13m@3m(rootfs)\0" |
| 74 | |
| 75 | #define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \ |
| 76 | "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \ |
| 77 | "x_bootcmd_kernel=cp.b 0xE8100000 0x6400000 0x200000\0" \ |
| 78 | "x_bootcmd_usb=usb start\0" \ |
| 79 | "x_bootargs_root=root=/dev/mtdblock3 ro rootfstype=squashfs\0" |
| 80 | |
| 81 | /* |
Prafulla Wadaskar | 60a04f9 | 2009-07-16 20:58:01 +0530 | [diff] [blame] | 82 | * Ethernet Driver configuration |
| 83 | */ |
| 84 | #ifdef CONFIG_CMD_NET |
Albert Aribaud | e91d7d3 | 2010-07-12 22:24:28 +0200 | [diff] [blame] | 85 | #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */ |
Prafulla Wadaskar | 60a04f9 | 2009-07-16 20:58:01 +0530 | [diff] [blame] | 86 | #define CONFIG_MV88E61XX_SWITCH /* Enable mv88e61xx switch driver */ |
Prafulla Wadaskar | 3268629 | 2010-09-30 22:53:43 +0530 | [diff] [blame] | 87 | #endif /* CONFIG_CMD_NET */ |
Prafulla Wadaskar | 60a04f9 | 2009-07-16 20:58:01 +0530 | [diff] [blame] | 88 | |
| 89 | #endif /* _CONFIG_MV88F6281GTW_GE_H */ |