blob: 633941b7dd5655bf1f9334d6d0d7c7b11968aa0b [file] [log] [blame]
Luka Perkov9f497062012-09-05 08:01:25 +00001/*
2 * (C) Copyright 2009-2012
3 * Wojciech Dubowik <wojciech.dubowik@neratec.com>
Luka Perkove91505d2012-12-03 03:24:15 +00004 * Luka Perkov <luka@openwrt.org>
Luka Perkov9f497062012-09-05 08:01:25 +00005 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02006 * SPDX-License-Identifier: GPL-2.0+
Luka Perkov9f497062012-09-05 08:01:25 +00007 */
8
9#ifndef _CONFIG_ICONNECT_H
10#define _CONFIG_ICONNECT_H
11
12/*
Luka Perkov9f497062012-09-05 08:01:25 +000013 * High level configuration options
14 */
15#define CONFIG_FEROCEON_88FR131 /* CPU Core subversion */
Luka Perkov9f497062012-09-05 08:01:25 +000016#define CONFIG_KW88F6281 /* SOC Name */
17#define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
18
19/*
Tom Rini48157342017-01-25 20:42:35 -050020 * Machine type
21 */
22#define CONFIG_MACH_TYPE MACH_TYPE_ICONNECT
23
24/*
Luka Perkov9f497062012-09-05 08:01:25 +000025 * Compression configuration
26 */
27#define CONFIG_BZIP2
28#define CONFIG_LZMA
29#define CONFIG_LZO
30
31/*
32 * Commands configuration
33 */
34#define CONFIG_SYS_NO_FLASH /* declare no flash (NOR/SPI) */
35#define CONFIG_SYS_MVFS
Luka Perkov9f497062012-09-05 08:01:25 +000036#define CONFIG_CMD_ENV
Luka Perkov9f497062012-09-05 08:01:25 +000037#define CONFIG_CMD_NAND
Luka Perkov9f497062012-09-05 08:01:25 +000038
39/*
40 * mv-common.h should be defined after CMD configs since it used them
41 * to enable certain macros
42 */
43#include "mv-common.h"
44
Luka Perkov9f497062012-09-05 08:01:25 +000045/*
46 * Environment variables configuration
47 */
48#ifdef CONFIG_CMD_NAND
49#define CONFIG_ENV_IS_IN_NAND
50#define CONFIG_ENV_SECT_SIZE 0x20000
51#else
52#define CONFIG_ENV_IS_NOWHERE
53#endif
54#define CONFIG_ENV_SIZE 0x20000
55#define CONFIG_ENV_OFFSET 0x80000
56
57/*
58 * Default environment variables
59 */
60#define CONFIG_BOOTCOMMAND \
61 "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
62 "ubi part rootfs; " \
Joe Hershberger108458a2012-11-01 16:54:18 +000063 "ubifsmount ubi:rootfs; " \
Luka Perkov9f497062012-09-05 08:01:25 +000064 "ubifsload 0x800000 ${kernel}; " \
65 "bootm 0x800000"
66
67#define CONFIG_MTDPARTS \
68 "mtdparts=orion_nand:" \
69 "0x80000@0x0(uboot)," \
70 "0x20000@0x80000(uboot_env)," \
71 "-@0xa0000(rootfs)\0"
72
73#define CONFIG_EXTRA_ENV_SETTINGS \
74 "console=console=ttyS0,115200\0" \
75 "mtdids=nand0=orion_nand\0" \
76 "mtdparts="CONFIG_MTDPARTS \
77 "kernel=/boot/uImage\0" \
78 "bootargs_root=noinitrd ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs\0"
79
80/*
81 * Ethernet driver configuration
82 */
83#ifdef CONFIG_CMD_NET
84#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
85#define CONFIG_PHY_BASE_ADR 11
86#undef CONFIG_RESET_PHY_R
87#endif /* CONFIG_CMD_NET */
88
89/*
90 * File system
91 */
Luka Perkov9f497062012-09-05 08:01:25 +000092#define CONFIG_CMD_JFFS2
Luka Perkov9f497062012-09-05 08:01:25 +000093#define CONFIG_CMD_UBIFS
94#define CONFIG_RBTREE
95#define CONFIG_MTD_DEVICE
96#define CONFIG_MTD_PARTITIONS
97#define CONFIG_CMD_MTDPARTS
98
99#endif /* _CONFIG_ICONNECT_H */