xref: /openbmc/u-boot/include/configs/koelsch.h (revision e1ee3747)
11251e490SNobuhiro Iwamatsu /*
21251e490SNobuhiro Iwamatsu  * include/configs/koelsch.h
31251e490SNobuhiro Iwamatsu  *
41251e490SNobuhiro Iwamatsu  * Copyright (C) 2013 Renesas Electronics Corporation
51251e490SNobuhiro Iwamatsu  *
61251e490SNobuhiro Iwamatsu  * SPDX-License-Identifier: GPL-2.0
71251e490SNobuhiro Iwamatsu  */
81251e490SNobuhiro Iwamatsu 
91251e490SNobuhiro Iwamatsu #ifndef __KOELSCH_H
101251e490SNobuhiro Iwamatsu #define __KOELSCH_H
111251e490SNobuhiro Iwamatsu 
121251e490SNobuhiro Iwamatsu #undef DEBUG
131251e490SNobuhiro Iwamatsu #define CONFIG_ARMV7
141251e490SNobuhiro Iwamatsu #define CONFIG_R8A7791
151251e490SNobuhiro Iwamatsu #define CONFIG_RMOBILE
161251e490SNobuhiro Iwamatsu #define CONFIG_RMOBILE_BOARD_STRING "Koelsch"
171251e490SNobuhiro Iwamatsu #define CONFIG_SH_GPIO_PFC
181251e490SNobuhiro Iwamatsu 
191251e490SNobuhiro Iwamatsu #include <asm/arch/rmobile.h>
201251e490SNobuhiro Iwamatsu 
211251e490SNobuhiro Iwamatsu #define CONFIG_CMD_EDITENV
221251e490SNobuhiro Iwamatsu #define CONFIG_CMD_SAVEENV
231251e490SNobuhiro Iwamatsu #define CONFIG_CMD_MEMORY
241251e490SNobuhiro Iwamatsu #define CONFIG_CMD_DFL
251251e490SNobuhiro Iwamatsu #define CONFIG_CMD_SDRAM
261251e490SNobuhiro Iwamatsu #define CONFIG_CMD_RUN
271251e490SNobuhiro Iwamatsu #define CONFIG_CMD_LOADS
2890362c0cSNobuhiro Iwamatsu #define CONFIG_CMD_NET
2990362c0cSNobuhiro Iwamatsu #define CONFIG_CMD_MII
3090362c0cSNobuhiro Iwamatsu #define CONFIG_CMD_PING
3190362c0cSNobuhiro Iwamatsu #define CONFIG_CMD_DHCP
3290362c0cSNobuhiro Iwamatsu #define CONFIG_CMD_NFS
331251e490SNobuhiro Iwamatsu #define CONFIG_CMD_BOOTZ
34c71b4dd2SNobuhiro Iwamatsu 
35c71b4dd2SNobuhiro Iwamatsu #define CONFIG_CMD_SF
36c71b4dd2SNobuhiro Iwamatsu #define CONFIG_CMD_SPI
37c71b4dd2SNobuhiro Iwamatsu #define CONFIG_SYS_TEXT_BASE	0xE6304000
38*e1ee3747SNobuhiro Iwamatsu #define CONFIG_SYS_THUMB_BUILD
391251e490SNobuhiro Iwamatsu 
401251e490SNobuhiro Iwamatsu #define	CONFIG_CMDLINE_TAG
411251e490SNobuhiro Iwamatsu #define	CONFIG_SETUP_MEMORY_TAGS
421251e490SNobuhiro Iwamatsu #define	CONFIG_INITRD_TAG
431251e490SNobuhiro Iwamatsu #define	CONFIG_CMDLINE_EDITING
441251e490SNobuhiro Iwamatsu 
451251e490SNobuhiro Iwamatsu #define CONFIG_OF_LIBFDT
461251e490SNobuhiro Iwamatsu #define BOARD_LATE_INIT
471251e490SNobuhiro Iwamatsu 
481251e490SNobuhiro Iwamatsu #define CONFIG_BAUDRATE		38400
491251e490SNobuhiro Iwamatsu #define CONFIG_BOOTDELAY	3
501251e490SNobuhiro Iwamatsu #define CONFIG_BOOTARGS		""
511251e490SNobuhiro Iwamatsu 
521251e490SNobuhiro Iwamatsu #define CONFIG_VERSION_VARIABLE
531251e490SNobuhiro Iwamatsu #undef	CONFIG_SHOW_BOOT_PROGRESS
541251e490SNobuhiro Iwamatsu 
551251e490SNobuhiro Iwamatsu #define CONFIG_ARCH_CPU_INIT
561251e490SNobuhiro Iwamatsu #define CONFIG_DISPLAY_CPUINFO
571251e490SNobuhiro Iwamatsu #define CONFIG_DISPLAY_BOARDINFO
581251e490SNobuhiro Iwamatsu #define CONFIG_BOARD_EARLY_INIT_F
591251e490SNobuhiro Iwamatsu #define CONFIG_TMU_TIMER
601251e490SNobuhiro Iwamatsu 
611251e490SNobuhiro Iwamatsu /* STACK */
621251e490SNobuhiro Iwamatsu #define CONFIG_SYS_INIT_SP_ADDR		0xE633fffc
631251e490SNobuhiro Iwamatsu #define STACK_AREA_SIZE				0xC000
641251e490SNobuhiro Iwamatsu #define LOW_LEVEL_MERAM_STACK	\
651251e490SNobuhiro Iwamatsu 		(CONFIG_SYS_INIT_SP_ADDR + STACK_AREA_SIZE - 4)
661251e490SNobuhiro Iwamatsu 
671251e490SNobuhiro Iwamatsu /* MEMORY */
681251e490SNobuhiro Iwamatsu #define KOELSCH_SDRAM_BASE	0x40000000
691251e490SNobuhiro Iwamatsu #define KOELSCH_SDRAM_SIZE	(2048u * 1024 * 1024)
701251e490SNobuhiro Iwamatsu #define KOELSCH_UBOOT_SDRAM_SIZE	(512 * 1024 * 1024)
711251e490SNobuhiro Iwamatsu 
721251e490SNobuhiro Iwamatsu #define CONFIG_SYS_LONGHELP
731251e490SNobuhiro Iwamatsu #define CONFIG_SYS_CBSIZE		256
741251e490SNobuhiro Iwamatsu #define CONFIG_SYS_PBSIZE		256
751251e490SNobuhiro Iwamatsu #define CONFIG_SYS_MAXARGS		16
761251e490SNobuhiro Iwamatsu #define CONFIG_SYS_BARGSIZE		512
771251e490SNobuhiro Iwamatsu #define CONFIG_SYS_BAUDRATE_TABLE	{ 38400, 115200 }
781251e490SNobuhiro Iwamatsu 
791251e490SNobuhiro Iwamatsu /* SCIF */
801251e490SNobuhiro Iwamatsu #define CONFIG_SCIF_CONSOLE
811251e490SNobuhiro Iwamatsu #define CONFIG_CONS_SCIF0
821251e490SNobuhiro Iwamatsu #undef	CONFIG_SYS_CONSOLE_INFO_QUIET
831251e490SNobuhiro Iwamatsu #undef	CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
841251e490SNobuhiro Iwamatsu #undef	CONFIG_SYS_CONSOLE_ENV_OVERWRITE
851251e490SNobuhiro Iwamatsu 
861251e490SNobuhiro Iwamatsu #define CONFIG_SYS_MEMTEST_START	(KOELSCH_SDRAM_BASE)
871251e490SNobuhiro Iwamatsu #define CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_MEMTEST_START + \
881251e490SNobuhiro Iwamatsu 					 504 * 1024 * 1024)
891251e490SNobuhiro Iwamatsu #undef	CONFIG_SYS_ALT_MEMTEST
901251e490SNobuhiro Iwamatsu #undef	CONFIG_SYS_MEMTEST_SCRATCH
911251e490SNobuhiro Iwamatsu #undef	CONFIG_SYS_LOADS_BAUD_CHANGE
921251e490SNobuhiro Iwamatsu 
931251e490SNobuhiro Iwamatsu #define CONFIG_SYS_SDRAM_BASE		(KOELSCH_SDRAM_BASE)
941251e490SNobuhiro Iwamatsu #define CONFIG_SYS_SDRAM_SIZE		(KOELSCH_UBOOT_SDRAM_SIZE)
951251e490SNobuhiro Iwamatsu #define CONFIG_SYS_LOAD_ADDR		(CONFIG_SYS_SDRAM_BASE + 0x7fc0)
961251e490SNobuhiro Iwamatsu #define CONFIG_NR_DRAM_BANKS		1
971251e490SNobuhiro Iwamatsu 
981251e490SNobuhiro Iwamatsu #define CONFIG_SYS_MONITOR_BASE		0x00000000
991251e490SNobuhiro Iwamatsu #define CONFIG_SYS_MONITOR_LEN		(256 * 1024)
1001251e490SNobuhiro Iwamatsu #define CONFIG_SYS_MALLOC_LEN		(1 * 1024 * 1024)
1011251e490SNobuhiro Iwamatsu #define CONFIG_SYS_BOOTMAPSZ		(8 * 1024 * 1024)
1021251e490SNobuhiro Iwamatsu 
1031251e490SNobuhiro Iwamatsu /* FLASH */
104c71b4dd2SNobuhiro Iwamatsu #define CONFIG_SYS_NO_FLASH
105c71b4dd2SNobuhiro Iwamatsu #define CONFIG_SPI
106c71b4dd2SNobuhiro Iwamatsu #define CONFIG_SH_QSPI
107c71b4dd2SNobuhiro Iwamatsu #define CONFIG_SPI_FLASH
108c71b4dd2SNobuhiro Iwamatsu #define CONFIG_SPI_FLASH_BAR
109c71b4dd2SNobuhiro Iwamatsu #define CONFIG_SPI_FLASH_SPANSION
110c71b4dd2SNobuhiro Iwamatsu /* ENV setting */
111c71b4dd2SNobuhiro Iwamatsu #define CONFIG_ENV_IS_IN_SPI_FLASH
112c71b4dd2SNobuhiro Iwamatsu #define CONFIG_ENV_ADDR	0xC0000
113c71b4dd2SNobuhiro Iwamatsu 
114c71b4dd2SNobuhiro Iwamatsu /* Common ENV setting */
115c71b4dd2SNobuhiro Iwamatsu #define CONFIG_ENV_OVERWRITE
116c71b4dd2SNobuhiro Iwamatsu #define CONFIG_ENV_SECT_SIZE	(256 * 1024)
1171251e490SNobuhiro Iwamatsu #define CONFIG_ENV_OFFSET	(CONFIG_ENV_ADDR)
1181251e490SNobuhiro Iwamatsu #define CONFIG_ENV_SIZE		(CONFIG_ENV_SECT_SIZE)
1191251e490SNobuhiro Iwamatsu #define CONFIG_ENV_SIZE_REDUND	(CONFIG_SYS_MONITOR_LEN)
1201251e490SNobuhiro Iwamatsu 
12190362c0cSNobuhiro Iwamatsu /* SH Ether */
12290362c0cSNobuhiro Iwamatsu #define	CONFIG_NET_MULTI
12390362c0cSNobuhiro Iwamatsu #define CONFIG_SH_ETHER
12490362c0cSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_USE_PORT	0
12590362c0cSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_PHY_ADDR	0x1
12690362c0cSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_RMII
12790362c0cSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_CACHE_WRITEBACK
12890362c0cSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_CACHE_INVALIDATE
12990362c0cSNobuhiro Iwamatsu #define CONFIG_PHYLIB
13090362c0cSNobuhiro Iwamatsu #define CONFIG_PHY_MICREL
13190362c0cSNobuhiro Iwamatsu #define CONFIG_BITBANGMII
13290362c0cSNobuhiro Iwamatsu #define CONFIG_BITBANGMII_MULTI
13390362c0cSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_ALIGNE_SIZE 64
13490362c0cSNobuhiro Iwamatsu 
1351251e490SNobuhiro Iwamatsu /* Board Clock */
136ae8e1d9dSNobuhiro Iwamatsu #define RMOBILE_XTAL_CLK	20000000u
137ae8e1d9dSNobuhiro Iwamatsu #define CONFIG_SYS_CLK_FREQ	RMOBILE_XTAL_CLK
138ae8e1d9dSNobuhiro Iwamatsu #define CONFIG_SH_TMU_CLK_FREQ	(CONFIG_SYS_CLK_FREQ / 2)
1391251e490SNobuhiro Iwamatsu #define CONFIG_SH_SCIF_CLK_FREQ	14745600
1401251e490SNobuhiro Iwamatsu #define CONFIG_SYS_TMU_CLK_DIV	4
1411251e490SNobuhiro Iwamatsu 
142bb611cceSNobuhiro Iwamatsu /* i2c */
143bb611cceSNobuhiro Iwamatsu #define CONFIG_CMD_I2C
144bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C
145bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH
146bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SLAVE	0x7F
147bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH_NUM_CONTROLLERS	3
148bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH_BASE0		0xE6500000
149bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH_SPEED0	400000
150bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH_BASE1		0xE6510000
151bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH_SPEED1	400000
152bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH_BASE2		0xE60B0000
153bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH_SPEED2	400000
154bb611cceSNobuhiro Iwamatsu #define CONFIG_SH_I2C_DATA_HIGH	4
155bb611cceSNobuhiro Iwamatsu #define CONFIG_SH_I2C_DATA_LOW	5
156bb611cceSNobuhiro Iwamatsu #define CONFIG_SH_I2C_CLOCK	10000000
157bb611cceSNobuhiro Iwamatsu 
158b8f383b8SNobuhiro Iwamatsu #define CONFIG_SYS_I2C_POWERIC_ADDR 0x58 /* da9063 */
159b8f383b8SNobuhiro Iwamatsu 
1601251e490SNobuhiro Iwamatsu #endif	/* __KOELSCH_H */
161