2 * Copyright (C) 2013 Suriyan Ramasami <suriyan.r@gmail.com>
4 * Based on dockstar.h originally written by
5 * Copyright (C) 2010 Eric C. Cooper <ecc@cmu.edu>
7 * Based on sheevaplug.h originally written by
8 * Prafulla Wadaskar <prafulla@marvell.com>
10 * Marvell Semiconductor <www.marvell.com>
12 * SPDX-License-Identifier: GPL-2.0+
15 #ifndef _CONFIG_GOFLEXHOME_H
16 #define _CONFIG_GOFLEXHOME_H
19 * Version number information
21 #define CONFIG_IDENT_STRING "\nSeagate GoFlex Home"
24 * High Level Configuration Options (easy to change)
26 #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
27 #define CONFIG_KIRKWOOD 1 /* SOC Family Name */
28 #define CONFIG_KW88F6281 1 /* SOC Name */
29 #define CONFIG_MACH_GOFLEXHOME /* Machine type */
30 #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
33 * Default GPIO configuration and LED status
35 #define GOFLEXHOME_OE_LOW (~(0))
36 #define GOFLEXHOME_OE_HIGH (~(0))
37 #define GOFLEXHOME_OE_VAL_LOW (1 << 29) /* USB_PWEN low */
38 #define GOFLEXHOME_OE_VAL_HIGH (1 << 17) /* LED pin high */
41 #define MV88E1116_LED_FCTRL_REG 10
42 #define MV88E1116_CPRSP_CR3_REG 21
43 #define MV88E1116_MAC_CTRL_REG 21
44 #define MV88E1116_PGADR_REG 22
45 #define MV88E1116_RGMII_TXTM_CTRL (1 << 4)
46 #define MV88E1116_RGMII_RXTM_CTRL (1 << 5)
49 * Commands configuration
51 #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
52 #define CONFIG_CONSOLE_MUX
53 #define CONFIG_SYS_CONSOLE_IS_IN_ENV
55 #include <config_cmd_default.h>
56 #define CONFIG_CMD_DHCP
57 #define CONFIG_CMD_ENV
58 #define CONFIG_CMD_MII
59 #define CONFIG_CMD_NAND
60 #define CONFIG_CMD_PING
61 #define CONFIG_CMD_USB
62 #define CONFIG_CMD_IDE
63 #define CONFIG_CMD_DATE
64 #define CONFIG_CMD_EXT4
65 #define CONFIG_SYS_MVFS /* Picks up Filesystem from mv-common.h */
68 * mv-common.h should be defined after CMD configs since it used them
69 * to enable certain macros
71 #include "mv-common.h"
73 #undef CONFIG_SYS_PROMPT /* previously defined in mv-common.h */
74 #define CONFIG_SYS_PROMPT "GoFlexHome> " /* Command Prompt */
77 * Environment variables configurations
79 #ifdef CONFIG_CMD_NAND
80 #define CONFIG_ENV_IS_IN_NAND 1
81 #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
83 #define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
86 * max 4k env size is enough, but in case of nand
87 * it has to be rounded to sector size
89 #define CONFIG_ENV_SIZE 0x20000 /* 128k */
90 #define CONFIG_ENV_ADDR 0xC0000
91 #define CONFIG_ENV_OFFSET 0xC0000 /* env starts here */
94 * Default environment variables
96 #define CONFIG_BOOTCOMMAND \
97 "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
99 "ubifsmount ubi:root; " \
100 "ubifsload 0x800000 ${kernel}; " \
103 #define CONFIG_MTDPARTS \
104 "mtdparts=orion_nand:1m(uboot),6M(uImage),-(root)\0"
106 #define CONFIG_EXTRA_ENV_SETTINGS \
107 "console=console=ttyS0,115200\0" \
108 "mtdids=nand0=orion_nand\0" \
109 "mtdparts="CONFIG_MTDPARTS \
110 "kernel=/boot/uImage\0" \
111 "bootargs_root=ubi.mtd=root root=ubi0:root rootfstype=ubifs ro\0"
114 * Ethernet Driver configuration
116 #ifdef CONFIG_CMD_NET
117 #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
118 #define CONFIG_PHY_BASE_ADR 0
119 #endif /* CONFIG_CMD_NET */
122 * * SATA Driver configuration
124 #ifdef CONFIG_MVSATA_IDE
125 #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
126 #endif /*CONFIG_MVSATA_IDE*/
129 * * RTC driver configuration
131 #ifdef CONFIG_CMD_DATE
132 #define CONFIG_RTC_MV
133 #endif /* CONFIG_CMD_DATE */
135 #endif /* _CONFIG_GOFLEXHOME_H */