xref: /openbmc/u-boot/include/configs/pogo_e02.h (revision 00a457b2)
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  *
10  * SPDX-License-Identifier:	GPL-2.0+
11  */
12 
13 #ifndef _CONFIG_POGO_E02_H
14 #define _CONFIG_POGO_E02_H
15 
16 
17 /*
18  * Machine type definition and ID
19  */
20 #define MACH_TYPE_POGO_E02		3542
21 #define CONFIG_MACH_TYPE		MACH_TYPE_POGO_E02
22 #define CONFIG_IDENT_STRING		"\nPogo E02"
23 
24 /*
25  * High Level Configuration Options (easy to change)
26  */
27 #define CONFIG_FEROCEON_88FR131		/* CPU Core subversion */
28 #define CONFIG_KW88F6281		/* SOC Name */
29 #define CONFIG_SKIP_LOWLEVEL_INIT	/* disable board lowlevel_init */
30 
31 /*
32  * Commands configuration
33  */
34 #define CONFIG_SYS_NO_FLASH		/* Declare no flash (NOR/SPI) */
35 #define CONFIG_SYS_MVFS
36 #define CONFIG_CMD_DHCP
37 #define CONFIG_CMD_ENV
38 #define CONFIG_CMD_MII
39 #define CONFIG_CMD_NAND
40 #define CONFIG_CMD_PING
41 #define CONFIG_CMD_USB
42 
43 /*
44  * mv-common.h should be defined after CMD configs since it used them
45  * to enable certain macros
46  */
47 #include "mv-common.h"
48 
49 /*
50  *  Environment variables configurations
51  */
52 #ifdef CONFIG_CMD_NAND
53 #define CONFIG_ENV_IS_IN_NAND
54 #define CONFIG_ENV_SECT_SIZE		0x20000	/* 128K */
55 #else
56 #define CONFIG_ENV_IS_NOWHERE
57 #endif
58 
59 #define CONFIG_ENV_SIZE			0x20000	/* 128k */
60 #define CONFIG_ENV_OFFSET		0x60000	/* env starts here */
61 
62 /*
63  * Default environment variables
64  */
65 #define CONFIG_BOOTCOMMAND \
66 	"setenv bootargs $(bootargs_console); " \
67 	"run bootcmd_usb; " \
68 	"bootm 0x00800000 0x01100000"
69 
70 #define CONFIG_EXTRA_ENV_SETTINGS \
71 	"mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage)," \
72 	"32M(rootfs),-(data)\0"\
73 	"mtdids=nand0=orion_nand\0"\
74 	"bootargs_console=console=ttyS0,115200\0" \
75 	"bootcmd_usb=usb start; ext2load usb 0:1 0x00800000 /uImage; " \
76 	"ext2load usb 0:1 0x01100000 /uInitrd\0"
77 
78 /*
79  * Ethernet Driver configuration
80  */
81 #ifdef CONFIG_CMD_NET
82 #define CONFIG_MVGBE_PORTS	{1, 0}	/* enable port 0 only */
83 #define CONFIG_PHY_BASE_ADR	0
84 #endif /* CONFIG_CMD_NET */
85 
86 /*
87  * File system
88  */
89 #define CONFIG_CMD_EXT2
90 #define CONFIG_CMD_FAT
91 #define CONFIG_CMD_JFFS2
92 #define CONFIG_CMD_UBI
93 #define CONFIG_CMD_UBIFS
94 #define CONFIG_RBTREE
95 #define CONFIG_MTD_DEVICE               /* needed for mtdparts commands */
96 #define CONFIG_MTD_PARTITIONS
97 #define CONFIG_CMD_MTDPARTS
98 #define CONFIG_LZO
99 
100 #endif /* _CONFIG_POGO_E02_H */
101