arm: kirkwood: Move configuration of some commands to _defconfig files
[oweals/u-boot.git] / include / configs / sheevaplug.h
1 /*
2  * (C) Copyright 2009-2014
3  * Gerald Kerma <dreagle@doukki.net>
4  * Marvell Semiconductor <www.marvell.com>
5  * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
6  *
7  * SPDX-License-Identifier:     GPL-2.0+
8  */
9
10 #ifndef _CONFIG_SHEEVAPLUG_H
11 #define _CONFIG_SHEEVAPLUG_H
12
13
14 /*
15  * Version number information
16  */
17 #define CONFIG_IDENT_STRING     "\nMarvell-Sheevaplug"
18
19 /*
20  * High Level Configuration Options (easy to change)
21  */
22 #define CONFIG_FEROCEON_88FR131 1       /* CPU Core subversion */
23 #define CONFIG_KW88F6281        1       /* SOC Name */
24 #define CONFIG_MACH_SHEEVAPLUG  /* Machine type */
25 #define CONFIG_SKIP_LOWLEVEL_INIT       /* disable board lowlevel_init */
26
27 /* Add target to build it automatically upon "make" */
28 #define CONFIG_BUILD_TARGET     "u-boot.kwb"
29
30 /*
31  * Compression configuration
32  */
33 #define CONFIG_BZIP2
34 #define CONFIG_LZMA
35 #define CONFIG_LZO
36
37 /*
38  * Enable device tree support
39  */
40 #define CONFIG_OF_LIBFDT
41
42 /*
43  * Commands configuration
44  */
45 #define CONFIG_SYS_NO_FLASH             /* Declare no flash (NOR/SPI) */
46 #define CONFIG_CMD_BOOTZ
47 #define CONFIG_CMD_DATE
48 #define CONFIG_CMD_ENV
49 #define CONFIG_CMD_IDE
50 #define CONFIG_CMD_MII
51 #define CONFIG_CMD_MMC
52
53 /*
54  * mv-common.h should be defined after CMD configs since it used them
55  * to enable certain macros
56  */
57 #include "mv-common.h"
58
59 /*
60  *  Environment variables configurations
61  */
62 #ifdef CONFIG_CMD_NAND
63 #define CONFIG_ENV_IS_IN_NAND           1
64 #define CONFIG_ENV_SECT_SIZE            0x20000 /* 128K */
65 #else
66 #define CONFIG_ENV_IS_NOWHERE           1       /* if env in SDRAM */
67 #endif
68 /*
69  * max 4k env size is enough, but in case of nand
70  * it has to be rounded to sector size
71  */
72 #define CONFIG_ENV_SIZE                 0x20000 /* 128k */
73 #define CONFIG_ENV_ADDR                 0x80000
74 #define CONFIG_ENV_OFFSET               0x80000 /* env starts here */
75
76 /*
77  * Default environment variables
78  */
79 #define CONFIG_BOOTCOMMAND              "${x_bootcmd_kernel}; " \
80         "setenv bootargs ${x_bootargs} ${x_bootargs_root}; "    \
81         "${x_bootcmd_usb}; bootm 0x6400000;"
82
83 #define CONFIG_MTDPARTS         \
84         "mtdparts=orion_nand:512K(uboot),"                              \
85         "512K(env),1M(script),6M(kernel),"                              \
86         "12M(ramdisk),4M(spare),-(rootfs)"
87
88 #define CONFIG_EXTRA_ENV_SETTINGS       "x_bootargs=console"    \
89         "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS        \
90         "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x300000\0" \
91         "x_bootcmd_usb=usb start\0" \
92         "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
93
94 #define MTDIDS_DEFAULT  "nand0=orion_nand"
95
96 #define MTDPARTS_DEFAULT        \
97         "mtdparts="CONFIG_MTDPARTS
98
99 /*
100  * Ethernet Driver configuration
101  */
102 #ifdef CONFIG_CMD_NET
103 #define CONFIG_MVGBE_PORTS      {1, 0}  /* enable port 0 only */
104 #define CONFIG_PHY_BASE_ADR     0
105 #endif /* CONFIG_CMD_NET */
106
107 /*
108  * SDIO/MMC Card Configuration
109  */
110 #ifdef CONFIG_CMD_MMC
111 #define CONFIG_MMC
112 #define CONFIG_GENERIC_MMC
113 #define CONFIG_MVEBU_MMC
114 #define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
115 #endif /* CONFIG_CMD_MMC */
116
117 /*
118  * SATA driver configuration
119  */
120 #ifdef CONFIG_CMD_IDE
121 #define __io
122 #define CONFIG_IDE_PREINIT
123 #define CONFIG_DOS_PARTITION
124 #define CONFIG_MVSATA_IDE_USE_PORT0
125 #define CONFIG_MVSATA_IDE_USE_PORT1
126 #define CONFIG_SYS_ATA_IDE0_OFFSET      MV_SATA_PORT0_OFFSET
127 #define CONFIG_SYS_ATA_IDE1_OFFSET      MV_SATA_PORT1_OFFSET
128 #endif /* CONFIG_CMD_IDE */
129
130 /*
131  * RTC driver configuration
132  */
133 #ifdef CONFIG_CMD_DATE
134 #define CONFIG_RTC_MV
135 #endif /* CONFIG_CMD_DATE */
136
137 /*
138  * File system
139  */
140 #define CONFIG_CMD_EXT2
141 #define CONFIG_CMD_EXT4
142 #define CONFIG_CMD_FAT
143 #define CONFIG_CMD_JFFS2
144 #define CONFIG_CMD_UBI
145 #define CONFIG_CMD_UBIFS
146 #define CONFIG_RBTREE
147 #define CONFIG_MTD_DEVICE               /* needed for mtdparts commands */
148 #define CONFIG_MTD_PARTITIONS
149 #define CONFIG_CMD_MTDPARTS
150
151 #define CONFIG_SYS_ALT_MEMTEST
152
153 #endif /* _CONFIG_SHEEVAPLUG_H */