arm: kirkwood: ib62x0: drop dev CONFIG_OF_LIBFDT
[oweals/u-boot.git] / include / configs / ib62x0.h
1 /*
2  * Copyright (C) 2011-2012
3  * Gerald Kerma <dreagle@doukki.net>
4  * Luka Perkov <luka@openwrt.org>
5  *
6  * SPDX-License-Identifier:     GPL-2.0+
7  */
8
9 #ifndef _CONFIG_IB62x0_H
10 #define _CONFIG_IB62x0_H
11
12
13 /*
14  * Version number information
15  */
16 #define CONFIG_IDENT_STRING     " RaidSonic ICY BOX IB-NAS62x0"
17
18 /*
19  * High level configuration options
20  */
21 #define CONFIG_FEROCEON_88FR131         /* CPU Core subversion */
22 #define CONFIG_KW88F6281                /* SOC Name */
23 #define CONFIG_SKIP_LOWLEVEL_INIT       /* disable board lowlevel_init */
24
25 /* Add target to build it automatically upon "make" */
26 #define CONFIG_BUILD_TARGET     "u-boot.kwb"
27
28 /*
29  * Compression configuration
30  */
31 #define CONFIG_BZIP2
32 #define CONFIG_LZMA
33 #define CONFIG_LZO
34
35 /*
36  * Commands configuration
37  */
38 #define CONFIG_SYS_NO_FLASH             /* declare no flash (NOR/SPI) */
39 #define CONFIG_SYS_MVFS
40 #define CONFIG_CMD_BOOTZ
41 #define CONFIG_CMD_IDE
42 #define CONFIG_CMD_MII
43
44 /*
45  * mv-common.h should be defined after CMD configs since it used them
46  * to enable certain macros
47  */
48 #include "mv-common.h"
49
50 /*
51  * Environment variables configuration
52  */
53 #ifdef CONFIG_CMD_NAND
54 #define CONFIG_ENV_IS_IN_NAND
55 #define CONFIG_ENV_SECT_SIZE    0x20000
56 #else
57 #define CONFIG_ENV_IS_NOWHERE
58 #endif
59 #define CONFIG_ENV_SIZE         0x20000
60 #define CONFIG_ENV_OFFSET       0xe0000
61
62 /*
63  * Default environment variables
64  */
65 #define CONFIG_BOOTCOMMAND \
66         "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; "     \
67         "ubi part root; "                                               \
68         "ubifsmount ubi:rootfs; "                                       \
69         "ubifsload 0x800000 ${kernel}; "                                \
70         "ubifsload 0x700000 ${fdt}; "                                   \
71         "ubifsumount; "                                                 \
72         "fdt addr 0x700000; fdt resize; fdt chosen; "                   \
73         "bootz 0x800000 - 0x700000"
74
75 #define CONFIG_MTDPARTS \
76         "mtdparts=orion_nand:"                                          \
77         "0xe0000@0x0(uboot),"                                           \
78         "0x20000@0xe0000(uboot_env),"                                   \
79         "-@0x100000(root)\0"
80
81 #define CONFIG_EXTRA_ENV_SETTINGS \
82         "console=console=ttyS0,115200\0"                                \
83         "mtdids=nand0=orion_nand\0"                                     \
84         "mtdparts="CONFIG_MTDPARTS                                      \
85         "kernel=/boot/zImage\0"                                         \
86         "fdt=/boot/ib62x0.dtb\0"                                        \
87         "bootargs_root=ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs rw\0"
88
89 /*
90  * Ethernet driver configuration
91  */
92 #ifdef CONFIG_CMD_NET
93 #define CONFIG_MVGBE_PORTS      {1, 0}  /* enable port 0 only */
94 #define CONFIG_PHY_BASE_ADR     0
95 #undef CONFIG_RESET_PHY_R
96 #endif /* CONFIG_CMD_NET */
97
98 /*
99  * SATA driver configuration
100  */
101 #ifdef CONFIG_CMD_IDE
102 #define __io
103 #define CONFIG_IDE_PREINIT
104 #define CONFIG_DOS_PARTITION
105 #define CONFIG_MVSATA_IDE_USE_PORT0
106 #define CONFIG_MVSATA_IDE_USE_PORT1
107 #define CONFIG_SYS_ATA_IDE0_OFFSET      MV_SATA_PORT0_OFFSET
108 #define CONFIG_SYS_ATA_IDE1_OFFSET      MV_SATA_PORT1_OFFSET
109 #endif /* CONFIG_CMD_IDE */
110
111 /*
112  * RTC driver configuration
113  */
114 #ifdef CONFIG_CMD_DATE
115 #define CONFIG_RTC_MV
116 #endif /* CONFIG_CMD_DATE */
117
118 /*
119  * File system
120  */
121 #define CONFIG_CMD_EXT2
122 #define CONFIG_CMD_FAT
123 #define CONFIG_CMD_JFFS2
124 #define CONFIG_CMD_UBI
125 #define CONFIG_CMD_UBIFS
126 #define CONFIG_RBTREE
127 #define CONFIG_MTD_DEVICE
128 #define CONFIG_MTD_PARTITIONS
129 #define CONFIG_CMD_MTDPARTS
130
131 #endif /* _CONFIG_IB62x0_H */