xref: /rk3399_rockchip-uboot/include/configs/mpr2.h (revision bdab39d358e63aa47f400a8a76b8d5f283842df3)
13313e0e2SMark Jonas /*
23313e0e2SMark Jonas  * Configuation settings for MPR2
33313e0e2SMark Jonas  *
43313e0e2SMark Jonas  * Copyright (C) 2008
53313e0e2SMark Jonas  * Mark Jonas <mark.jonas@de.bosch.com>
63313e0e2SMark Jonas  *
73313e0e2SMark Jonas  * See file CREDITS for list of people who contributed to this
83313e0e2SMark Jonas  * project.
93313e0e2SMark Jonas  *
103313e0e2SMark Jonas  * This program is free software; you can redistribute it and/or
113313e0e2SMark Jonas  * modify it under the terms of the GNU General Public License as
123313e0e2SMark Jonas  * published by the Free Software Foundation; either version 2 of
133313e0e2SMark Jonas  * the License, or (at your option) any later version.
143313e0e2SMark Jonas  *
153313e0e2SMark Jonas  * This program is distributed in the hope that it will be useful,
163313e0e2SMark Jonas  * but WITHOUT ANY WARRANTY; without even the implied warranty of
173313e0e2SMark Jonas  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
183313e0e2SMark Jonas  * GNU General Public License for more details.
193313e0e2SMark Jonas  *
203313e0e2SMark Jonas  * You should have received a copy of the GNU General Public License
213313e0e2SMark Jonas  * along with this program; if not, write to the Free Software
223313e0e2SMark Jonas  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
233313e0e2SMark Jonas  * MA 02111-1307 USA
243313e0e2SMark Jonas  */
253313e0e2SMark Jonas 
263313e0e2SMark Jonas #ifndef __MPR2_H
273313e0e2SMark Jonas #define __MPR2_H
283313e0e2SMark Jonas 
293313e0e2SMark Jonas /* Supported commands */
30*bdab39d3SMike Frysinger #define CONFIG_CMD_SAVEENV
313313e0e2SMark Jonas #define CONFIG_CMD_CACHE
323313e0e2SMark Jonas #define CONFIG_CMD_MEMORY
333313e0e2SMark Jonas #define CONFIG_CMD_FLASH
343313e0e2SMark Jonas 
353313e0e2SMark Jonas /* Default environment variables */
363313e0e2SMark Jonas #define CONFIG_BAUDRATE		115200
373313e0e2SMark Jonas #define CONFIG_BOOTARGS		"console=ttySC0,115200"
383313e0e2SMark Jonas #define CONFIG_BOOTFILE		/boot/zImage
393313e0e2SMark Jonas #define CONFIG_LOADADDR		0x8E000000
403313e0e2SMark Jonas #define CONFIG_VERSION_VARIABLE
413313e0e2SMark Jonas 
423313e0e2SMark Jonas /* CPU and platform */
433313e0e2SMark Jonas #define CONFIG_SH		1
443313e0e2SMark Jonas #define CONFIG_SH3		1
453313e0e2SMark Jonas #define CONFIG_CPU_SH7720	1
463313e0e2SMark Jonas #define CONFIG_MPR2		1
473313e0e2SMark Jonas 
483313e0e2SMark Jonas /* U-Boot internals */
496d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LONGHELP			/* undef to save memory	*/
506d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PROMPT		"=> "	/* Monitor Command Prompt */
516d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CBSIZE		256	/* Buffer size for input from the Console */
526d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PBSIZE		256	/* Buffer size for Console output */
536d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAXARGS		16	/* max args accepted for monitor commands */
546d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BARGSIZE		512	/* Buffer size for Boot Arguments passed to kernel */
556d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BAUDRATE_TABLE	{ 115200 }	/* List of legal baudrate settings for this board */
566d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LOAD_ADDR		(CONFIG_SYS_SDRAM_BASE + 32 * 1024 * 1024)
576d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MONITOR_BASE	CONFIG_SYS_FLASH_BASE
586d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MONITOR_LEN		(128 * 1024)
596d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MALLOC_LEN		(256 * 1024)
606d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_GBL_DATA_SIZE	256
613313e0e2SMark Jonas 
623313e0e2SMark Jonas /* Memory */
636d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SDRAM_BASE		0x8C000000
646d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SDRAM_SIZE		(64 * 1024 * 1024)
656d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MEMTEST_START	CONFIG_SYS_SDRAM_BASE
666d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_MEMTEST_START + (60 * 1024 * 1024))
673313e0e2SMark Jonas 
683313e0e2SMark Jonas /* Flash */
696d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_CFI
7000b1883aSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_FLASH_CFI_DRIVER
716d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_EMPTY_INFO
726d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_BASE		0xA0000000
736d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAX_FLASH_SECT	256
746d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAX_FLASH_BANKS	1
756d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_BANKS_LIST	{ CONFIG_SYS_FLASH_BASE }
765a1aceb0SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_IS_IN_FLASH
770e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_SECT_SIZE	(128 * 1024)
780e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_SIZE		CONFIG_ENV_SECT_SIZE
796d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_ADDR		(CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
806d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_ERASE_TOUT	120000
816d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_WRITE_TOUT	500
823313e0e2SMark Jonas 
833313e0e2SMark Jonas /* Clocks */
843313e0e2SMark Jonas #define CONFIG_SYS_CLK_FREQ	24000000
853313e0e2SMark Jonas #define TMU_CLK_DIVIDER		4	/* 4 (default), 16, 64, 256 or 1024 */
866d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_HZ			(CONFIG_SYS_CLK_FREQ / TMU_CLK_DIVIDER)
873313e0e2SMark Jonas 
883313e0e2SMark Jonas /* UART */
896c58a030SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SCIF_CONSOLE	1
903313e0e2SMark Jonas #define CONFIG_CONS_SCIF0	1
913313e0e2SMark Jonas 
923313e0e2SMark Jonas #endif	/* __MPR2_H */
93