]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/configs/sheevaplug.h
ARM: sheevaplug: add MTD defaults
[karo-tx-uboot.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  * Version number information
15  */
16 #define CONFIG_IDENT_STRING     "\nMarvell-Sheevaplug"
17
18 /*
19  * High Level Configuration Options (easy to change)
20  */
21 #define CONFIG_FEROCEON_88FR131 1       /* CPU Core subversion */
22 #define CONFIG_KW88F6281        1       /* SOC Name */
23 #define CONFIG_MACH_SHEEVAPLUG  /* Machine type */
24 #define CONFIG_SKIP_LOWLEVEL_INIT       /* disable board lowlevel_init */
25
26 /*
27  * Compression configuration
28  */
29 #define CONFIG_BZIP2
30 #define CONFIG_LZMA
31 #define CONFIG_LZO
32
33 /*
34  * Commands configuration
35  */
36 #define CONFIG_SYS_NO_FLASH             /* Declare no flash (NOR/SPI) */
37 #include <config_cmd_default.h>
38 #define CONFIG_CMD_BOOTZ
39 #define CONFIG_CMD_DHCP
40 #define CONFIG_CMD_ENV
41 #define CONFIG_CMD_IDE
42 #define CONFIG_CMD_MII
43 #define CONFIG_CMD_MMC
44 #define CONFIG_CMD_NAND
45 #define CONFIG_CMD_PING
46 #define CONFIG_CMD_USB
47 /*
48  * mv-common.h should be defined after CMD configs since it used them
49  * to enable certain macros
50  */
51 #include "mv-common.h"
52
53 /*
54  *  Environment variables configurations
55  */
56 #ifdef CONFIG_CMD_NAND
57 #define CONFIG_ENV_IS_IN_NAND           1
58 #define CONFIG_ENV_SECT_SIZE            0x20000 /* 128K */
59 #else
60 #define CONFIG_ENV_IS_NOWHERE           1       /* if env in SDRAM */
61 #endif
62 /*
63  * max 4k env size is enough, but in case of nand
64  * it has to be rounded to sector size
65  */
66 #define CONFIG_ENV_SIZE                 0x20000 /* 128k */
67 #define CONFIG_ENV_ADDR                 0x80000
68 #define CONFIG_ENV_OFFSET               0x80000 /* env starts here */
69
70 /*
71  * Default environment variables
72  */
73 #define CONFIG_BOOTCOMMAND              "${x_bootcmd_kernel}; " \
74         "setenv bootargs ${x_bootargs} ${x_bootargs_root}; "    \
75         "${x_bootcmd_usb}; bootm 0x6400000;"
76
77 #define CONFIG_MTDPARTS         "orion_nand:512k(uboot),"       \
78         "3m@1m(kernel),1m@4m(psm),13m@5m(rootfs) rw\0"
79
80 #define CONFIG_EXTRA_ENV_SETTINGS       "x_bootargs=console"    \
81         "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS        \
82         "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x300000\0" \
83         "x_bootcmd_usb=usb start\0" \
84         "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
85
86 #define MTDIDS_DEFAULT  "nand0=orion_nand"
87
88 #define MTDPARTS_DEFAULT        \
89         "mtdparts="CONFIG_MTDPARTS
90
91 /*
92  * Ethernet Driver configuration
93  */
94 #ifdef CONFIG_CMD_NET
95 #define CONFIG_MVGBE_PORTS      {1, 0}  /* enable port 0 only */
96 #define CONFIG_PHY_BASE_ADR     0
97 #endif /* CONFIG_CMD_NET */
98
99 /*
100  * SDIO/MMC Card Configuration
101  */
102 #ifdef CONFIG_CMD_MMC
103 #define CONFIG_MMC
104 #define CONFIG_GENERIC_MMC
105 #define CONFIG_MVEBU_MMC
106 #define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
107 #endif /* CONFIG_CMD_MMC */
108
109 /*
110  * SATA driver configuration
111  */
112 #ifdef CONFIG_CMD_IDE
113 #define __io
114 #define CONFIG_IDE_PREINIT
115 #define CONFIG_DOS_PARTITION
116 #define CONFIG_MVSATA_IDE_USE_PORT0
117 #define CONFIG_MVSATA_IDE_USE_PORT1
118 #define CONFIG_SYS_ATA_IDE0_OFFSET      MV_SATA_PORT0_OFFSET
119 #define CONFIG_SYS_ATA_IDE1_OFFSET      MV_SATA_PORT1_OFFSET
120 #endif /* CONFIG_CMD_IDE */
121
122 /*
123  * File system
124  */
125 #define CONFIG_CMD_EXT2
126 #define CONFIG_CMD_EXT4
127 #define CONFIG_CMD_FAT
128 #define CONFIG_CMD_JFFS2
129 #define CONFIG_CMD_UBI
130 #define CONFIG_CMD_UBIFS
131 #define CONFIG_RBTREE
132 #define CONFIG_MTD_DEVICE               /* needed for mtdparts commands */
133 #define CONFIG_MTD_PARTITIONS
134 #define CONFIG_CMD_MTDPARTS
135 #define CONFIG_LZO
136
137 #endif /* _CONFIG_SHEEVAPLUG_H */