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