blob: 36f6e95cedb9488a9ac8929f43ef9fc47db32a03 [file] [log] [blame]
David Purdy1d0f5fa2012-03-27 16:01:09 +00001/*
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 *
Wolfgang Denk1a459662013-07-08 09:37:19 +020010 * SPDX-License-Identifier: GPL-2.0+
David Purdy1d0f5fa2012-03-27 16:01:09 +000011 */
12
13#ifndef _CONFIG_POGO_E02_H
14#define _CONFIG_POGO_E02_H
15
16/*
17 * Machine type definition and ID
18 */
David Purdy1d0f5fa2012-03-27 16:01:09 +000019#define CONFIG_MACH_TYPE MACH_TYPE_POGO_E02
David Purdy1d0f5fa2012-03-27 16:01:09 +000020
21/*
22 * High Level Configuration Options (easy to change)
23 */
24#define CONFIG_FEROCEON_88FR131 /* CPU Core subversion */
David Purdy1d0f5fa2012-03-27 16:01:09 +000025#define CONFIG_KW88F6281 /* SOC Name */
26#define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
27
28/*
29 * Commands configuration
30 */
David Purdy1d0f5fa2012-03-27 16:01:09 +000031#define CONFIG_SYS_MVFS
David Purdy1d0f5fa2012-03-27 16:01:09 +000032#define CONFIG_CMD_ENV
David Purdy1d0f5fa2012-03-27 16:01:09 +000033#define CONFIG_CMD_NAND
David Purdy1d0f5fa2012-03-27 16:01:09 +000034
35/*
36 * mv-common.h should be defined after CMD configs since it used them
37 * to enable certain macros
38 */
39#include "mv-common.h"
40
David Purdy1d0f5fa2012-03-27 16:01:09 +000041/*
42 * Environment variables configurations
43 */
44#ifdef CONFIG_CMD_NAND
45#define CONFIG_ENV_IS_IN_NAND
46#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
47#else
48#define CONFIG_ENV_IS_NOWHERE
49#endif
50
51#define CONFIG_ENV_SIZE 0x20000 /* 128k */
52#define CONFIG_ENV_OFFSET 0x60000 /* env starts here */
53
54/*
55 * Default environment variables
56 */
57#define CONFIG_BOOTCOMMAND \
58 "setenv bootargs $(bootargs_console); " \
59 "run bootcmd_usb; " \
60 "bootm 0x00800000 0x01100000"
61
62#define CONFIG_EXTRA_ENV_SETTINGS \
63 "mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage)," \
64 "32M(rootfs),-(data)\0"\
65 "mtdids=nand0=orion_nand\0"\
66 "bootargs_console=console=ttyS0,115200\0" \
67 "bootcmd_usb=usb start; ext2load usb 0:1 0x00800000 /uImage; " \
68 "ext2load usb 0:1 0x01100000 /uInitrd\0"
69
70/*
71 * Ethernet Driver configuration
72 */
73#ifdef CONFIG_CMD_NET
74#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
75#define CONFIG_PHY_BASE_ADR 0
76#endif /* CONFIG_CMD_NET */
77
78/*
79 * File system
80 */
David Purdy1d0f5fa2012-03-27 16:01:09 +000081#define CONFIG_CMD_JFFS2
David Purdy1d0f5fa2012-03-27 16:01:09 +000082#define CONFIG_CMD_UBIFS
83#define CONFIG_RBTREE
84#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */
85#define CONFIG_MTD_PARTITIONS
86#define CONFIG_CMD_MTDPARTS
87#define CONFIG_LZO
88
89#endif /* _CONFIG_POGO_E02_H */