xref: /rk3399_rockchip-uboot/include/configs/10m50_devboard.h (revision 577968e5669858e1d5bcb651ab28d60d20166252)
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_BOARDINFO_LATE
165c0f9822SThomas Chou 
175c0f9822SThomas Chou /*
185c0f9822SThomas Chou  * SERIAL
195c0f9822SThomas Chou  */
202f3a5feeSThomas Chou #define CONFIG_SYS_NS16550_MEM32
215c0f9822SThomas Chou 
225c0f9822SThomas Chou /*
235c0f9822SThomas Chou  * Flash
245c0f9822SThomas Chou  */
255c0f9822SThomas Chou #define CONFIG_SYS_MAX_FLASH_BANKS	1
265c0f9822SThomas Chou #define CONFIG_SYS_MAX_FLASH_SECT	1024
275c0f9822SThomas Chou 
285c0f9822SThomas Chou /*
295c0f9822SThomas Chou  * NET options
305c0f9822SThomas Chou  */
315c0f9822SThomas Chou #define CONFIG_SYS_RX_ETH_BUFFER	0
325c0f9822SThomas Chou #define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
335c0f9822SThomas Chou #define CONFIG_PHY_MARVELL
345c0f9822SThomas Chou 
355c0f9822SThomas Chou /*
365c0f9822SThomas Chou  * BOOTP options
375c0f9822SThomas Chou  */
385c0f9822SThomas Chou #define CONFIG_BOOTP_BOOTFILESIZE
395c0f9822SThomas Chou #define CONFIG_BOOTP_BOOTPATH
405c0f9822SThomas Chou #define CONFIG_BOOTP_GATEWAY
415c0f9822SThomas Chou #define CONFIG_BOOTP_HOSTNAME
425c0f9822SThomas Chou 
435c0f9822SThomas Chou /*
445c0f9822SThomas Chou  * FDT options
455c0f9822SThomas Chou  */
465c0f9822SThomas Chou #define CONFIG_LMB
475c0f9822SThomas Chou 
485c0f9822SThomas Chou /*
495c0f9822SThomas Chou  * MEMORY ORGANIZATION
505c0f9822SThomas Chou  * -Monitor at top of sdram.
515c0f9822SThomas Chou  * -The heap is placed below the monitor
525c0f9822SThomas Chou  * -The stack is placed below the heap (&grows down).
535c0f9822SThomas Chou  */
545c0f9822SThomas Chou #define CONFIG_SYS_SDRAM_BASE		0xc8000000
555c0f9822SThomas Chou #define CONFIG_SYS_SDRAM_SIZE		0x08000000
565c0f9822SThomas Chou #define CONFIG_NR_DRAM_BANKS		1
575c0f9822SThomas Chou #define CONFIG_MONITOR_IS_IN_RAM
587ef051ecSMarek Vasut #define CONFIG_SYS_MONITOR_LEN		0x80000	/* Reserve 512k */
595c0f9822SThomas Chou #define CONFIG_SYS_MONITOR_BASE	(CONFIG_SYS_SDRAM_BASE + \
605c0f9822SThomas Chou 					 CONFIG_SYS_SDRAM_SIZE - \
615c0f9822SThomas Chou 					 CONFIG_SYS_MONITOR_LEN)
625c0f9822SThomas Chou #define CONFIG_SYS_MALLOC_LEN		0x20000
635c0f9822SThomas Chou 
645c0f9822SThomas Chou /*
652aee06a2SMarek Vasut  * ENVIRONMENT -- Put environment in sector CONFIG_SYS_MONITOR_LEN above
662aee06a2SMarek Vasut  * CONFIG_SYS_RESET_ADDR, since we assume the monitor is stored at the
672aee06a2SMarek Vasut  * reset address, no? This will keep the environment in user region
682aee06a2SMarek Vasut  * of flash. NOTE: the monitor length must be multiple of sector size
692aee06a2SMarek Vasut  * (which is common practice).
702aee06a2SMarek Vasut  */
712aee06a2SMarek Vasut 
722aee06a2SMarek Vasut #define CONFIG_ENV_SIZE			0x10000	/* 64k, 1 sector */
732aee06a2SMarek Vasut #define CONFIG_ENV_OVERWRITE		/* Serial change Ok	*/
742aee06a2SMarek Vasut #define CONFIG_ENV_ADDR			(0xf4000000 + CONFIG_SYS_MONITOR_LEN)
752aee06a2SMarek Vasut 
762aee06a2SMarek Vasut /*
775c0f9822SThomas Chou  * MISC
785c0f9822SThomas Chou  */
795c0f9822SThomas Chou #define CONFIG_SYS_LONGHELP		/* Provide extended help */
80bc3abe14SMarek Vasut #define CONFIG_SYS_LOAD_ADDR		0xcc000000	/* Half of RAM */
81bc3abe14SMarek Vasut #define CONFIG_LOADADDR			CONFIG_SYS_LOAD_ADDR
825c0f9822SThomas Chou #define CONFIG_SYS_MEMTEST_START	CONFIG_SYS_SDRAM_BASE
835c0f9822SThomas Chou #define CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_MONITOR_BASE - \
845c0f9822SThomas Chou 					 CONFIG_ENV_SIZE - \
855c0f9822SThomas Chou 					 CONFIG_SYS_MALLOC_LEN -	\
865c0f9822SThomas Chou 					 0x10000)
87*aeea8754SMarek Vasut #define CONFIG_AUTO_COMPLETE
885c0f9822SThomas Chou #define CONFIG_CMDLINE_EDITING
895c0f9822SThomas Chou 
905c0f9822SThomas Chou #endif /* __CONFIG_H */
91