xref: /rk3399_rockchip-uboot/include/configs/sandbox.h (revision c861fbf74784fdd27a5a73dec1f5c37e1bb7297e)
1*c861fbf7SSimon Glass /*
2*c861fbf7SSimon Glass  * Copyright (c) 2011 The Chromium OS Authors.
3*c861fbf7SSimon Glass  * See file CREDITS for list of people who contributed to this
4*c861fbf7SSimon Glass  * project.
5*c861fbf7SSimon Glass  *
6*c861fbf7SSimon Glass  * This program is free software; you can redistribute it and/or
7*c861fbf7SSimon Glass  * modify it under the terms of the GNU General Public License as
8*c861fbf7SSimon Glass  * published by the Free Software Foundation; either version 2 of
9*c861fbf7SSimon Glass  * the License, or (at your option) any later version.
10*c861fbf7SSimon Glass  *
11*c861fbf7SSimon Glass  * This program is distributed in the hope that it will be useful,
12*c861fbf7SSimon Glass  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13*c861fbf7SSimon Glass  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14*c861fbf7SSimon Glass  * GNU General Public License for more details.
15*c861fbf7SSimon Glass  *
16*c861fbf7SSimon Glass  * You should have received a copy of the GNU General Public License
17*c861fbf7SSimon Glass  * along with this program; if not, write to the Free Software
18*c861fbf7SSimon Glass  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
19*c861fbf7SSimon Glass  * MA 02111-1307 USA
20*c861fbf7SSimon Glass  */
21*c861fbf7SSimon Glass 
22*c861fbf7SSimon Glass #ifndef __CONFIG_H
23*c861fbf7SSimon Glass #define __CONFIG_H
24*c861fbf7SSimon Glass 
25*c861fbf7SSimon Glass #define CONFIG_NR_DRAM_BANKS	1
26*c861fbf7SSimon Glass #define CONFIG_DRAM_SIZE	(128 << 20)
27*c861fbf7SSimon Glass 
28*c861fbf7SSimon Glass /* Number of bits in a C 'long' on this architecture */
29*c861fbf7SSimon Glass #define CONFIG_SANDBOX_BITS_PER_LONG	64
30*c861fbf7SSimon Glass 
31*c861fbf7SSimon Glass /*
32*c861fbf7SSimon Glass  * Size of malloc() pool, although we don't actually use this yet.
33*c861fbf7SSimon Glass  */
34*c861fbf7SSimon Glass #define CONFIG_SYS_MALLOC_LEN		(4 << 20)	/* 4MB  */
35*c861fbf7SSimon Glass 
36*c861fbf7SSimon Glass #define CONFIG_SYS_PROMPT		"=>"	/* Command Prompt */
37*c861fbf7SSimon Glass #define CONFIG_SYS_HUSH_PARSER
38*c861fbf7SSimon Glass #define CONFIG_SYS_PROMPT_HUSH_PS2	"> "
39*c861fbf7SSimon Glass #define CONFIG_SYS_LONGHELP			/* #undef to save memory */
40*c861fbf7SSimon Glass #define CONFIG_SYS_CBSIZE		1024	/* Console I/O Buffer Size */
41*c861fbf7SSimon Glass 
42*c861fbf7SSimon Glass /* Print Buffer Size */
43*c861fbf7SSimon Glass #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
44*c861fbf7SSimon Glass #define CONFIG_SYS_MAXARGS	16
45*c861fbf7SSimon Glass 
46*c861fbf7SSimon Glass /* turn on command-line edit/c/auto */
47*c861fbf7SSimon Glass #define CONFIG_CMDLINE_EDITING
48*c861fbf7SSimon Glass #define CONFIG_COMMAND_HISTORY
49*c861fbf7SSimon Glass #define CONFIG_AUTOCOMPLETE
50*c861fbf7SSimon Glass 
51*c861fbf7SSimon Glass #define CONFIG_ENV_SIZE		8192
52*c861fbf7SSimon Glass #define CONFIG_ENV_IS_NOWHERE
53*c861fbf7SSimon Glass 
54*c861fbf7SSimon Glass #define CONFIG_SYS_HZ			1000
55*c861fbf7SSimon Glass 
56*c861fbf7SSimon Glass /* Memory things - we don't really want a memory test */
57*c861fbf7SSimon Glass #define CONFIG_SYS_LOAD_ADDR		0x10000000
58*c861fbf7SSimon Glass #define CONFIG_SYS_MEMTEST_START	0x10000000
59*c861fbf7SSimon Glass #define CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_MEMTEST_START + 0x1000)
60*c861fbf7SSimon Glass #define CONFIG_PHYS_64BIT
61*c861fbf7SSimon Glass 
62*c861fbf7SSimon Glass /* Size of our emulated memory */
63*c861fbf7SSimon Glass #define CONFIG_SYS_SDRAM_SIZE		(128 << 20)
64*c861fbf7SSimon Glass 
65*c861fbf7SSimon Glass #define CONFIG_BAUDRATE			115200
66*c861fbf7SSimon Glass #define CONFIG_SYS_BAUDRATE_TABLE	{4800, 9600, 19200, 38400, 57600,\
67*c861fbf7SSimon Glass 					115200}
68*c861fbf7SSimon Glass #define CONFIG_SANDBOX_SERIAL
69*c861fbf7SSimon Glass 
70*c861fbf7SSimon Glass #define CONFIG_SYS_NO_FLASH
71*c861fbf7SSimon Glass 
72*c861fbf7SSimon Glass /* include default commands */
73*c861fbf7SSimon Glass #include <config_cmd_default.h>
74*c861fbf7SSimon Glass 
75*c861fbf7SSimon Glass /* We don't have networking support yet */
76*c861fbf7SSimon Glass #undef CONFIG_CMD_NET
77*c861fbf7SSimon Glass #undef CONFIG_CMD_NFS
78*c861fbf7SSimon Glass 
79*c861fbf7SSimon Glass #define CONFIG_BOOTARGS ""
80*c861fbf7SSimon Glass 
81*c861fbf7SSimon Glass #define CONFIG_EXTRA_ENV_SETTINGS	"stdin=serial\0" \
82*c861fbf7SSimon Glass 					"stdout=serial\0" \
83*c861fbf7SSimon Glass 					"stderr=serial\0"
84*c861fbf7SSimon Glass 
85*c861fbf7SSimon Glass #endif
86