2 * include/configs/koelsch.h
4 * Copyright (C) 2013 Renesas Electronics Corporation
6 * SPDX-License-Identifier: GPL-2.0
14 #define CONFIG_R8A7791
15 #define CONFIG_RMOBILE
16 #define CONFIG_RMOBILE_BOARD_STRING "Koelsch"
17 #define CONFIG_SH_GPIO_PFC
19 #include <asm/arch/rmobile.h>
21 #define CONFIG_CMD_EDITENV
22 #define CONFIG_CMD_SAVEENV
23 #define CONFIG_CMD_MEMORY
24 #define CONFIG_CMD_DFL
25 #define CONFIG_CMD_SDRAM
26 #define CONFIG_CMD_RUN
27 #define CONFIG_CMD_LOADS
28 #define CONFIG_CMD_NET
29 #define CONFIG_CMD_MII
30 #define CONFIG_CMD_PING
31 #define CONFIG_CMD_DHCP
32 #define CONFIG_CMD_NFS
33 #define CONFIG_CMD_BOOTZ
36 #define CONFIG_CMD_SPI
37 #define CONFIG_SYS_TEXT_BASE 0xE6304000
39 #define CONFIG_CMDLINE_TAG
40 #define CONFIG_SETUP_MEMORY_TAGS
41 #define CONFIG_INITRD_TAG
42 #define CONFIG_CMDLINE_EDITING
44 #define CONFIG_OF_LIBFDT
45 #define BOARD_LATE_INIT
47 #define CONFIG_BAUDRATE 38400
48 #define CONFIG_BOOTDELAY 3
49 #define CONFIG_BOOTARGS ""
51 #define CONFIG_VERSION_VARIABLE
52 #undef CONFIG_SHOW_BOOT_PROGRESS
54 #define CONFIG_ARCH_CPU_INIT
55 #define CONFIG_DISPLAY_CPUINFO
56 #define CONFIG_DISPLAY_BOARDINFO
57 #define CONFIG_BOARD_EARLY_INIT_F
58 #define CONFIG_USE_ARCH_MEMSET
59 #define CONFIG_USE_ARCH_MEMCPY
60 #define CONFIG_TMU_TIMER
63 #define CONFIG_SYS_INIT_SP_ADDR 0xE633fffc
64 #define STACK_AREA_SIZE 0xC000
65 #define LOW_LEVEL_MERAM_STACK \
66 (CONFIG_SYS_INIT_SP_ADDR + STACK_AREA_SIZE - 4)
69 #define KOELSCH_SDRAM_BASE 0x40000000
70 #define KOELSCH_SDRAM_SIZE (2048u * 1024 * 1024)
71 #define KOELSCH_UBOOT_SDRAM_SIZE (512 * 1024 * 1024)
73 #define CONFIG_SYS_LONGHELP
74 #define CONFIG_SYS_CBSIZE 256
75 #define CONFIG_SYS_PBSIZE 256
76 #define CONFIG_SYS_MAXARGS 16
77 #define CONFIG_SYS_BARGSIZE 512
78 #define CONFIG_SYS_BAUDRATE_TABLE { 38400, 115200 }
81 #define CONFIG_SCIF_CONSOLE
82 #define CONFIG_CONS_SCIF0
83 #define SCIF0_BASE 0xe6e60000
84 #undef CONFIG_SYS_CONSOLE_INFO_QUIET
85 #undef CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
86 #undef CONFIG_SYS_CONSOLE_ENV_OVERWRITE
88 #define CONFIG_SYS_MEMTEST_START (KOELSCH_SDRAM_BASE)
89 #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + \
91 #undef CONFIG_SYS_ALT_MEMTEST
92 #undef CONFIG_SYS_MEMTEST_SCRATCH
93 #undef CONFIG_SYS_LOADS_BAUD_CHANGE
95 #define CONFIG_SYS_SDRAM_BASE (KOELSCH_SDRAM_BASE)
96 #define CONFIG_SYS_SDRAM_SIZE (KOELSCH_UBOOT_SDRAM_SIZE)
97 #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 0x7fc0)
98 #define CONFIG_NR_DRAM_BANKS 1
100 #define CONFIG_SYS_MONITOR_BASE 0x00000000
101 #define CONFIG_SYS_MONITOR_LEN (256 * 1024)
102 #define CONFIG_SYS_MALLOC_LEN (1 * 1024 * 1024)
103 #define CONFIG_SYS_BOOTMAPSZ (8 * 1024 * 1024)
106 #define CONFIG_SYS_NO_FLASH
108 #define CONFIG_SH_QSPI
109 #define CONFIG_SPI_FLASH
110 #define CONFIG_SPI_FLASH_BAR
111 #define CONFIG_SPI_FLASH_SPANSION
113 #define CONFIG_ENV_IS_IN_SPI_FLASH
114 #define CONFIG_ENV_ADDR 0xC0000
116 /* Common ENV setting */
117 #define CONFIG_ENV_OVERWRITE
118 #define CONFIG_ENV_SECT_SIZE (256 * 1024)
119 #define CONFIG_ENV_OFFSET (CONFIG_ENV_ADDR)
120 #define CONFIG_ENV_SIZE (CONFIG_ENV_SECT_SIZE)
121 #define CONFIG_ENV_SIZE_REDUND (CONFIG_SYS_MONITOR_LEN)
124 #define CONFIG_NET_MULTI
125 #define CONFIG_SH_ETHER
126 #define CONFIG_SH_ETHER_USE_PORT 0
127 #define CONFIG_SH_ETHER_PHY_ADDR 0x1
128 #define CONFIG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_RMII
129 #define CONFIG_SH_ETHER_CACHE_WRITEBACK
130 #define CONFIG_SH_ETHER_CACHE_INVALIDATE
131 #define CONFIG_PHYLIB
132 #define CONFIG_PHY_MICREL
133 #define CONFIG_BITBANGMII
134 #define CONFIG_BITBANGMII_MULTI
135 #define CONFIG_SH_ETHER_ALIGNE_SIZE 64
138 #define RMOBILE_XTAL_CLK 20000000u
139 #define CONFIG_SYS_CLK_FREQ RMOBILE_XTAL_CLK
140 #define CONFIG_SH_TMU_CLK_FREQ (CONFIG_SYS_CLK_FREQ / 2)
141 #define CONFIG_SH_SCIF_CLK_FREQ 14745600
142 #define CONFIG_SYS_TMU_CLK_DIV 4
145 #define CONFIG_CMD_I2C
146 #define CONFIG_SYS_I2C
147 #define CONFIG_SYS_I2C_SH
148 #define CONFIG_SYS_I2C_SLAVE 0x7F
149 #define CONFIG_SYS_I2C_SH_NUM_CONTROLLERS 3
150 #define CONFIG_SYS_I2C_SH_BASE0 0xE6500000
151 #define CONFIG_SYS_I2C_SH_SPEED0 400000
152 #define CONFIG_SYS_I2C_SH_BASE1 0xE6510000
153 #define CONFIG_SYS_I2C_SH_SPEED1 400000
154 #define CONFIG_SYS_I2C_SH_BASE2 0xE60B0000
155 #define CONFIG_SYS_I2C_SH_SPEED2 400000
156 #define CONFIG_SH_I2C_DATA_HIGH 4
157 #define CONFIG_SH_I2C_DATA_LOW 5
158 #define CONFIG_SH_I2C_CLOCK 10000000
160 #define CONFIG_SYS_I2C_POWERIC_ADDR 0x58 /* da9063 */
162 #endif /* __KOELSCH_H */