]> git.ipfire.org Git - people/ms/u-boot.git/blame - include/configs/pogo_e02.h
kconfig: introduce kconfig for UBI
[people/ms/u-boot.git] / include / configs / pogo_e02.h
CommitLineData
1d0f5fa1
DP
1/*
2 * Copyright (C) 2012
3 * David Purdy <david.c.purdy@gmail.com>
4 *
5 * Based on Kirkwood support:
6 * (C) Copyright 2009
7 * Marvell Semiconductor <www.marvell.com>
8 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
9 *
1a459660 10 * SPDX-License-Identifier: GPL-2.0+
1d0f5fa1
DP
11 */
12
13#ifndef _CONFIG_POGO_E02_H
14#define _CONFIG_POGO_E02_H
15
16/*
17 * Machine type definition and ID
18 */
19#define MACH_TYPE_POGO_E02 3542
20#define CONFIG_MACH_TYPE MACH_TYPE_POGO_E02
1d0f5fa1
DP
21
22/*
23 * High Level Configuration Options (easy to change)
24 */
25#define CONFIG_FEROCEON_88FR131 /* CPU Core subversion */
1d0f5fa1
DP
26#define CONFIG_KW88F6281 /* SOC Name */
27#define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
28
29/*
30 * Commands configuration
31 */
32#define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
33#define CONFIG_SYS_MVFS
1d0f5fa1 34#define CONFIG_CMD_ENV
1d0f5fa1 35#define CONFIG_CMD_NAND
1d0f5fa1
DP
36
37/*
38 * mv-common.h should be defined after CMD configs since it used them
39 * to enable certain macros
40 */
41#include "mv-common.h"
42
1d0f5fa1
DP
43/*
44 * Environment variables configurations
45 */
46#ifdef CONFIG_CMD_NAND
47#define CONFIG_ENV_IS_IN_NAND
48#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
49#else
50#define CONFIG_ENV_IS_NOWHERE
51#endif
52
53#define CONFIG_ENV_SIZE 0x20000 /* 128k */
54#define CONFIG_ENV_OFFSET 0x60000 /* env starts here */
55
56/*
57 * Default environment variables
58 */
59#define CONFIG_BOOTCOMMAND \
60 "setenv bootargs $(bootargs_console); " \
61 "run bootcmd_usb; " \
62 "bootm 0x00800000 0x01100000"
63
64#define CONFIG_EXTRA_ENV_SETTINGS \
65 "mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage)," \
66 "32M(rootfs),-(data)\0"\
67 "mtdids=nand0=orion_nand\0"\
68 "bootargs_console=console=ttyS0,115200\0" \
69 "bootcmd_usb=usb start; ext2load usb 0:1 0x00800000 /uImage; " \
70 "ext2load usb 0:1 0x01100000 /uInitrd\0"
71
72/*
73 * Ethernet Driver configuration
74 */
75#ifdef CONFIG_CMD_NET
76#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
77#define CONFIG_PHY_BASE_ADR 0
78#endif /* CONFIG_CMD_NET */
79
80/*
81 * File system
82 */
1d0f5fa1 83#define CONFIG_CMD_JFFS2
1d0f5fa1
DP
84#define CONFIG_CMD_UBIFS
85#define CONFIG_RBTREE
86#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */
87#define CONFIG_MTD_PARTITIONS
88#define CONFIG_CMD_MTDPARTS
89#define CONFIG_LZO
90
91#endif /* _CONFIG_POGO_E02_H */