xref: /rk3399_rockchip-uboot/include/configs/malta.h (revision ba21a453a58fc02b890f4064b293b1cb09fe7484)
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
175f978d7eSPaul Burton #define CONFIG_SYS_GENERIC_BOARD
185f978d7eSPaul Burton #define CONFIG_BOARD_EARLY_INIT_F
195f978d7eSPaul Burton #define CONFIG_DISPLAY_BOARDINFO
207a9d109bSPaul Burton 
21ab41305dSGabor Juhos #define CONFIG_MEMSIZE_IN_BYTES
22ab41305dSGabor Juhos 
237a9d109bSPaul Burton #define CONFIG_PCI
247a9d109bSPaul Burton #define CONFIG_PCI_GT64120
25baf37f06SPaul Burton #define CONFIG_PCI_MSC01
267a9d109bSPaul Burton #define CONFIG_PCI_PNP
277a9d109bSPaul Burton #define CONFIG_PCNET
28e0878af8SPaul Burton #define CONFIG_PCNET_79C973
29e0878af8SPaul Burton #define PCNET_HAS_PROM
307a9d109bSPaul Burton 
313ced12a0SPaul Burton #define CONFIG_MISC_INIT_R
323ced12a0SPaul Burton #define CONFIG_RTC_MC146818
333ced12a0SPaul Burton #define CONFIG_SYS_ISA_IO_BASE_ADDRESS	0
343ced12a0SPaul Burton 
357a9d109bSPaul Burton /*
367a9d109bSPaul Burton  * CPU Configuration
377a9d109bSPaul Burton  */
387a9d109bSPaul Burton #define CONFIG_SYS_MHZ			250	/* arbitrary value */
397a9d109bSPaul Burton #define CONFIG_SYS_MIPS_TIMER_FREQ	(CONFIG_SYS_MHZ * 1000000)
407a9d109bSPaul Burton 
417a9d109bSPaul Burton /*
427a9d109bSPaul Burton  * Memory map
437a9d109bSPaul Burton  */
4410473d04SGabor Juhos #define CONFIG_SYS_TEXT_BASE		0xbe000000 /* Rom version */
4510473d04SGabor Juhos #define CONFIG_SYS_MONITOR_BASE		CONFIG_SYS_TEXT_BASE
467a9d109bSPaul Burton 
477a9d109bSPaul Burton #define CONFIG_SYS_SDRAM_BASE		0x80000000 /* Cached addr */
487a9d109bSPaul Burton #define CONFIG_SYS_MEM_SIZE		(256 * 1024 * 1024)
497a9d109bSPaul Burton 
507a9d109bSPaul Burton #define CONFIG_SYS_INIT_SP_OFFSET	0x400000
517a9d109bSPaul Burton 
527a9d109bSPaul Burton #define CONFIG_SYS_LOAD_ADDR		0x81000000
537a9d109bSPaul Burton #define CONFIG_SYS_MEMTEST_START	0x80100000
547a9d109bSPaul Burton #define CONFIG_SYS_MEMTEST_END		0x80800000
557a9d109bSPaul Burton 
567a9d109bSPaul Burton #define CONFIG_SYS_MALLOC_LEN		(128 * 1024)
577a9d109bSPaul Burton #define CONFIG_SYS_BOOTPARAMS_LEN	(128 * 1024)
5867d4752dSPaul Burton #define CONFIG_SYS_BOOTM_LEN		(64 * 1024 * 1024)
597a9d109bSPaul Burton 
607a9d109bSPaul Burton /*
617a9d109bSPaul Burton  * Console configuration
627a9d109bSPaul Burton  */
637a9d109bSPaul Burton #if defined(CONFIG_SYS_LITTLE_ENDIAN)
647a9d109bSPaul Burton #define CONFIG_SYS_PROMPT		"maltael # "
657a9d109bSPaul Burton #else
667a9d109bSPaul Burton #define CONFIG_SYS_PROMPT		"malta # "
677a9d109bSPaul Burton #endif
687a9d109bSPaul Burton 
697a9d109bSPaul Burton #define CONFIG_SYS_CBSIZE		256
707a9d109bSPaul Burton #define CONFIG_SYS_PBSIZE		(CONFIG_SYS_CBSIZE + \
717a9d109bSPaul Burton 					 sizeof(CONFIG_SYS_PROMPT) + 16)
727a9d109bSPaul Burton #define CONFIG_SYS_MAXARGS		16
737a9d109bSPaul Burton 
747a9d109bSPaul Burton #define CONFIG_AUTO_COMPLETE
757a9d109bSPaul Burton #define CONFIG_CMDLINE_EDITING
767a9d109bSPaul Burton 
777a9d109bSPaul Burton /*
787a9d109bSPaul Burton  * Serial driver
797a9d109bSPaul Burton  */
807a9d109bSPaul Burton #define CONFIG_BAUDRATE			115200
817a9d109bSPaul Burton 
827a9d109bSPaul Burton #define CONFIG_SYS_NS16550
837a9d109bSPaul Burton #define CONFIG_SYS_NS16550_SERIAL
847a9d109bSPaul Burton #define CONFIG_SYS_NS16550_REG_SIZE	1
8572117dadSPaul Burton #define CONFIG_SYS_NS16550_CLK		(115200 * 16)
86baf37f06SPaul Burton #define CONFIG_SYS_NS16550_COM1		CKSEG1ADDR(MALTA_GT_UART0_BASE)
87baf37f06SPaul Burton #define CONFIG_SYS_NS16550_COM2		CKSEG1ADDR(MALTA_MSC01_UART0_BASE)
887a9d109bSPaul Burton #define CONFIG_CONS_INDEX		1
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 /*
101fba6f45cSPaul Burton  * Environment
102fba6f45cSPaul Burton  */
103fba6f45cSPaul Burton #define CONFIG_ENV_IS_IN_FLASH
104fba6f45cSPaul Burton #define CONFIG_ENV_SECT_SIZE		0x20000
105fba6f45cSPaul Burton #define CONFIG_ENV_SIZE			CONFIG_ENV_SECT_SIZE
106fba6f45cSPaul Burton #define CONFIG_ENV_ADDR \
107fba6f45cSPaul Burton 	(CONFIG_SYS_FLASH_BASE + (4 << 20) - CONFIG_ENV_SIZE)
108fba6f45cSPaul Burton 
109fba6f45cSPaul Burton /*
110*ba21a453SPaul Burton  * IDE/ATA
111*ba21a453SPaul Burton  */
112*ba21a453SPaul Burton #define CONFIG_SYS_IDE_MAXBUS		1
113*ba21a453SPaul Burton #define CONFIG_SYS_IDE_MAXDEVICE	2
114*ba21a453SPaul Burton #define CONFIG_SYS_ATA_BASE_ADDR	CONFIG_SYS_ISA_IO_BASE_ADDRESS
115*ba21a453SPaul Burton #define CONFIG_SYS_ATA_IDE0_OFFSET	0x01f0
116*ba21a453SPaul Burton #define CONFIG_SYS_ATA_DATA_OFFSET	0
117*ba21a453SPaul Burton #define CONFIG_SYS_ATA_REG_OFFSET	0
118*ba21a453SPaul Burton 
119*ba21a453SPaul Burton /*
1207a9d109bSPaul Burton  * Commands
1217a9d109bSPaul Burton  */
1227a9d109bSPaul Burton #include <config_cmd_default.h>
1237a9d109bSPaul Burton 
1247a9d109bSPaul Burton #undef CONFIG_CMD_FPGA
1257a9d109bSPaul Burton #undef CONFIG_CMD_LOADB
1267a9d109bSPaul Burton #undef CONFIG_CMD_LOADS
1277a9d109bSPaul Burton #undef CONFIG_CMD_NFS
1287a9d109bSPaul Burton 
1293ced12a0SPaul Burton #define CONFIG_CMD_DATE
130e0878af8SPaul Burton #define CONFIG_CMD_DHCP
131*ba21a453SPaul Burton #define CONFIG_CMD_IDE
1327a9d109bSPaul Burton #define CONFIG_CMD_PCI
1337a9d109bSPaul Burton #define CONFIG_CMD_PING
1347a9d109bSPaul Burton 
1357a9d109bSPaul Burton #define CONFIG_SYS_LONGHELP		/* verbose help, undef to save memory */
1367a9d109bSPaul Burton 
1377a9d109bSPaul Burton #endif /* _MALTA_CONFIG_H */
138