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