xref: /openbmc/u-boot/include/configs/blanche.h (revision 2fe88d452268d61b5ca9cb0b1dda2974cc43faeb)
183d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0 */
26f107e4cSmasakazu.mochizuki.wd@hitachi.com /*
36f107e4cSmasakazu.mochizuki.wd@hitachi.com  * include/configs/blanche.h
46f107e4cSmasakazu.mochizuki.wd@hitachi.com  *     This file is blanche board configuration.
56f107e4cSmasakazu.mochizuki.wd@hitachi.com  *
66f107e4cSmasakazu.mochizuki.wd@hitachi.com  * Copyright (C) 2016 Renesas Electronics Corporation
76f107e4cSmasakazu.mochizuki.wd@hitachi.com  */
86f107e4cSmasakazu.mochizuki.wd@hitachi.com 
96f107e4cSmasakazu.mochizuki.wd@hitachi.com #ifndef __BLANCHE_H
106f107e4cSmasakazu.mochizuki.wd@hitachi.com #define __BLANCHE_H
116f107e4cSmasakazu.mochizuki.wd@hitachi.com 
126f107e4cSmasakazu.mochizuki.wd@hitachi.com #include "rcar-gen2-common.h"
136f107e4cSmasakazu.mochizuki.wd@hitachi.com 
146f107e4cSmasakazu.mochizuki.wd@hitachi.com /* STACK */
15*e9c891ffSMarek Vasut #define CONFIG_SYS_INIT_SP_ADDR		0x4f000000
16*e9c891ffSMarek Vasut #define STACK_AREA_SIZE			0x00100000
176f107e4cSmasakazu.mochizuki.wd@hitachi.com #define LOW_LEVEL_MERAM_STACK \
186f107e4cSmasakazu.mochizuki.wd@hitachi.com 		(CONFIG_SYS_INIT_SP_ADDR + STACK_AREA_SIZE - 4)
196f107e4cSmasakazu.mochizuki.wd@hitachi.com 
206f107e4cSmasakazu.mochizuki.wd@hitachi.com /* MEMORY */
216f107e4cSmasakazu.mochizuki.wd@hitachi.com #define RCAR_GEN2_SDRAM_BASE		0x40000000
226f107e4cSmasakazu.mochizuki.wd@hitachi.com #define RCAR_GEN2_SDRAM_SIZE		(1024u * 1024 * 1024)
236f107e4cSmasakazu.mochizuki.wd@hitachi.com #define RCAR_GEN2_UBOOT_SDRAM_SIZE	(512 * 1024 * 1024)
246f107e4cSmasakazu.mochizuki.wd@hitachi.com 
256f107e4cSmasakazu.mochizuki.wd@hitachi.com #undef	CONFIG_SYS_MEMTEST_SCRATCH
266f107e4cSmasakazu.mochizuki.wd@hitachi.com #undef	CONFIG_SYS_LOADS_BAUD_CHANGE
276f107e4cSmasakazu.mochizuki.wd@hitachi.com 
286f107e4cSmasakazu.mochizuki.wd@hitachi.com /* FLASH */
29e856bdcfSMasahiro Yamada #if !defined(CONFIG_MTD_NOR_FLASH)
306f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SH_QSPI_BASE	0xE6B10000
316f107e4cSmasakazu.mochizuki.wd@hitachi.com #else
326f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_CFI_WIDTH	FLASH_CFI_16BIT
336f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS
346f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_FLASH_SHOW_PROGRESS	45
356f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_BASE		0x00000000
366f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_SIZE		0x04000000	/* 64 MB */
376f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_MAX_FLASH_SECT	1024
386f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_MAX_FLASH_BANKS	1
396f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_BANKS_LIST	{ (CONFIG_SYS_FLASH_BASE) }
406f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_BANKS_SIZES	{ (CONFIG_SYS_FLASH_SIZE) }
416f107e4cSmasakazu.mochizuki.wd@hitachi.com 
426f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_ERASE_TOUT	3000
436f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_WRITE_TOUT	3000
446f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_LOCK_TOUT	3000
456f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_FLASH_UNLOCK_TOUT	3000
466f107e4cSmasakazu.mochizuki.wd@hitachi.com #undef  CONFIG_CMD_SF
476f107e4cSmasakazu.mochizuki.wd@hitachi.com #undef  CONFIG_CMD_SPI
486f107e4cSmasakazu.mochizuki.wd@hitachi.com #endif
496f107e4cSmasakazu.mochizuki.wd@hitachi.com 
506f107e4cSmasakazu.mochizuki.wd@hitachi.com /* Board Clock */
516f107e4cSmasakazu.mochizuki.wd@hitachi.com #define RMOBILE_XTAL_CLK	20000000u
526f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_SYS_CLK_FREQ	RMOBILE_XTAL_CLK
536f107e4cSmasakazu.mochizuki.wd@hitachi.com 
546f107e4cSmasakazu.mochizuki.wd@hitachi.com /* ENV setting */
55e856bdcfSMasahiro Yamada #if !defined(CONFIG_MTD_NOR_FLASH)
566f107e4cSmasakazu.mochizuki.wd@hitachi.com #else
576f107e4cSmasakazu.mochizuki.wd@hitachi.com #undef  CONFIG_ENV_ADDR
586f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_ENV_SECT_SIZE	(256 * 1024)
596f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_ENV_ADDR		(CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN)
606f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_ENV_OFFSET	(CONFIG_ENV_ADDR)
616f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_ENV_SIZE		(CONFIG_ENV_SECT_SIZE)
626f107e4cSmasakazu.mochizuki.wd@hitachi.com #define CONFIG_ENV_SIZE_REDUND	(CONFIG_SYS_MONITOR_LEN)
636f107e4cSmasakazu.mochizuki.wd@hitachi.com #endif
646f107e4cSmasakazu.mochizuki.wd@hitachi.com 
656f107e4cSmasakazu.mochizuki.wd@hitachi.com #endif	/* __BLANCHE_H */
66