138041db7SEric Cooper /* 238041db7SEric Cooper * Copyright (C) 2010 Eric C. Cooper <ecc@cmu.edu> 338041db7SEric Cooper * 438041db7SEric Cooper * Based on sheevaplug.h originally written by 538041db7SEric Cooper * Prafulla Wadaskar <prafulla@marvell.com> 638041db7SEric Cooper * (C) Copyright 2009 738041db7SEric Cooper * Marvell Semiconductor <www.marvell.com> 838041db7SEric Cooper * 9*1a459660SWolfgang Denk * SPDX-License-Identifier: GPL-2.0+ 1038041db7SEric Cooper */ 1138041db7SEric Cooper 1238041db7SEric Cooper #ifndef _CONFIG_DOCKSTAR_H 1338041db7SEric Cooper #define _CONFIG_DOCKSTAR_H 1438041db7SEric Cooper 1538041db7SEric Cooper /* 1638041db7SEric Cooper * Version number information 1738041db7SEric Cooper */ 1838041db7SEric Cooper #define CONFIG_IDENT_STRING "\nSeagate FreeAgent DockStar" 1938041db7SEric Cooper 2038041db7SEric Cooper /* 2138041db7SEric Cooper * High Level Configuration Options (easy to change) 2238041db7SEric Cooper */ 2338041db7SEric Cooper #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */ 2438041db7SEric Cooper #define CONFIG_KIRKWOOD 1 /* SOC Family Name */ 2538041db7SEric Cooper #define CONFIG_KW88F6281 1 /* SOC Name */ 2638041db7SEric Cooper #define CONFIG_MACH_DOCKSTAR /* Machine type */ 2738041db7SEric Cooper #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */ 2838041db7SEric Cooper 2938041db7SEric Cooper /* 3038041db7SEric Cooper * Commands configuration 3138041db7SEric Cooper */ 3238041db7SEric Cooper #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */ 3338041db7SEric Cooper #include <config_cmd_default.h> 3438041db7SEric Cooper #define CONFIG_CMD_DHCP 3538041db7SEric Cooper #define CONFIG_CMD_ENV 3638041db7SEric Cooper #define CONFIG_CMD_MII 3738041db7SEric Cooper #define CONFIG_CMD_NAND 3838041db7SEric Cooper #define CONFIG_CMD_PING 3938041db7SEric Cooper #define CONFIG_CMD_USB 4038041db7SEric Cooper /* 4138041db7SEric Cooper * mv-common.h should be defined after CMD configs since it used them 4238041db7SEric Cooper * to enable certain macros 4338041db7SEric Cooper */ 4438041db7SEric Cooper #include "mv-common.h" 4538041db7SEric Cooper 4638041db7SEric Cooper #undef CONFIG_SYS_PROMPT /* previously defined in mv-common.h */ 4738041db7SEric Cooper #define CONFIG_SYS_PROMPT "DockStar> " /* Command Prompt */ 4838041db7SEric Cooper 4938041db7SEric Cooper /* 5038041db7SEric Cooper * Environment variables configurations 5138041db7SEric Cooper */ 5238041db7SEric Cooper #ifdef CONFIG_CMD_NAND 5338041db7SEric Cooper #define CONFIG_ENV_IS_IN_NAND 1 5438041db7SEric Cooper #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */ 5538041db7SEric Cooper #else 5638041db7SEric Cooper #define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */ 5738041db7SEric Cooper #endif 5838041db7SEric Cooper /* 5938041db7SEric Cooper * max 4k env size is enough, but in case of nand 6038041db7SEric Cooper * it has to be rounded to sector size 6138041db7SEric Cooper */ 6238041db7SEric Cooper #define CONFIG_ENV_SIZE 0x20000 /* 128k */ 6338041db7SEric Cooper #define CONFIG_ENV_ADDR 0x60000 6438041db7SEric Cooper #define CONFIG_ENV_OFFSET 0x60000 /* env starts here */ 6538041db7SEric Cooper 6638041db7SEric Cooper /* 6738041db7SEric Cooper * Default environment variables 6838041db7SEric Cooper */ 6938041db7SEric Cooper #define CONFIG_BOOTCOMMAND \ 7038041db7SEric Cooper "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \ 7138041db7SEric Cooper "ubi part root; " \ 72949a7710SJoe Hershberger "ubifsmount ubi:root; " \ 7338041db7SEric Cooper "ubifsload 0x800000 ${kernel}; " \ 7438041db7SEric Cooper "ubifsload 0x1100000 ${initrd}; " \ 7538041db7SEric Cooper "bootm 0x800000 0x1100000" 7638041db7SEric Cooper 7738041db7SEric Cooper #define CONFIG_MTDPARTS "mtdparts=orion_nand:1m(uboot),-(root)\0" 7838041db7SEric Cooper 7938041db7SEric Cooper #define CONFIG_EXTRA_ENV_SETTINGS \ 8038041db7SEric Cooper "console=console=ttyS0,115200\0" \ 8138041db7SEric Cooper "mtdids=nand0=orion_nand\0" \ 8238041db7SEric Cooper "mtdparts="CONFIG_MTDPARTS \ 8338041db7SEric Cooper "kernel=/boot/uImage\0" \ 8438041db7SEric Cooper "initrd=/boot/uInitrd\0" \ 8538041db7SEric Cooper "bootargs_root=ubi.mtd=1 root=ubi0:root rootfstype=ubifs ro\0" 8638041db7SEric Cooper 8738041db7SEric Cooper /* 8838041db7SEric Cooper * Ethernet Driver configuration 8938041db7SEric Cooper */ 9038041db7SEric Cooper #ifdef CONFIG_CMD_NET 9138041db7SEric Cooper #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */ 9238041db7SEric Cooper #define CONFIG_PHY_BASE_ADR 0 9338041db7SEric Cooper #endif /* CONFIG_CMD_NET */ 9438041db7SEric Cooper 9538041db7SEric Cooper /* 9638041db7SEric Cooper * File system 9738041db7SEric Cooper */ 9838041db7SEric Cooper #define CONFIG_CMD_EXT2 9938041db7SEric Cooper #define CONFIG_CMD_FAT 10038041db7SEric Cooper #define CONFIG_CMD_JFFS2 10138041db7SEric Cooper #define CONFIG_CMD_UBI 10238041db7SEric Cooper #define CONFIG_CMD_UBIFS 10338041db7SEric Cooper #define CONFIG_RBTREE 10438041db7SEric Cooper #define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ 10538041db7SEric Cooper #define CONFIG_MTD_PARTITIONS 10638041db7SEric Cooper #define CONFIG_CMD_MTDPARTS 10738041db7SEric Cooper #define CONFIG_LZO 10838041db7SEric Cooper 10938041db7SEric Cooper #endif /* _CONFIG_DOCKSTAR_H */ 110