xref: /rk3399_rockchip-uboot/include/configs/blanche.h (revision 3ad77667abd4ea5ac9fcd80702d1a422e8956c22)
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 /* STACK */
206f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_INIT_SP_ADDR		0xE817FFFC
216f107e4cSmasakazu.mochizuki.wd@hitachi.com #define STACK_AREA_SIZE			0xC000
226f107e4cSmasakazu.mochizuki.wd@hitachi.com #define LOW_LEVEL_MERAM_STACK	\
236f107e4cSmasakazu.mochizuki.wd@hitachi.com 		(CONFIG_SYS_INIT_SP_ADDR + STACK_AREA_SIZE - 4)
246f107e4cSmasakazu.mochizuki.wd@hitachi.com 
256f107e4cSmasakazu.mochizuki.wd@hitachi.com /* MEMORY */
266f107e4cSmasakazu.mochizuki.wd@hitachi.com #define RCAR_GEN2_SDRAM_BASE		0x40000000
276f107e4cSmasakazu.mochizuki.wd@hitachi.com #define RCAR_GEN2_SDRAM_SIZE		(1024u * 1024 * 1024)
286f107e4cSmasakazu.mochizuki.wd@hitachi.com #define RCAR_GEN2_UBOOT_SDRAM_SIZE	(512 * 1024 * 1024)
296f107e4cSmasakazu.mochizuki.wd@hitachi.com 
306f107e4cSmasakazu.mochizuki.wd@hitachi.com /* SCIF */
316f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_CONS_SCIF0
326f107e4cSmasakazu.mochizuki.wd@hitachi.com 
336f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_MEMTEST_START	(RCAR_GEN2_SDRAM_BASE)
346f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_MEMTEST_START + 504 * 1024 * 1024)
356f107e4cSmasakazu.mochizuki.wd@hitachi.com 
366f107e4cSmasakazu.mochizuki.wd@hitachi.com #undef	CONFIG_SYS_ALT_MEMTEST
376f107e4cSmasakazu.mochizuki.wd@hitachi.com #undef	CONFIG_SYS_MEMTEST_SCRATCH
386f107e4cSmasakazu.mochizuki.wd@hitachi.com #undef	CONFIG_SYS_LOADS_BAUD_CHANGE
396f107e4cSmasakazu.mochizuki.wd@hitachi.com 
406f107e4cSmasakazu.mochizuki.wd@hitachi.com /* FLASH */
41*e856bdcfSMasahiro Yamada #if !defined(CONFIG_MTD_NOR_FLASH)
426f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_TEXT_BASE	0x40000000
436f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SPI
446f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SH_QSPI_BASE	0xE6B10000
456f107e4cSmasakazu.mochizuki.wd@hitachi.com #else
466f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_TEXT_BASE		0x00000000
476f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_CFI
486f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_CFI_WIDTH	FLASH_CFI_16BIT
496f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_FLASH_CFI_DRIVER
506f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS
516f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_FLASH_SHOW_PROGRESS	45
526f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_BASE		0x00000000
536f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_SIZE		0x04000000	/* 64 MB */
546f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_MAX_FLASH_SECT	1024
556f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_MAX_FLASH_BANKS	1
566f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_BANKS_LIST	{ (CONFIG_SYS_FLASH_BASE) }
576f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_BANKS_SIZES	{ (CONFIG_SYS_FLASH_SIZE) }
586f107e4cSmasakazu.mochizuki.wd@hitachi.com 
596f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_ERASE_TOUT	3000
606f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_WRITE_TOUT	3000
616f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_LOCK_TOUT	3000
626f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_UNLOCK_TOUT	3000
636f107e4cSmasakazu.mochizuki.wd@hitachi.com #undef  CONFIG_CMD_SF
646f107e4cSmasakazu.mochizuki.wd@hitachi.com #undef  CONFIG_CMD_SPI
656f107e4cSmasakazu.mochizuki.wd@hitachi.com #endif
666f107e4cSmasakazu.mochizuki.wd@hitachi.com 
676f107e4cSmasakazu.mochizuki.wd@hitachi.com /* BLANCHE on board LANC: SMC89218 (ExCS0) */
686f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_NET_MULTI
696f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SMC911X                  1
706f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SMC911X_16_BIT           1
716f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SMC911X_BASE             0x18000000
726f107e4cSmasakazu.mochizuki.wd@hitachi.com 
736f107e4cSmasakazu.mochizuki.wd@hitachi.com /* Board Clock */
746f107e4cSmasakazu.mochizuki.wd@hitachi.com #define RMOBILE_XTAL_CLK	20000000u
756f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_CLK_FREQ	RMOBILE_XTAL_CLK
766f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SH_TMU_CLK_FREQ	(CONFIG_SYS_CLK_FREQ / 2) /* EXT / 2 */
776f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_TMU_CLK_DIV	4
786f107e4cSmasakazu.mochizuki.wd@hitachi.com 
796f107e4cSmasakazu.mochizuki.wd@hitachi.com /* ENV setting */
80*e856bdcfSMasahiro Yamada #if !defined(CONFIG_MTD_NOR_FLASH)
816f107e4cSmasakazu.mochizuki.wd@hitachi.com #else
826f107e4cSmasakazu.mochizuki.wd@hitachi.com #undef  CONFIG_ENV_ADDR
836f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_ENV_SECT_SIZE	(256 * 1024)
846f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_ENV_ADDR		(CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN)
856f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_ENV_OFFSET	(CONFIG_ENV_ADDR)
866f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_ENV_SIZE		(CONFIG_ENV_SECT_SIZE)
876f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_ENV_SIZE_REDUND	(CONFIG_SYS_MONITOR_LEN)
886f107e4cSmasakazu.mochizuki.wd@hitachi.com #endif
896f107e4cSmasakazu.mochizuki.wd@hitachi.com 
906f107e4cSmasakazu.mochizuki.wd@hitachi.com /* Module stop status bits */
916f107e4cSmasakazu.mochizuki.wd@hitachi.com /* INTC-RT */
926f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SMSTP0_ENA	0x00400000
936f107e4cSmasakazu.mochizuki.wd@hitachi.com /* SDHI0 */
946f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SMSTP3_ENA	0x00004000
956f107e4cSmasakazu.mochizuki.wd@hitachi.com /* INTC-SYS, IRQC */
966f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SMSTP4_ENA	0x00000180
976f107e4cSmasakazu.mochizuki.wd@hitachi.com /* SCIF0 */
986f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SMSTP7_ENA	0x00200000
996f107e4cSmasakazu.mochizuki.wd@hitachi.com /* QSPI */
1006f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SMSTP9_ENA	0x00020000
1016f107e4cSmasakazu.mochizuki.wd@hitachi.com /* SYS-DMAC0 */
1026f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_RMSTP2_ENA	0x00080000
1036f107e4cSmasakazu.mochizuki.wd@hitachi.com 
1046f107e4cSmasakazu.mochizuki.wd@hitachi.com /* SDHI */
1056f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SH_SDHI_FREQ	97500000
106c5e729eaSNobuhiro Iwamatsu #define HAVE_BLOCK_DEVICE
1076f107e4cSmasakazu.mochizuki.wd@hitachi.com 
1086f107e4cSmasakazu.mochizuki.wd@hitachi.com #endif	/* __BLANCHE_H */
109