xref: /openbmc/u-boot/include/configs/dockstar.h (revision a83afb6b)
1 /*
2  * Copyright (C) 2010  Eric C. Cooper <ecc@cmu.edu>
3  *
4  * Based on sheevaplug.h originally written by
5  * Prafulla Wadaskar <prafulla@marvell.com>
6  * (C) Copyright 2009
7  * Marvell Semiconductor <www.marvell.com>
8  *
9  * SPDX-License-Identifier:	GPL-2.0+
10  */
11 
12 #ifndef _CONFIG_DOCKSTAR_H
13 #define _CONFIG_DOCKSTAR_H
14 
15 /*
16  * High Level Configuration Options (easy to change)
17  */
18 #define CONFIG_FEROCEON_88FR131	1	/* CPU Core subversion */
19 #define CONFIG_KW88F6281	1	/* SOC Name */
20 #define CONFIG_MACH_DOCKSTAR	/* Machine type */
21 #define CONFIG_SKIP_LOWLEVEL_INIT	/* disable board lowlevel_init */
22 
23 /*
24  * Commands configuration
25  */
26 #define CONFIG_CMD_NAND
27 /*
28  * mv-common.h should be defined after CMD configs since it used them
29  * to enable certain macros
30  */
31 #include "mv-common.h"
32 
33 /*
34  *  Environment variables configurations
35  */
36 #ifdef CONFIG_CMD_NAND
37 #define CONFIG_ENV_IS_IN_NAND		1
38 #define CONFIG_ENV_SECT_SIZE		0x20000	/* 128K */
39 #else
40 #define CONFIG_ENV_IS_NOWHERE		1	/* if env in SDRAM */
41 #endif
42 /*
43  * max 4k env size is enough, but in case of nand
44  * it has to be rounded to sector size
45  */
46 #define CONFIG_ENV_SIZE			0x20000	/* 128k */
47 #define CONFIG_ENV_ADDR			0x80000
48 #define CONFIG_ENV_OFFSET		0x80000	/* env starts here */
49 
50 /*
51  * Default environment variables
52  */
53 #define CONFIG_BOOTCOMMAND \
54 	"setenv bootargs ${console} ${mtdparts} ${bootargs_root}; "	\
55 	"ubi part root; " \
56 	"ubifsmount ubi:root; " \
57 	"ubifsload 0x800000 ${kernel}; " \
58 	"ubifsload 0x1100000 ${initrd}; " \
59 	"bootm 0x800000 0x1100000"
60 
61 #define CONFIG_MTDPARTS		"mtdparts=orion_nand:1m(uboot),-(root)\0"
62 
63 #define CONFIG_EXTRA_ENV_SETTINGS \
64 	"console=console=ttyS0,115200\0" \
65 	"mtdids=nand0=orion_nand\0" \
66 	"mtdparts="CONFIG_MTDPARTS \
67 	"kernel=/boot/uImage\0" \
68 	"initrd=/boot/uInitrd\0" \
69 	"bootargs_root=ubi.mtd=1 root=ubi0:root rootfstype=ubifs ro\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_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_DOCKSTAR_H */
90