xref: /rk3399_rockchip-uboot/include/configs/10m50_devboard.h (revision 2f3a5fee9e901a34263cf293d1d9072bbd69fe27)
15c0f9822SThomas Chou /*
25c0f9822SThomas Chou  * (C) Copyright 2005, Psyent Corporation <www.psyent.com>
35c0f9822SThomas Chou  * Scott McNutt <smcnutt@psyent.com>
45c0f9822SThomas Chou  * (C) Copyright 2010, Thomas Chou <thomas@wytron.com.tw>
55c0f9822SThomas Chou  *
65c0f9822SThomas Chou  * SPDX-License-Identifier:	GPL-2.0+
75c0f9822SThomas Chou  */
85c0f9822SThomas Chou 
95c0f9822SThomas Chou #ifndef __CONFIG_H
105c0f9822SThomas Chou #define __CONFIG_H
115c0f9822SThomas Chou 
125c0f9822SThomas Chou /*
135c0f9822SThomas Chou  * BOARD/CPU
145c0f9822SThomas Chou  */
155c0f9822SThomas Chou #define CONFIG_DISPLAY_CPUINFO
165c0f9822SThomas Chou #define CONFIG_DISPLAY_BOARDINFO_LATE
175c0f9822SThomas Chou 
185c0f9822SThomas Chou /*
195c0f9822SThomas Chou  * SERIAL
205c0f9822SThomas Chou  */
215c0f9822SThomas Chou #define CONFIG_BAUDRATE			115200
225c0f9822SThomas Chou #define CONFIG_SYS_CONSOLE_INFO_QUIET	/* Suppress console info */
23*2f3a5feeSThomas Chou #define CONFIG_SYS_NS16550_MEM32
245c0f9822SThomas Chou 
255c0f9822SThomas Chou /*
265c0f9822SThomas Chou  * Flash
275c0f9822SThomas Chou  */
285c0f9822SThomas Chou #define CONFIG_SYS_MAX_FLASH_BANKS	1
295c0f9822SThomas Chou #define CONFIG_SYS_MAX_FLASH_SECT	1024
305c0f9822SThomas Chou #define CONFIG_MTD_DEVICE
315c0f9822SThomas Chou 
325c0f9822SThomas Chou /*
335c0f9822SThomas Chou  * NET options
345c0f9822SThomas Chou  */
355c0f9822SThomas Chou #define CONFIG_SYS_RX_ETH_BUFFER	0
365c0f9822SThomas Chou #define CONFIG_CMD_MII
375c0f9822SThomas Chou #define CONFIG_PHY_GIGE
385c0f9822SThomas Chou #define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
395c0f9822SThomas Chou #define CONFIG_PHY_MARVELL
405c0f9822SThomas Chou 
415c0f9822SThomas Chou /*
425c0f9822SThomas Chou  * BOOTP options
435c0f9822SThomas Chou  */
445c0f9822SThomas Chou #define CONFIG_BOOTP_BOOTFILESIZE
455c0f9822SThomas Chou #define CONFIG_BOOTP_BOOTPATH
465c0f9822SThomas Chou #define CONFIG_BOOTP_GATEWAY
475c0f9822SThomas Chou #define CONFIG_BOOTP_HOSTNAME
485c0f9822SThomas Chou 
495c0f9822SThomas Chou /*
505c0f9822SThomas Chou  * FDT options
515c0f9822SThomas Chou  */
525c0f9822SThomas Chou #define CONFIG_OF_LIBFDT
535c0f9822SThomas Chou #define CONFIG_OF_BOARD_SETUP
545c0f9822SThomas Chou #define CONFIG_LMB
555c0f9822SThomas Chou 
565c0f9822SThomas Chou /*
575c0f9822SThomas Chou  * ENVIRONMENT -- Put environment in sector CONFIG_SYS_MONITOR_LEN above
585c0f9822SThomas Chou  * CONFIG_SYS_RESET_ADDR, since we assume the monitor is stored at the
595c0f9822SThomas Chou  * reset address, no? This will keep the environment in user region
605c0f9822SThomas Chou  * of flash. NOTE: the monitor length must be multiple of sector size
615c0f9822SThomas Chou  * (which is common practice).
625c0f9822SThomas Chou  */
635c0f9822SThomas Chou #define CONFIG_ENV_IS_IN_FLASH
645c0f9822SThomas Chou 
655c0f9822SThomas Chou #define CONFIG_ENV_SIZE			0x10000	/* 64k, 1 sector */
665c0f9822SThomas Chou #define CONFIG_ENV_OVERWRITE		/* Serial change Ok	*/
675c0f9822SThomas Chou #define CONFIG_ENV_ADDR			0xf4040000
685c0f9822SThomas Chou 
695c0f9822SThomas Chou /*
705c0f9822SThomas Chou  * MEMORY ORGANIZATION
715c0f9822SThomas Chou  * -Monitor at top of sdram.
725c0f9822SThomas Chou  * -The heap is placed below the monitor
735c0f9822SThomas Chou  * -The stack is placed below the heap (&grows down).
745c0f9822SThomas Chou  */
755c0f9822SThomas Chou #define CONFIG_SYS_SDRAM_BASE		0xc8000000
765c0f9822SThomas Chou #define CONFIG_SYS_SDRAM_SIZE		0x08000000
775c0f9822SThomas Chou #define CONFIG_NR_DRAM_BANKS		1
785c0f9822SThomas Chou #define CONFIG_MONITOR_IS_IN_RAM
795c0f9822SThomas Chou #define CONFIG_SYS_MONITOR_LEN		0x40000	/* Reserve 256k */
805c0f9822SThomas Chou #define CONFIG_SYS_MONITOR_BASE	(CONFIG_SYS_SDRAM_BASE + \
815c0f9822SThomas Chou 					 CONFIG_SYS_SDRAM_SIZE - \
825c0f9822SThomas Chou 					 CONFIG_SYS_MONITOR_LEN)
835c0f9822SThomas Chou #define CONFIG_SYS_MALLOC_LEN		0x20000
845c0f9822SThomas Chou 
855c0f9822SThomas Chou /*
865c0f9822SThomas Chou  * MISC
875c0f9822SThomas Chou  */
885c0f9822SThomas Chou #define CONFIG_SYS_LONGHELP		/* Provide extended help */
895c0f9822SThomas Chou #define CONFIG_SYS_CBSIZE		256	/* Console I/O buf size */
905c0f9822SThomas Chou #define CONFIG_SYS_MAXARGS		16	/* Max command args	*/
915c0f9822SThomas Chou #define CONFIG_SYS_BARGSIZE		CONFIG_SYS_CBSIZE /* Bootarg buf size */
925c0f9822SThomas Chou #define CONFIG_SYS_PBSIZE		(CONFIG_SYS_CBSIZE + \
935c0f9822SThomas Chou 					sizeof(CONFIG_SYS_PROMPT) + \
945c0f9822SThomas Chou 					 16)	/* Print buf size */
955c0f9822SThomas Chou #define CONFIG_SYS_LOAD_ADDR		CONFIG_SYS_SDRAM_BASE
965c0f9822SThomas Chou #define CONFIG_SYS_MEMTEST_START	CONFIG_SYS_SDRAM_BASE
975c0f9822SThomas Chou #define CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_MONITOR_BASE - \
985c0f9822SThomas Chou 					 CONFIG_ENV_SIZE - \
995c0f9822SThomas Chou 					 CONFIG_SYS_MALLOC_LEN -	\
1005c0f9822SThomas Chou 					 0x10000)
1015c0f9822SThomas Chou #define CONFIG_CMDLINE_EDITING
1025c0f9822SThomas Chou 
1035c0f9822SThomas Chou #endif /* __CONFIG_H */
104