xref: /openbmc/u-boot/include/configs/10m50_devboard.h (revision 86cf1c82850f7c226f23684e19616e526ffaf10f)
1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */
25c0f9822SThomas Chou /*
35c0f9822SThomas Chou  * (C) Copyright 2005, Psyent Corporation <www.psyent.com>
45c0f9822SThomas Chou  * Scott McNutt <smcnutt@psyent.com>
55c0f9822SThomas Chou  * (C) Copyright 2010, Thomas Chou <thomas@wytron.com.tw>
65c0f9822SThomas Chou  */
75c0f9822SThomas Chou 
85c0f9822SThomas Chou #ifndef __CONFIG_H
95c0f9822SThomas Chou #define __CONFIG_H
105c0f9822SThomas Chou 
115c0f9822SThomas Chou /*
125c0f9822SThomas Chou  * BOARD/CPU
135c0f9822SThomas Chou  */
145c0f9822SThomas Chou 
155c0f9822SThomas Chou /*
165c0f9822SThomas Chou  * SERIAL
175c0f9822SThomas Chou  */
182f3a5feeSThomas Chou #define CONFIG_SYS_NS16550_MEM32
195c0f9822SThomas Chou 
205c0f9822SThomas Chou /*
215c0f9822SThomas Chou  * Flash
225c0f9822SThomas Chou  */
235c0f9822SThomas Chou #define CONFIG_SYS_MAX_FLASH_BANKS	1
245c0f9822SThomas Chou #define CONFIG_SYS_MAX_FLASH_SECT	1024
255c0f9822SThomas Chou 
265c0f9822SThomas Chou /*
275c0f9822SThomas Chou  * NET options
285c0f9822SThomas Chou  */
295c0f9822SThomas Chou #define CONFIG_SYS_RX_ETH_BUFFER	0
305c0f9822SThomas Chou #define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
315c0f9822SThomas Chou 
325c0f9822SThomas Chou /*
335c0f9822SThomas Chou  * BOOTP options
345c0f9822SThomas Chou  */
355c0f9822SThomas Chou #define CONFIG_BOOTP_BOOTFILESIZE
365c0f9822SThomas Chou 
375c0f9822SThomas Chou /*
385c0f9822SThomas Chou  * FDT options
395c0f9822SThomas Chou  */
405c0f9822SThomas Chou #define CONFIG_LMB
415c0f9822SThomas Chou 
425c0f9822SThomas Chou /*
435c0f9822SThomas Chou  * MEMORY ORGANIZATION
445c0f9822SThomas Chou  * -Monitor at top of sdram.
455c0f9822SThomas Chou  * -The heap is placed below the monitor
465c0f9822SThomas Chou  * -The stack is placed below the heap (&grows down).
475c0f9822SThomas Chou  */
485c0f9822SThomas Chou #define CONFIG_SYS_SDRAM_BASE		0xc8000000
495c0f9822SThomas Chou #define CONFIG_SYS_SDRAM_SIZE		0x08000000
505c0f9822SThomas Chou #define CONFIG_MONITOR_IS_IN_RAM
517ef051ecSMarek Vasut #define CONFIG_SYS_MONITOR_LEN		0x80000	/* Reserve 512k */
525c0f9822SThomas Chou #define CONFIG_SYS_MONITOR_BASE	(CONFIG_SYS_SDRAM_BASE + \
535c0f9822SThomas Chou 					 CONFIG_SYS_SDRAM_SIZE - \
545c0f9822SThomas Chou 					 CONFIG_SYS_MONITOR_LEN)
555c0f9822SThomas Chou #define CONFIG_SYS_MALLOC_LEN		0x20000
565c0f9822SThomas Chou 
575c0f9822SThomas Chou /*
582aee06a2SMarek Vasut  * ENVIRONMENT -- Put environment in sector CONFIG_SYS_MONITOR_LEN above
592aee06a2SMarek Vasut  * CONFIG_SYS_RESET_ADDR, since we assume the monitor is stored at the
602aee06a2SMarek Vasut  * reset address, no? This will keep the environment in user region
612aee06a2SMarek Vasut  * of flash. NOTE: the monitor length must be multiple of sector size
622aee06a2SMarek Vasut  * (which is common practice).
632aee06a2SMarek Vasut  */
642aee06a2SMarek Vasut 
652aee06a2SMarek Vasut #define CONFIG_ENV_SIZE			0x10000	/* 64k, 1 sector */
662aee06a2SMarek Vasut #define CONFIG_ENV_OVERWRITE		/* Serial change Ok	*/
672aee06a2SMarek Vasut #define CONFIG_ENV_ADDR			(0xf4000000 + CONFIG_SYS_MONITOR_LEN)
682aee06a2SMarek Vasut 
692aee06a2SMarek Vasut /*
705c0f9822SThomas Chou  * MISC
715c0f9822SThomas Chou  */
72bc3abe14SMarek Vasut #define CONFIG_SYS_LOAD_ADDR		0xcc000000	/* Half of RAM */
73bc3abe14SMarek Vasut #define CONFIG_LOADADDR			CONFIG_SYS_LOAD_ADDR
745c0f9822SThomas Chou #define CONFIG_SYS_MEMTEST_START	CONFIG_SYS_SDRAM_BASE
755c0f9822SThomas Chou #define CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_MONITOR_BASE - \
765c0f9822SThomas Chou 					 CONFIG_ENV_SIZE - \
775c0f9822SThomas Chou 					 CONFIG_SYS_MALLOC_LEN -	\
785c0f9822SThomas Chou 					 0x10000)
795c0f9822SThomas Chou 
805c0f9822SThomas Chou #endif /* __CONFIG_H */
81