blob: 0416baef452ab5a2cedeceb2db86f64f4a0f5818 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
David Purdy415d07e2012-03-27 16:01:09 +00002/*
3 * Copyright (C) 2012
4 * David Purdy <david.c.purdy@gmail.com>
5 *
6 * Based on Kirkwood support:
7 * (C) Copyright 2009
8 * Marvell Semiconductor <www.marvell.com>
9 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
David Purdy415d07e2012-03-27 16:01:09 +000010 */
11
12#ifndef _CONFIG_POGO_E02_H
13#define _CONFIG_POGO_E02_H
14
15/*
16 * Machine type definition and ID
17 */
David Purdy415d07e2012-03-27 16:01:09 +000018#define CONFIG_MACH_TYPE MACH_TYPE_POGO_E02
David Purdy415d07e2012-03-27 16:01:09 +000019
20/*
21 * High Level Configuration Options (easy to change)
22 */
23#define CONFIG_FEROCEON_88FR131 /* CPU Core subversion */
David Purdy415d07e2012-03-27 16:01:09 +000024#define CONFIG_KW88F6281 /* SOC Name */
25#define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
26
27/*
28 * Commands configuration
29 */
David Purdy415d07e2012-03-27 16:01:09 +000030#define CONFIG_SYS_MVFS
David Purdy415d07e2012-03-27 16:01:09 +000031
32/*
33 * mv-common.h should be defined after CMD configs since it used them
34 * to enable certain macros
35 */
36#include "mv-common.h"
37
David Purdy415d07e2012-03-27 16:01:09 +000038/*
39 * Environment variables configurations
40 */
41#ifdef CONFIG_CMD_NAND
David Purdy415d07e2012-03-27 16:01:09 +000042#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
David Purdy415d07e2012-03-27 16:01:09 +000043#endif
44
45#define CONFIG_ENV_SIZE 0x20000 /* 128k */
46#define CONFIG_ENV_OFFSET 0x60000 /* env starts here */
47
48/*
49 * Default environment variables
50 */
51#define CONFIG_BOOTCOMMAND \
52 "setenv bootargs $(bootargs_console); " \
53 "run bootcmd_usb; " \
54 "bootm 0x00800000 0x01100000"
55
56#define CONFIG_EXTRA_ENV_SETTINGS \
57 "mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage)," \
58 "32M(rootfs),-(data)\0"\
59 "mtdids=nand0=orion_nand\0"\
60 "bootargs_console=console=ttyS0,115200\0" \
61 "bootcmd_usb=usb start; ext2load usb 0:1 0x00800000 /uImage; " \
62 "ext2load usb 0:1 0x01100000 /uInitrd\0"
63
64/*
65 * Ethernet Driver configuration
66 */
67#ifdef CONFIG_CMD_NET
68#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
69#define CONFIG_PHY_BASE_ADR 0
70#endif /* CONFIG_CMD_NET */
71
72/*
73 * File system
74 */
David Purdy415d07e2012-03-27 16:01:09 +000075#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */
76#define CONFIG_MTD_PARTITIONS
David Purdy415d07e2012-03-27 16:01:09 +000077
78#endif /* _CONFIG_POGO_E02_H */