blob: 8cf3ad847907e1a98e5fd120c021f980fd7c1d0d [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
Luka Perkov604a0dd2014-11-30 02:41:19 +010016#define CONFIG_SYS_GENERIC_BOARD
17
David Purdy1d0f5fa2012-03-27 16:01:09 +000018/*
19 * Machine type definition and ID
20 */
21#define MACH_TYPE_POGO_E02 3542
22#define CONFIG_MACH_TYPE MACH_TYPE_POGO_E02
23#define CONFIG_IDENT_STRING "\nPogo E02"
24
25/*
26 * High Level Configuration Options (easy to change)
27 */
28#define CONFIG_FEROCEON_88FR131 /* CPU Core subversion */
David Purdy1d0f5fa2012-03-27 16:01:09 +000029#define CONFIG_KW88F6281 /* SOC Name */
30#define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
31
32/*
33 * Commands configuration
34 */
35#define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
36#define CONFIG_SYS_MVFS
David Purdy1d0f5fa2012-03-27 16:01:09 +000037#define CONFIG_CMD_DHCP
38#define CONFIG_CMD_ENV
39#define CONFIG_CMD_MII
40#define CONFIG_CMD_NAND
41#define CONFIG_CMD_PING
42#define CONFIG_CMD_USB
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
David Purdy1d0f5fa2012-03-27 16:01:09 +000050/*
51 * Environment variables configurations
52 */
53#ifdef CONFIG_CMD_NAND
54#define CONFIG_ENV_IS_IN_NAND
55#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
56#else
57#define CONFIG_ENV_IS_NOWHERE
58#endif
59
60#define CONFIG_ENV_SIZE 0x20000 /* 128k */
61#define CONFIG_ENV_OFFSET 0x60000 /* env starts here */
62
63/*
64 * Default environment variables
65 */
66#define CONFIG_BOOTCOMMAND \
67 "setenv bootargs $(bootargs_console); " \
68 "run bootcmd_usb; " \
69 "bootm 0x00800000 0x01100000"
70
71#define CONFIG_EXTRA_ENV_SETTINGS \
72 "mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage)," \
73 "32M(rootfs),-(data)\0"\
74 "mtdids=nand0=orion_nand\0"\
75 "bootargs_console=console=ttyS0,115200\0" \
76 "bootcmd_usb=usb start; ext2load usb 0:1 0x00800000 /uImage; " \
77 "ext2load usb 0:1 0x01100000 /uInitrd\0"
78
79/*
80 * Ethernet Driver configuration
81 */
82#ifdef CONFIG_CMD_NET
83#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
84#define CONFIG_PHY_BASE_ADR 0
85#endif /* CONFIG_CMD_NET */
86
87/*
88 * File system
89 */
90#define CONFIG_CMD_EXT2
91#define CONFIG_CMD_FAT
92#define CONFIG_CMD_JFFS2
93#define CONFIG_CMD_UBI
94#define CONFIG_CMD_UBIFS
95#define CONFIG_RBTREE
96#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */
97#define CONFIG_MTD_PARTITIONS
98#define CONFIG_CMD_MTDPARTS
99#define CONFIG_LZO
100
101#endif /* _CONFIG_POGO_E02_H */