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 * 91a459660SWolfgang 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 * High Level Configuration Options (easy to change) 1738041db7SEric Cooper */ 1838041db7SEric Cooper #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */ 1938041db7SEric Cooper #define CONFIG_KW88F6281 1 /* SOC Name */ 2038041db7SEric Cooper #define CONFIG_MACH_DOCKSTAR /* Machine type */ 2138041db7SEric Cooper #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */ 2238041db7SEric Cooper 2338041db7SEric Cooper /* 2438041db7SEric Cooper * mv-common.h should be defined after CMD configs since it used them 2538041db7SEric Cooper * to enable certain macros 2638041db7SEric Cooper */ 2738041db7SEric Cooper #include "mv-common.h" 2838041db7SEric Cooper 2938041db7SEric Cooper /* 3038041db7SEric Cooper * Environment variables configurations 3138041db7SEric Cooper */ 3238041db7SEric Cooper #ifdef CONFIG_CMD_NAND 3338041db7SEric Cooper #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */ 3438041db7SEric Cooper #endif 3538041db7SEric Cooper /* 3638041db7SEric Cooper * max 4k env size is enough, but in case of nand 3738041db7SEric Cooper * it has to be rounded to sector size 3838041db7SEric Cooper */ 3938041db7SEric Cooper #define CONFIG_ENV_SIZE 0x20000 /* 128k */ 40*d1a2f32fSEric Cooper #define CONFIG_ENV_ADDR 0x80000 41*d1a2f32fSEric Cooper #define CONFIG_ENV_OFFSET 0x80000 /* env starts here */ 4238041db7SEric Cooper 4338041db7SEric Cooper /* 4438041db7SEric Cooper * Default environment variables 4538041db7SEric Cooper */ 4638041db7SEric Cooper #define CONFIG_BOOTCOMMAND \ 4738041db7SEric Cooper "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \ 4838041db7SEric Cooper "ubi part root; " \ 49949a7710SJoe Hershberger "ubifsmount ubi:root; " \ 5038041db7SEric Cooper "ubifsload 0x800000 ${kernel}; " \ 5138041db7SEric Cooper "ubifsload 0x1100000 ${initrd}; " \ 5238041db7SEric Cooper "bootm 0x800000 0x1100000" 5338041db7SEric Cooper 5438041db7SEric Cooper #define CONFIG_MTDPARTS "mtdparts=orion_nand:1m(uboot),-(root)\0" 5538041db7SEric Cooper 5638041db7SEric Cooper #define CONFIG_EXTRA_ENV_SETTINGS \ 5738041db7SEric Cooper "console=console=ttyS0,115200\0" \ 5838041db7SEric Cooper "mtdids=nand0=orion_nand\0" \ 5938041db7SEric Cooper "mtdparts="CONFIG_MTDPARTS \ 6038041db7SEric Cooper "kernel=/boot/uImage\0" \ 6138041db7SEric Cooper "initrd=/boot/uInitrd\0" \ 6238041db7SEric Cooper "bootargs_root=ubi.mtd=1 root=ubi0:root rootfstype=ubifs ro\0" 6338041db7SEric Cooper 6438041db7SEric Cooper /* 6538041db7SEric Cooper * Ethernet Driver configuration 6638041db7SEric Cooper */ 6738041db7SEric Cooper #ifdef CONFIG_CMD_NET 6838041db7SEric Cooper #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */ 6938041db7SEric Cooper #define CONFIG_PHY_BASE_ADR 0 7038041db7SEric Cooper #endif /* CONFIG_CMD_NET */ 7138041db7SEric Cooper 7238041db7SEric Cooper /* 7338041db7SEric Cooper * File system 7438041db7SEric Cooper */ 7538041db7SEric Cooper 7638041db7SEric Cooper #endif /* _CONFIG_DOCKSTAR_H */ 77