xref: /rk3399_rockchip-uboot/include/configs/blanche.h (revision c5e729eaf04c8b8e4a81c268ad094acc960f2edc)
16f107e4cSmasakazu.mochizuki.wd@hitachi.com /*
26f107e4cSmasakazu.mochizuki.wd@hitachi.com  * include/configs/blanche.h
36f107e4cSmasakazu.mochizuki.wd@hitachi.com  *     This file is blanche board configuration.
46f107e4cSmasakazu.mochizuki.wd@hitachi.com  *
56f107e4cSmasakazu.mochizuki.wd@hitachi.com  * Copyright (C) 2016 Renesas Electronics Corporation
66f107e4cSmasakazu.mochizuki.wd@hitachi.com  *
76f107e4cSmasakazu.mochizuki.wd@hitachi.com  * SPDX-License-Identifier: GPL-2.0
86f107e4cSmasakazu.mochizuki.wd@hitachi.com  */
96f107e4cSmasakazu.mochizuki.wd@hitachi.com 
106f107e4cSmasakazu.mochizuki.wd@hitachi.com #ifndef __BLANCHE_H
116f107e4cSmasakazu.mochizuki.wd@hitachi.com #define __BLANCHE_H
126f107e4cSmasakazu.mochizuki.wd@hitachi.com 
136f107e4cSmasakazu.mochizuki.wd@hitachi.com #undef DEBUG
146f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_R8A7792
156f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_RMOBILE_BOARD_STRING "Blanche"
166f107e4cSmasakazu.mochizuki.wd@hitachi.com 
176f107e4cSmasakazu.mochizuki.wd@hitachi.com #include "rcar-gen2-common.h"
186f107e4cSmasakazu.mochizuki.wd@hitachi.com 
196f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_USE_ARCH_MEMSET
206f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_USE_ARCH_MEMCPY
216f107e4cSmasakazu.mochizuki.wd@hitachi.com 
226f107e4cSmasakazu.mochizuki.wd@hitachi.com /* STACK */
236f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_INIT_SP_ADDR		0xE817FFFC
246f107e4cSmasakazu.mochizuki.wd@hitachi.com #define STACK_AREA_SIZE			0xC000
256f107e4cSmasakazu.mochizuki.wd@hitachi.com #define LOW_LEVEL_MERAM_STACK	\
266f107e4cSmasakazu.mochizuki.wd@hitachi.com 		(CONFIG_SYS_INIT_SP_ADDR + STACK_AREA_SIZE - 4)
276f107e4cSmasakazu.mochizuki.wd@hitachi.com 
286f107e4cSmasakazu.mochizuki.wd@hitachi.com /* MEMORY */
296f107e4cSmasakazu.mochizuki.wd@hitachi.com #define RCAR_GEN2_SDRAM_BASE		0x40000000
306f107e4cSmasakazu.mochizuki.wd@hitachi.com #define RCAR_GEN2_SDRAM_SIZE		(1024u * 1024 * 1024)
316f107e4cSmasakazu.mochizuki.wd@hitachi.com #define RCAR_GEN2_UBOOT_SDRAM_SIZE	(512 * 1024 * 1024)
326f107e4cSmasakazu.mochizuki.wd@hitachi.com 
336f107e4cSmasakazu.mochizuki.wd@hitachi.com /* SCIF */
346f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SCIF_CONSOLE
356f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_CONS_SCIF0
366f107e4cSmasakazu.mochizuki.wd@hitachi.com 
376f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_MEMTEST_START	(RCAR_GEN2_SDRAM_BASE)
386f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_MEMTEST_START + 504 * 1024 * 1024)
396f107e4cSmasakazu.mochizuki.wd@hitachi.com 
406f107e4cSmasakazu.mochizuki.wd@hitachi.com #undef	CONFIG_SYS_ALT_MEMTEST
416f107e4cSmasakazu.mochizuki.wd@hitachi.com #undef	CONFIG_SYS_MEMTEST_SCRATCH
426f107e4cSmasakazu.mochizuki.wd@hitachi.com #undef	CONFIG_SYS_LOADS_BAUD_CHANGE
436f107e4cSmasakazu.mochizuki.wd@hitachi.com 
446f107e4cSmasakazu.mochizuki.wd@hitachi.com /* FLASH */
456f107e4cSmasakazu.mochizuki.wd@hitachi.com /* #define CONFIG_SYS_NO_FLASH */	/* uncomment if use QSPI-FLASH */
466f107e4cSmasakazu.mochizuki.wd@hitachi.com #if defined(CONFIG_SYS_NO_FLASH)
476f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_TEXT_BASE	0x40000000
486f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SPI
496f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SH_QSPI
506f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SH_QSPI_BASE	0xE6B10000
516f107e4cSmasakazu.mochizuki.wd@hitachi.com #else
526f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_TEXT_BASE		0x00000000
536f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_CFI
546f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_CFI_WIDTH	FLASH_CFI_16BIT
556f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_FLASH_CFI_DRIVER
566f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS
576f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_FLASH_SHOW_PROGRESS	45
586f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_BASE		0x00000000
596f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_SIZE		0x04000000	/* 64 MB */
606f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_MAX_FLASH_SECT	1024
616f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_MAX_FLASH_BANKS	1
626f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_BANKS_LIST	{ (CONFIG_SYS_FLASH_BASE) }
636f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_BANKS_SIZES	{ (CONFIG_SYS_FLASH_SIZE) }
646f107e4cSmasakazu.mochizuki.wd@hitachi.com 
656f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_ERASE_TOUT	3000
666f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_WRITE_TOUT	3000
676f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_LOCK_TOUT	3000
686f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_UNLOCK_TOUT	3000
696f107e4cSmasakazu.mochizuki.wd@hitachi.com #undef  CONFIG_CMD_SF
706f107e4cSmasakazu.mochizuki.wd@hitachi.com #undef  CONFIG_CMD_SPI
716f107e4cSmasakazu.mochizuki.wd@hitachi.com #endif
726f107e4cSmasakazu.mochizuki.wd@hitachi.com 
736f107e4cSmasakazu.mochizuki.wd@hitachi.com /* BLANCHE on board LANC: SMC89218 (ExCS0) */
746f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_NET_MULTI
756f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SMC911X                  1
766f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SMC911X_16_BIT           1
776f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SMC911X_BASE             0x18000000
786f107e4cSmasakazu.mochizuki.wd@hitachi.com 
796f107e4cSmasakazu.mochizuki.wd@hitachi.com /* Board Clock */
806f107e4cSmasakazu.mochizuki.wd@hitachi.com #define RMOBILE_XTAL_CLK	20000000u
816f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_CLK_FREQ	RMOBILE_XTAL_CLK
826f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SH_TMU_CLK_FREQ	(CONFIG_SYS_CLK_FREQ / 2) /* EXT / 2 */
836f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_TMU_CLK_DIV	4
846f107e4cSmasakazu.mochizuki.wd@hitachi.com 
856f107e4cSmasakazu.mochizuki.wd@hitachi.com /* ENV setting */
866f107e4cSmasakazu.mochizuki.wd@hitachi.com #if defined(CONFIG_SYS_NO_FLASH)
876f107e4cSmasakazu.mochizuki.wd@hitachi.com #else
886f107e4cSmasakazu.mochizuki.wd@hitachi.com #undef  CONFIG_ENV_IS_IN_SPI_FLASH
896f107e4cSmasakazu.mochizuki.wd@hitachi.com #undef  CONFIG_ENV_ADDR
906f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_ENV_IS_IN_FLASH
916f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_ENV_SECT_SIZE	(256 * 1024)
926f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_ENV_ADDR		(CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN)
936f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_ENV_OFFSET	(CONFIG_ENV_ADDR)
946f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_ENV_SIZE		(CONFIG_ENV_SECT_SIZE)
956f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_ENV_SIZE_REDUND	(CONFIG_SYS_MONITOR_LEN)
966f107e4cSmasakazu.mochizuki.wd@hitachi.com #endif
976f107e4cSmasakazu.mochizuki.wd@hitachi.com 
986f107e4cSmasakazu.mochizuki.wd@hitachi.com /* USB */
996f107e4cSmasakazu.mochizuki.wd@hitachi.com #undef CONFIG_CMD_USB
1006f107e4cSmasakazu.mochizuki.wd@hitachi.com 
1016f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_GENERIC_MMC
1026f107e4cSmasakazu.mochizuki.wd@hitachi.com 
1036f107e4cSmasakazu.mochizuki.wd@hitachi.com /* Module stop status bits */
1046f107e4cSmasakazu.mochizuki.wd@hitachi.com /* INTC-RT */
1056f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SMSTP0_ENA	0x00400000
1066f107e4cSmasakazu.mochizuki.wd@hitachi.com /* SDHI0 */
1076f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SMSTP3_ENA	0x00004000
1086f107e4cSmasakazu.mochizuki.wd@hitachi.com /* INTC-SYS, IRQC */
1096f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SMSTP4_ENA	0x00000180
1106f107e4cSmasakazu.mochizuki.wd@hitachi.com /* SCIF0 */
1116f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SMSTP7_ENA	0x00200000
1126f107e4cSmasakazu.mochizuki.wd@hitachi.com /* QSPI */
1136f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SMSTP9_ENA	0x00020000
1146f107e4cSmasakazu.mochizuki.wd@hitachi.com /* SYS-DMAC0 */
1156f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_RMSTP2_ENA	0x00080000
1166f107e4cSmasakazu.mochizuki.wd@hitachi.com 
1176f107e4cSmasakazu.mochizuki.wd@hitachi.com /* SDHI */
1186f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SH_SDHI_FREQ	97500000
119*c5e729eaSNobuhiro Iwamatsu #define HAVE_BLOCK_DEVICE
1206f107e4cSmasakazu.mochizuki.wd@hitachi.com 
1216f107e4cSmasakazu.mochizuki.wd@hitachi.com #endif	/* __BLANCHE_H */
122