xref: /openbmc/u-boot/include/configs/iconnect.h (revision 9c5b00973bceb7c0192bd6b03672d69b092700b4)
1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */
29b914727SLuka Perkov /*
39b914727SLuka Perkov  * (C) Copyright 2009-2012
49b914727SLuka Perkov  * Wojciech Dubowik <wojciech.dubowik@neratec.com>
53fdf7596SLuka Perkov  * Luka Perkov <luka@openwrt.org>
69b914727SLuka Perkov  */
79b914727SLuka Perkov 
89b914727SLuka Perkov #ifndef _CONFIG_ICONNECT_H
99b914727SLuka Perkov #define _CONFIG_ICONNECT_H
109b914727SLuka Perkov 
119b914727SLuka Perkov /*
129b914727SLuka Perkov  * High level configuration options
139b914727SLuka Perkov  */
149b914727SLuka Perkov #define CONFIG_FEROCEON_88FR131		/* CPU Core subversion */
159b914727SLuka Perkov #define CONFIG_KW88F6281		/* SOC Name */
169b914727SLuka Perkov #define CONFIG_SKIP_LOWLEVEL_INIT	/* disable board lowlevel_init */
179b914727SLuka Perkov 
189b914727SLuka Perkov /*
1994ba26f2STom Rini  * Machine type
2094ba26f2STom Rini  */
2194ba26f2STom Rini #define CONFIG_MACH_TYPE	MACH_TYPE_ICONNECT
2294ba26f2STom Rini 
2394ba26f2STom Rini /*
249b914727SLuka Perkov  * Compression configuration
259b914727SLuka Perkov  */
269b914727SLuka Perkov #define CONFIG_BZIP2
279b914727SLuka Perkov 
289b914727SLuka Perkov /*
299b914727SLuka Perkov  * Commands configuration
309b914727SLuka Perkov  */
319b914727SLuka Perkov 
329b914727SLuka Perkov /*
339b914727SLuka Perkov  * mv-common.h should be defined after CMD configs since it used them
349b914727SLuka Perkov  * to enable certain macros
359b914727SLuka Perkov  */
369b914727SLuka Perkov #include "mv-common.h"
379b914727SLuka Perkov 
389b914727SLuka Perkov /*
399b914727SLuka Perkov  * Environment variables configuration
409b914727SLuka Perkov  */
419b914727SLuka Perkov #ifdef CONFIG_CMD_NAND
429b914727SLuka Perkov #define CONFIG_ENV_SECT_SIZE	0x20000
439b914727SLuka Perkov #endif
449b914727SLuka Perkov #define CONFIG_ENV_SIZE		0x20000
459b914727SLuka Perkov #define CONFIG_ENV_OFFSET	0x80000
469b914727SLuka Perkov 
479b914727SLuka Perkov /*
489b914727SLuka Perkov  * Default environment variables
499b914727SLuka Perkov  */
509b914727SLuka Perkov #define CONFIG_BOOTCOMMAND \
519b914727SLuka Perkov 	"setenv bootargs ${console} ${mtdparts} ${bootargs_root}; "	\
529b914727SLuka Perkov 	"ubi part rootfs; "						\
53949a7710SJoe Hershberger 	"ubifsmount ubi:rootfs; "					\
549b914727SLuka Perkov 	"ubifsload 0x800000 ${kernel}; "				\
559b914727SLuka Perkov 	"bootm 0x800000"
569b914727SLuka Perkov 
579b914727SLuka Perkov #define CONFIG_EXTRA_ENV_SETTINGS \
589b914727SLuka Perkov 	"console=console=ttyS0,115200\0"	\
599b914727SLuka Perkov 	"mtdids=nand0=orion_nand\0"		\
6043ede0bcSTom Rini 	"mtdparts="CONFIG_MTDPARTS_DEFAULT	\
619b914727SLuka Perkov 	"kernel=/boot/uImage\0"			\
629b914727SLuka Perkov 	"bootargs_root=noinitrd ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs\0"
639b914727SLuka Perkov 
649b914727SLuka Perkov /*
659b914727SLuka Perkov  * Ethernet driver configuration
669b914727SLuka Perkov  */
679b914727SLuka Perkov #ifdef CONFIG_CMD_NET
689b914727SLuka Perkov #define CONFIG_MVGBE_PORTS	{1, 0}	/* enable port 0 only */
699b914727SLuka Perkov #define CONFIG_PHY_BASE_ADR	11
709b914727SLuka Perkov #undef CONFIG_RESET_PHY_R
719b914727SLuka Perkov #endif /* CONFIG_CMD_NET */
729b914727SLuka Perkov 
739b914727SLuka Perkov /*
749b914727SLuka Perkov  * File system
759b914727SLuka Perkov  */
769b914727SLuka Perkov 
779b914727SLuka Perkov #endif /* _CONFIG_ICONNECT_H */
78