xref: /rk3399_rockchip-uboot/include/configs/sandbox.h (revision e40753b207029dfc9e0a9e2ec4545fbd32e0a8cc)
1c861fbf7SSimon Glass /*
2c861fbf7SSimon Glass  * Copyright (c) 2011 The Chromium OS Authors.
3c861fbf7SSimon Glass  * See file CREDITS for list of people who contributed to this
4c861fbf7SSimon Glass  * project.
5c861fbf7SSimon Glass  *
6c861fbf7SSimon Glass  * This program is free software; you can redistribute it and/or
7c861fbf7SSimon Glass  * modify it under the terms of the GNU General Public License as
8c861fbf7SSimon Glass  * published by the Free Software Foundation; either version 2 of
9c861fbf7SSimon Glass  * the License, or (at your option) any later version.
10c861fbf7SSimon Glass  *
11c861fbf7SSimon Glass  * This program is distributed in the hope that it will be useful,
12c861fbf7SSimon Glass  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13c861fbf7SSimon Glass  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14c861fbf7SSimon Glass  * GNU General Public License for more details.
15c861fbf7SSimon Glass  *
16c861fbf7SSimon Glass  * You should have received a copy of the GNU General Public License
17c861fbf7SSimon Glass  * along with this program; if not, write to the Free Software
18c861fbf7SSimon Glass  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
19c861fbf7SSimon Glass  * MA 02111-1307 USA
20c861fbf7SSimon Glass  */
21c861fbf7SSimon Glass 
22c861fbf7SSimon Glass #ifndef __CONFIG_H
23c861fbf7SSimon Glass #define __CONFIG_H
24c861fbf7SSimon Glass 
25c861fbf7SSimon Glass #define CONFIG_NR_DRAM_BANKS	1
26c861fbf7SSimon Glass #define CONFIG_DRAM_SIZE	(128 << 20)
27c861fbf7SSimon Glass 
28c861fbf7SSimon Glass /* Number of bits in a C 'long' on this architecture */
29c861fbf7SSimon Glass #define CONFIG_SANDBOX_BITS_PER_LONG	64
30c861fbf7SSimon Glass 
317b06b66cSSimon Glass #define CONFIG_OF_CONTROL
327b06b66cSSimon Glass #define CONFIG_OF_LIBFDT
337b06b66cSSimon Glass #define CONFIG_LMB
347b06b66cSSimon Glass 
3510fc1218SSimon Glass #define CONFIG_FS_FAT
3610fc1218SSimon Glass #define CONFIG_FS_EXT4
3710fc1218SSimon Glass #define CONFIG_EXT4_WRITE
3810fc1218SSimon Glass #define CONFIG_CMD_FAT
3910fc1218SSimon Glass #define CONFIG_CMD_EXT4
4010fc1218SSimon Glass #define CONFIG_CMD_EXT4_WRITE
4110fc1218SSimon Glass 
427b06b66cSSimon Glass #define CONFIG_SYS_VSNPRINTF
437b06b66cSSimon Glass 
44eef448e1SSimon Glass #define CONFIG_CMD_GPIO
45eef448e1SSimon Glass #define CONFIG_SANDBOX_GPIO
46eef448e1SSimon Glass #define CONFIG_SANDBOX_GPIO_COUNT	20
47eef448e1SSimon Glass 
48c861fbf7SSimon Glass /*
49c861fbf7SSimon Glass  * Size of malloc() pool, although we don't actually use this yet.
50c861fbf7SSimon Glass  */
51c861fbf7SSimon Glass #define CONFIG_SYS_MALLOC_LEN		(4 << 20)	/* 4MB  */
52c861fbf7SSimon Glass 
53c861fbf7SSimon Glass #define CONFIG_SYS_PROMPT		"=>"	/* Command Prompt */
54c861fbf7SSimon Glass #define CONFIG_SYS_HUSH_PARSER
55c861fbf7SSimon Glass #define CONFIG_SYS_LONGHELP			/* #undef to save memory */
56c861fbf7SSimon Glass #define CONFIG_SYS_CBSIZE		1024	/* Console I/O Buffer Size */
57c861fbf7SSimon Glass 
58c861fbf7SSimon Glass /* Print Buffer Size */
59c861fbf7SSimon Glass #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
60c861fbf7SSimon Glass #define CONFIG_SYS_MAXARGS	16
61c861fbf7SSimon Glass 
62c861fbf7SSimon Glass /* turn on command-line edit/c/auto */
63c861fbf7SSimon Glass #define CONFIG_CMDLINE_EDITING
64c861fbf7SSimon Glass #define CONFIG_COMMAND_HISTORY
65ed0fc4b1SMike Frysinger #define CONFIG_AUTO_COMPLETE
66c861fbf7SSimon Glass 
67c861fbf7SSimon Glass #define CONFIG_ENV_SIZE		8192
68c861fbf7SSimon Glass #define CONFIG_ENV_IS_NOWHERE
69c861fbf7SSimon Glass 
70c861fbf7SSimon Glass #define CONFIG_SYS_HZ			1000
71c861fbf7SSimon Glass 
72c861fbf7SSimon Glass /* Memory things - we don't really want a memory test */
73ecdbf419SSimon Glass #define CONFIG_SYS_LOAD_ADDR		0x00000000
74ecdbf419SSimon Glass #define CONFIG_SYS_MEMTEST_START	0x00100000
75c861fbf7SSimon Glass #define CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_MEMTEST_START + 0x1000)
76c861fbf7SSimon Glass #define CONFIG_PHYS_64BIT
77c861fbf7SSimon Glass 
78c861fbf7SSimon Glass /* Size of our emulated memory */
79c861fbf7SSimon Glass #define CONFIG_SYS_SDRAM_SIZE		(128 << 20)
80c861fbf7SSimon Glass 
81c861fbf7SSimon Glass #define CONFIG_BAUDRATE			115200
82c861fbf7SSimon Glass #define CONFIG_SYS_BAUDRATE_TABLE	{4800, 9600, 19200, 38400, 57600,\
83c861fbf7SSimon Glass 					115200}
84c861fbf7SSimon Glass #define CONFIG_SANDBOX_SERIAL
85c861fbf7SSimon Glass 
86c861fbf7SSimon Glass #define CONFIG_SYS_NO_FLASH
87c861fbf7SSimon Glass 
88c861fbf7SSimon Glass /* include default commands */
89c861fbf7SSimon Glass #include <config_cmd_default.h>
90c861fbf7SSimon Glass 
91c861fbf7SSimon Glass /* We don't have networking support yet */
92c861fbf7SSimon Glass #undef CONFIG_CMD_NET
93c861fbf7SSimon Glass #undef CONFIG_CMD_NFS
94c861fbf7SSimon Glass 
95ecdbf419SSimon Glass #define CONFIG_CMD_HASH
96ecdbf419SSimon Glass #define CONFIG_HASH_VERIFY
97ecdbf419SSimon Glass #define CONFIG_SHA1
98ecdbf419SSimon Glass #define CONFIG_SHA256
99ecdbf419SSimon Glass 
100*e40753b2SSimon Glass #define CONFIG_CMD_SANDBOX
101*e40753b2SSimon Glass 
102c861fbf7SSimon Glass #define CONFIG_BOOTARGS ""
103c861fbf7SSimon Glass 
104c861fbf7SSimon Glass #define CONFIG_EXTRA_ENV_SETTINGS	"stdin=serial\0" \
105c861fbf7SSimon Glass 					"stdout=serial\0" \
106c861fbf7SSimon Glass 					"stderr=serial\0"
107c861fbf7SSimon Glass 
108c861fbf7SSimon Glass #endif
109