configs: move RTC_MV config from mv-plug-common.h to boards
[platform/kernel/u-boot.git] / include / configs / sheevaplug.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * (C) Copyright 2009-2014
4  * Gerald Kerma <dreagle@doukki.net>
5  * Marvell Semiconductor <www.marvell.com>
6  * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
7  */
8
9 #ifndef _CONFIG_SHEEVAPLUG_H
10 #define _CONFIG_SHEEVAPLUG_H
11
12 /*
13  * High Level Configuration Options (easy to change)
14  */
15 #define CONFIG_FEROCEON_88FR131 1       /* CPU Core subversion */
16
17 /*
18  * Commands configuration
19  */
20
21 /*
22  * Standard filesystems
23  */
24 #define CONFIG_BZIP2
25
26 /*
27  * mv-plug-common.h should be defined after CMD configs since it used them
28  * to enable certain macros
29  */
30 #include "mv-plug-common.h"
31
32 #ifdef CONFIG_CMD_DATE
33 #define CONFIG_RTC_MV
34 #endif /* CONFIG_CMD_DATE */
35
36 /*
37  *  Environment variables configurations
38  */
39 #ifdef CONFIG_CMD_NAND
40 #define CONFIG_ENV_SECT_SIZE            0x20000 /* 128K */
41 #endif
42 /*
43  * max 4k env size is enough, but in case of nand
44  * it has to be rounded to sector size
45  */
46 #define CONFIG_ENV_SIZE                 0x20000 /* 128k */
47 #define CONFIG_ENV_ADDR                 0x80000
48 #define CONFIG_ENV_OFFSET               0x80000 /* env starts here */
49 /*
50  * Environment is right behind U-Boot in flash. Make sure U-Boot
51  * doesn't grow into the environment area.
52  */
53 #define CONFIG_BOARD_SIZE_LIMIT         CONFIG_ENV_OFFSET
54
55 /*
56  * Default environment variables
57  */
58 #define CONFIG_BOOTCOMMAND              "${x_bootcmd_kernel}; " \
59         "setenv bootargs ${x_bootargs} ${x_bootargs_root}; "    \
60         "bootm 0x6400000;"
61
62 #define CONFIG_EXTRA_ENV_SETTINGS       "x_bootargs=console"    \
63         "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS_DEFAULT        \
64         "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x400000\0" \
65         "x_bootcmd_usb=usb start\0" \
66         "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
67
68 /*
69  * Ethernet Driver configuration
70  */
71 #ifdef CONFIG_CMD_NET
72 #define CONFIG_MVGBE_PORTS      {1, 0}  /* enable port 0 only */
73 #define CONFIG_PHY_BASE_ADR     0
74 #endif /* CONFIG_CMD_NET */
75
76 /*
77  * SDIO/MMC Card Configuration
78  */
79 #ifdef CONFIG_CMD_MMC
80 #define CONFIG_MVEBU_MMC
81 #define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
82 #endif /* CONFIG_CMD_MMC */
83
84 /*
85  * SATA driver configuration
86  */
87 #ifdef CONFIG_IDE
88 #define __io
89 #define CONFIG_IDE_PREINIT
90 #define CONFIG_MVSATA_IDE_USE_PORT0
91 #define CONFIG_MVSATA_IDE_USE_PORT1
92 #define CONFIG_SYS_ATA_IDE0_OFFSET      MV_SATA_PORT0_OFFSET
93 #define CONFIG_SYS_ATA_IDE1_OFFSET      MV_SATA_PORT1_OFFSET
94 #endif /* CONFIG_IDE */
95
96 #endif /* _CONFIG_SHEEVAPLUG_H */