]> git.sur5r.net Git - u-boot/blob - include/configs/goflexhome.h
configs: Re-sync almost all of cmd/Kconfig
[u-boot] / include / configs / goflexhome.h
1 /*
2  * Copyright (C) 2013 Suriyan Ramasami <suriyan.r@gmail.com>
3  *
4  * Based on dockstar.h originally written by
5  * Copyright (C) 2010  Eric C. Cooper <ecc@cmu.edu>
6  *
7  * Based on sheevaplug.h originally written by
8  * Prafulla Wadaskar <prafulla@marvell.com>
9  * (C) Copyright 2009
10  * Marvell Semiconductor <www.marvell.com>
11  *
12  * SPDX-License-Identifier:     GPL-2.0+
13  */
14
15 #ifndef _CONFIG_GOFLEXHOME_H
16 #define _CONFIG_GOFLEXHOME_H
17
18
19 /*
20  * Version number information
21  */
22 #define CONFIG_IDENT_STRING     "\nSeagate GoFlex Home"
23
24 /*
25  * High Level Configuration Options (easy to change)
26  */
27 #define CONFIG_FEROCEON_88FR131 1       /* CPU Core subversion */
28 #define CONFIG_KW88F6281        1       /* SOC Name */
29 #define CONFIG_MACH_GOFLEXHOME          /* Machine type */
30 #define CONFIG_SKIP_LOWLEVEL_INIT       /* disable board lowlevel_init */
31
32 /*
33  * Default GPIO configuration and LED status
34  */
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 */
39
40 /* PHY related */
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)
47
48 /*
49  * Commands configuration
50  */
51 #define CONFIG_SYS_NO_FLASH             /* Declare no flash (NOR/SPI) */
52 #define CONFIG_CONSOLE_MUX
53 #define CONFIG_SYS_CONSOLE_IS_IN_ENV
54
55 #define CONFIG_CMD_ENV
56 #define CONFIG_CMD_MII
57 #define CONFIG_CMD_NAND
58 #define CONFIG_CMD_IDE
59 #define CONFIG_CMD_DATE
60 #define CONFIG_CMD_EXT4
61 #define CONFIG_SYS_MVFS         /* Picks up Filesystem from mv-common.h */
62
63 /*
64  * mv-common.h should be defined after CMD configs since it used them
65  * to enable certain macros
66  */
67 #include "mv-common.h"
68
69 /*
70  *  Environment variables configurations
71  */
72 #ifdef CONFIG_CMD_NAND
73 #define CONFIG_ENV_IS_IN_NAND           1
74 #define CONFIG_ENV_SECT_SIZE            0x20000 /* 128K */
75 #else
76 #define CONFIG_ENV_IS_NOWHERE           1       /* if env in SDRAM */
77 #endif
78 /*
79  * max 4k env size is enough, but in case of nand
80  * it has to be rounded to sector size
81  */
82 #define CONFIG_ENV_SIZE                 0x20000 /* 128k */
83 #define CONFIG_ENV_ADDR                 0xC0000
84 #define CONFIG_ENV_OFFSET               0xC0000 /* env starts here */
85
86 /*
87  * Default environment variables
88  */
89 #define CONFIG_BOOTCOMMAND \
90         "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
91         "ubi part root; " \
92         "ubifsmount ubi:root; " \
93         "ubifsload 0x800000 ${kernel}; " \
94         "bootm 0x800000"
95
96 #define CONFIG_MTDPARTS \
97         "mtdparts=orion_nand:1m(uboot),6M(uImage),-(root)\0"
98
99 #define CONFIG_EXTRA_ENV_SETTINGS \
100         "console=console=ttyS0,115200\0" \
101         "mtdids=nand0=orion_nand\0" \
102         "mtdparts="CONFIG_MTDPARTS \
103         "kernel=/boot/uImage\0" \
104         "bootargs_root=ubi.mtd=root root=ubi0:root rootfstype=ubifs ro\0"
105
106 /*
107  * Ethernet Driver configuration
108  */
109 #ifdef CONFIG_CMD_NET
110 #define CONFIG_MVGBE_PORTS      {1, 0}  /* enable port 0 only */
111 #define CONFIG_PHY_BASE_ADR     0
112 #endif /* CONFIG_CMD_NET */
113
114 /*
115  *  * SATA Driver configuration
116  *   */
117 #ifdef CONFIG_MVSATA_IDE
118 #define CONFIG_SYS_ATA_IDE0_OFFSET      MV_SATA_PORT0_OFFSET
119 #endif /*CONFIG_MVSATA_IDE*/
120
121 /*
122  *  * RTC driver configuration
123  *   */
124 #ifdef CONFIG_CMD_DATE
125 #define CONFIG_RTC_MV
126 #endif /* CONFIG_CMD_DATE */
127
128 #endif /* _CONFIG_GOFLEXHOME_H */