xref: /rk3399_rockchip-uboot/include/configs/malta.h (revision 1f20fc53b382ece8da7440f354b219deb7ed19df)
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 /*
117a9d109bSPaul Burton  * System configuration
127a9d109bSPaul Burton  */
137a9d109bSPaul Burton #define CONFIG_MALTA
147a9d109bSPaul Burton 
15ab41305dSGabor Juhos #define CONFIG_MEMSIZE_IN_BYTES
16ab41305dSGabor Juhos 
177a9d109bSPaul Burton #define CONFIG_PCI_GT64120
18baf37f06SPaul Burton #define CONFIG_PCI_MSC01
197a9d109bSPaul Burton #define CONFIG_PCNET
20e0878af8SPaul Burton #define CONFIG_PCNET_79C973
21e0878af8SPaul Burton #define PCNET_HAS_PROM
227a9d109bSPaul Burton 
233ced12a0SPaul Burton #define CONFIG_MISC_INIT_R
243ced12a0SPaul Burton #define CONFIG_RTC_MC146818
253ced12a0SPaul Burton #define CONFIG_SYS_ISA_IO_BASE_ADDRESS	0
263ced12a0SPaul Burton 
277a9d109bSPaul Burton /*
287a9d109bSPaul Burton  * CPU Configuration
297a9d109bSPaul Burton  */
307a9d109bSPaul Burton #define CONFIG_SYS_MHZ			250	/* arbitrary value */
317a9d109bSPaul Burton #define CONFIG_SYS_MIPS_TIMER_FREQ	(CONFIG_SYS_MHZ * 1000000)
327a9d109bSPaul Burton 
337a9d109bSPaul Burton /*
347a9d109bSPaul Burton  * Memory map
357a9d109bSPaul Burton  */
3610473d04SGabor Juhos #define CONFIG_SYS_MONITOR_BASE		CONFIG_SYS_TEXT_BASE
377a9d109bSPaul Burton 
38*0f832b9cSPaul Burton #ifdef CONFIG_64BIT
39*0f832b9cSPaul Burton # define CONFIG_SYS_SDRAM_BASE		0xffffffff80000000
40*0f832b9cSPaul Burton #else
41*0f832b9cSPaul Burton # define CONFIG_SYS_SDRAM_BASE		0x80000000
42*0f832b9cSPaul Burton #endif
437a9d109bSPaul Burton #define CONFIG_SYS_MEM_SIZE		(256 * 1024 * 1024)
447a9d109bSPaul Burton 
457a9d109bSPaul Burton #define CONFIG_SYS_INIT_SP_OFFSET	0x400000
467a9d109bSPaul Burton 
47*0f832b9cSPaul Burton #define CONFIG_SYS_LOAD_ADDR		(CONFIG_SYS_SDRAM_BASE + 0x01000000)
48*0f832b9cSPaul Burton #define CONFIG_SYS_MEMTEST_START	(CONFIG_SYS_SDRAM_BASE + 0x00100000)
49*0f832b9cSPaul Burton #define CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_SDRAM_BASE + 0x00800000)
507a9d109bSPaul Burton 
517a9d109bSPaul Burton #define CONFIG_SYS_MALLOC_LEN		(128 * 1024)
527a9d109bSPaul Burton #define CONFIG_SYS_BOOTPARAMS_LEN	(128 * 1024)
5367d4752dSPaul Burton #define CONFIG_SYS_BOOTM_LEN		(64 * 1024 * 1024)
547a9d109bSPaul Burton 
557a9d109bSPaul Burton #define CONFIG_AUTO_COMPLETE
567a9d109bSPaul Burton #define CONFIG_CMDLINE_EDITING
577a9d109bSPaul Burton 
587a9d109bSPaul Burton /*
597a9d109bSPaul Burton  * Serial driver
607a9d109bSPaul Burton  */
612e7eb12eSPaul Burton #define CONFIG_SYS_NS16550_PORT_MAPPED
627a9d109bSPaul Burton 
637a9d109bSPaul Burton /*
647a9d109bSPaul Burton  * Flash configuration
657a9d109bSPaul Burton  */
66*0f832b9cSPaul Burton #ifdef CONFIG_64BIT
67*0f832b9cSPaul Burton # define CONFIG_SYS_FLASH_BASE		0xffffffffbe000000
68*0f832b9cSPaul Burton #else
6999511829SDaniel Schwierzeck # define CONFIG_SYS_FLASH_BASE		0xbe000000
70*0f832b9cSPaul Burton #endif
717a9d109bSPaul Burton #define CONFIG_SYS_MAX_FLASH_BANKS	1
727a9d109bSPaul Burton #define CONFIG_SYS_MAX_FLASH_SECT	128
737a9d109bSPaul Burton #define CONFIG_SYS_FLASH_CFI
747a9d109bSPaul Burton #define CONFIG_FLASH_CFI_DRIVER
757a9d109bSPaul Burton #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
767a9d109bSPaul Burton 
777a9d109bSPaul Burton /*
78fba6f45cSPaul Burton  * Environment
79fba6f45cSPaul Burton  */
80fba6f45cSPaul Burton #define CONFIG_ENV_SECT_SIZE		0x20000
81fba6f45cSPaul Burton #define CONFIG_ENV_SIZE			CONFIG_ENV_SECT_SIZE
82fba6f45cSPaul Burton #define CONFIG_ENV_ADDR \
83fba6f45cSPaul Burton 	(CONFIG_SYS_FLASH_BASE + (4 << 20) - CONFIG_ENV_SIZE)
84fba6f45cSPaul Burton 
85fba6f45cSPaul Burton /*
86ba21a453SPaul Burton  * IDE/ATA
87ba21a453SPaul Burton  */
88ba21a453SPaul Burton #define CONFIG_SYS_IDE_MAXBUS		1
89ba21a453SPaul Burton #define CONFIG_SYS_IDE_MAXDEVICE	2
90ba21a453SPaul Burton #define CONFIG_SYS_ATA_BASE_ADDR	CONFIG_SYS_ISA_IO_BASE_ADDRESS
91ba21a453SPaul Burton #define CONFIG_SYS_ATA_IDE0_OFFSET	0x01f0
92ba21a453SPaul Burton #define CONFIG_SYS_ATA_DATA_OFFSET	0
93ba21a453SPaul Burton #define CONFIG_SYS_ATA_REG_OFFSET	0
94ba21a453SPaul Burton 
95ba21a453SPaul Burton /*
967a9d109bSPaul Burton  * Commands
977a9d109bSPaul Burton  */
987a9d109bSPaul Burton 
997a9d109bSPaul Burton #define CONFIG_SYS_LONGHELP		/* verbose help, undef to save memory */
1007a9d109bSPaul Burton 
1017a9d109bSPaul Burton #endif /* _MALTA_CONFIG_H */
102