xref: /rk3399_rockchip-uboot/include/configs/malta.h (revision baf37f06c5cc51d2b9d71a2c83d5d92de60203a9)
17a9d109bSPaul Burton /*
27a9d109bSPaul Burton  * Copyright (C) 2013 Gabor Juhos <juhosg@openwrt.org>
37a9d109bSPaul Burton  *
47a9d109bSPaul Burton  * SPDX-License-Identifier:	GPL-2.0
57a9d109bSPaul Burton  */
67a9d109bSPaul Burton 
77a9d109bSPaul Burton #ifndef _MALTA_CONFIG_H
87a9d109bSPaul Burton #define _MALTA_CONFIG_H
97a9d109bSPaul Burton 
107a9d109bSPaul Burton #include <asm/addrspace.h>
117a9d109bSPaul Burton #include <asm/malta.h>
127a9d109bSPaul Burton 
137a9d109bSPaul Burton /*
147a9d109bSPaul Burton  * System configuration
157a9d109bSPaul Burton  */
167a9d109bSPaul Burton #define CONFIG_MALTA
177a9d109bSPaul Burton 
187a9d109bSPaul Burton #define CONFIG_PCI
197a9d109bSPaul Burton #define CONFIG_PCI_GT64120
20*baf37f06SPaul Burton #define CONFIG_PCI_MSC01
217a9d109bSPaul Burton #define CONFIG_PCI_PNP
227a9d109bSPaul Burton #define CONFIG_PCNET
237a9d109bSPaul Burton 
247a9d109bSPaul Burton /*
257a9d109bSPaul Burton  * CPU Configuration
267a9d109bSPaul Burton  */
277a9d109bSPaul Burton #define CONFIG_SYS_MHZ			250	/* arbitrary value */
287a9d109bSPaul Burton #define CONFIG_SYS_MIPS_TIMER_FREQ	(CONFIG_SYS_MHZ * 1000000)
297a9d109bSPaul Burton 
307a9d109bSPaul Burton #define CONFIG_SYS_DCACHE_SIZE		16384	/* arbitrary value */
317a9d109bSPaul Burton #define CONFIG_SYS_ICACHE_SIZE		16384	/* arbitrary value */
327a9d109bSPaul Burton #define CONFIG_SYS_CACHELINE_SIZE	32	/* arbitrary value */
337a9d109bSPaul Burton 
347a9d109bSPaul Burton #define CONFIG_SWAP_IO_SPACE
357a9d109bSPaul Burton 
367a9d109bSPaul Burton /*
377a9d109bSPaul Burton  * Memory map
387a9d109bSPaul Burton  */
397a9d109bSPaul Burton #define CONFIG_SYS_TEXT_BASE		0xbfc00000 /* Rom version */
407a9d109bSPaul Burton #define CONFIG_SYS_MONITOR_BASE		CONFIG_SYS_FLASH_BASE
417a9d109bSPaul Burton 
427a9d109bSPaul Burton #define CONFIG_SYS_SDRAM_BASE		0x80000000 /* Cached addr */
437a9d109bSPaul Burton #define CONFIG_SYS_MEM_SIZE		(256 * 1024 * 1024)
447a9d109bSPaul Burton 
457a9d109bSPaul Burton #define CONFIG_SYS_INIT_SP_OFFSET	0x400000
467a9d109bSPaul Burton 
477a9d109bSPaul Burton #define CONFIG_SYS_LOAD_ADDR		0x81000000
487a9d109bSPaul Burton #define CONFIG_SYS_MEMTEST_START	0x80100000
497a9d109bSPaul Burton #define CONFIG_SYS_MEMTEST_END		0x80800000
507a9d109bSPaul Burton 
517a9d109bSPaul Burton #define CONFIG_SYS_MALLOC_LEN		(128 * 1024)
527a9d109bSPaul Burton #define CONFIG_SYS_BOOTPARAMS_LEN	(128 * 1024)
537a9d109bSPaul Burton 
547a9d109bSPaul Burton /*
557a9d109bSPaul Burton  * Console configuration
567a9d109bSPaul Burton  */
577a9d109bSPaul Burton #if defined(CONFIG_SYS_LITTLE_ENDIAN)
587a9d109bSPaul Burton #define CONFIG_SYS_PROMPT		"maltael # "
597a9d109bSPaul Burton #else
607a9d109bSPaul Burton #define CONFIG_SYS_PROMPT		"malta # "
617a9d109bSPaul Burton #endif
627a9d109bSPaul Burton 
637a9d109bSPaul Burton #define CONFIG_SYS_CBSIZE		256
647a9d109bSPaul Burton #define CONFIG_SYS_PBSIZE		(CONFIG_SYS_CBSIZE + \
657a9d109bSPaul Burton 					 sizeof(CONFIG_SYS_PROMPT) + 16)
667a9d109bSPaul Burton #define CONFIG_SYS_MAXARGS		16
677a9d109bSPaul Burton 
687a9d109bSPaul Burton #define CONFIG_AUTO_COMPLETE
697a9d109bSPaul Burton #define CONFIG_CMDLINE_EDITING
707a9d109bSPaul Burton 
717a9d109bSPaul Burton /*
727a9d109bSPaul Burton  * Serial driver
737a9d109bSPaul Burton  */
747a9d109bSPaul Burton #define CONFIG_BAUDRATE			115200
757a9d109bSPaul Burton 
767a9d109bSPaul Burton #define CONFIG_SYS_NS16550
777a9d109bSPaul Burton #define CONFIG_SYS_NS16550_SERIAL
787a9d109bSPaul Burton #define CONFIG_SYS_NS16550_REG_SIZE	1
797a9d109bSPaul Burton #define CONFIG_SYS_NS16550_CLK		115200
80*baf37f06SPaul Burton #define CONFIG_SYS_NS16550_COM1		CKSEG1ADDR(MALTA_GT_UART0_BASE)
81*baf37f06SPaul Burton #define CONFIG_SYS_NS16550_COM2		CKSEG1ADDR(MALTA_MSC01_UART0_BASE)
827a9d109bSPaul Burton #define CONFIG_CONS_INDEX		1
837a9d109bSPaul Burton 
847a9d109bSPaul Burton /*
857a9d109bSPaul Burton  * Environment
867a9d109bSPaul Burton  */
877a9d109bSPaul Burton #define CONFIG_ENV_IS_NOWHERE
887a9d109bSPaul Burton #define CONFIG_ENV_SIZE			0x10000
897a9d109bSPaul Burton 
907a9d109bSPaul Burton /*
917a9d109bSPaul Burton  * Flash configuration
927a9d109bSPaul Burton  */
937a9d109bSPaul Burton #define CONFIG_SYS_FLASH_BASE		(KSEG1 | MALTA_FLASH_BASE)
947a9d109bSPaul Burton #define CONFIG_SYS_MAX_FLASH_BANKS	1
957a9d109bSPaul Burton #define CONFIG_SYS_MAX_FLASH_SECT	128
967a9d109bSPaul Burton #define CONFIG_SYS_FLASH_CFI
977a9d109bSPaul Burton #define CONFIG_FLASH_CFI_DRIVER
987a9d109bSPaul Burton #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
997a9d109bSPaul Burton 
1007a9d109bSPaul Burton /*
1017a9d109bSPaul Burton  * Commands
1027a9d109bSPaul Burton  */
1037a9d109bSPaul Burton #include <config_cmd_default.h>
1047a9d109bSPaul Burton 
1057a9d109bSPaul Burton #undef CONFIG_CMD_FPGA
1067a9d109bSPaul Burton #undef CONFIG_CMD_LOADB
1077a9d109bSPaul Burton #undef CONFIG_CMD_LOADS
1087a9d109bSPaul Burton #undef CONFIG_CMD_NFS
1097a9d109bSPaul Burton 
1107a9d109bSPaul Burton #define CONFIG_CMD_PCI
1117a9d109bSPaul Burton #define CONFIG_CMD_PING
1127a9d109bSPaul Burton 
1137a9d109bSPaul Burton #define CONFIG_SYS_LONGHELP		/* verbose help, undef to save memory */
1147a9d109bSPaul Burton 
1157a9d109bSPaul Burton #endif /* _MALTA_CONFIG_H */
116