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