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_BOARD_STRING "Koelsch" 161251e490SNobuhiro Iwamatsu #define CONFIG_SH_GPIO_PFC 171251e490SNobuhiro Iwamatsu 181251e490SNobuhiro Iwamatsu #include <asm/arch/rmobile.h> 191251e490SNobuhiro Iwamatsu 201251e490SNobuhiro Iwamatsu #define CONFIG_CMD_EDITENV 211251e490SNobuhiro Iwamatsu #define CONFIG_CMD_SAVEENV 221251e490SNobuhiro Iwamatsu #define CONFIG_CMD_MEMORY 231251e490SNobuhiro Iwamatsu #define CONFIG_CMD_DFL 241251e490SNobuhiro Iwamatsu #define CONFIG_CMD_SDRAM 251251e490SNobuhiro Iwamatsu #define CONFIG_CMD_RUN 261251e490SNobuhiro Iwamatsu #define CONFIG_CMD_LOADS 2790362c0cSNobuhiro Iwamatsu #define CONFIG_CMD_NET 2890362c0cSNobuhiro Iwamatsu #define CONFIG_CMD_MII 2990362c0cSNobuhiro Iwamatsu #define CONFIG_CMD_PING 3090362c0cSNobuhiro Iwamatsu #define CONFIG_CMD_DHCP 3190362c0cSNobuhiro Iwamatsu #define CONFIG_CMD_NFS 321251e490SNobuhiro Iwamatsu #define CONFIG_CMD_BOOTZ 33aa44ae32SNobuhiro Iwamatsu #define CONFIG_CMD_USB 34fd77b2ebSNobuhiro Iwamatsu #define CONFIG_CMD_FAT 35c71b4dd2SNobuhiro Iwamatsu #define CONFIG_CMD_SF 36c71b4dd2SNobuhiro Iwamatsu #define CONFIG_CMD_SPI 37b6c96f7fSNobuhiro Iwamatsu 38b6c96f7fSNobuhiro Iwamatsu #define CONFIG_FAT_WRITE 39b6c96f7fSNobuhiro Iwamatsu #define CONFIG_EXT4_WRITE 40b6c96f7fSNobuhiro Iwamatsu 41*69191fedSNobuhiro Iwamatsu #if defined(CONFIG_RMOBILE_EXTRAM_BOOT) 42*69191fedSNobuhiro Iwamatsu #define CONFIG_SYS_TEXT_BASE 0x70000000 43*69191fedSNobuhiro Iwamatsu #else 44c71b4dd2SNobuhiro Iwamatsu #define CONFIG_SYS_TEXT_BASE 0xE6304000 45*69191fedSNobuhiro Iwamatsu #endif 46*69191fedSNobuhiro Iwamatsu 47e1ee3747SNobuhiro Iwamatsu #define CONFIG_SYS_THUMB_BUILD 4871bb8c39SNobuhiro Iwamatsu #define CONFIG_SYS_GENERIC_BOARD 491251e490SNobuhiro Iwamatsu 50fd77b2ebSNobuhiro Iwamatsu /* Support File sytems */ 51fd77b2ebSNobuhiro Iwamatsu #define CONFIG_DOS_PARTITION 52fd77b2ebSNobuhiro Iwamatsu #define CONFIG_SUPPORT_VFAT 53fd77b2ebSNobuhiro Iwamatsu 54fd77b2ebSNobuhiro Iwamatsu 551251e490SNobuhiro Iwamatsu #define CONFIG_CMDLINE_TAG 561251e490SNobuhiro Iwamatsu #define CONFIG_SETUP_MEMORY_TAGS 571251e490SNobuhiro Iwamatsu #define CONFIG_INITRD_TAG 581251e490SNobuhiro Iwamatsu #define CONFIG_CMDLINE_EDITING 591251e490SNobuhiro Iwamatsu 601251e490SNobuhiro Iwamatsu #define CONFIG_OF_LIBFDT 611251e490SNobuhiro Iwamatsu #define BOARD_LATE_INIT 621251e490SNobuhiro Iwamatsu 631251e490SNobuhiro Iwamatsu #define CONFIG_BAUDRATE 38400 641251e490SNobuhiro Iwamatsu #define CONFIG_BOOTDELAY 3 651251e490SNobuhiro Iwamatsu #define CONFIG_BOOTARGS "" 661251e490SNobuhiro Iwamatsu 671251e490SNobuhiro Iwamatsu #define CONFIG_VERSION_VARIABLE 681251e490SNobuhiro Iwamatsu #undef CONFIG_SHOW_BOOT_PROGRESS 691251e490SNobuhiro Iwamatsu 701251e490SNobuhiro Iwamatsu #define CONFIG_ARCH_CPU_INIT 711251e490SNobuhiro Iwamatsu #define CONFIG_DISPLAY_CPUINFO 721251e490SNobuhiro Iwamatsu #define CONFIG_DISPLAY_BOARDINFO 731251e490SNobuhiro Iwamatsu #define CONFIG_BOARD_EARLY_INIT_F 741251e490SNobuhiro Iwamatsu #define CONFIG_TMU_TIMER 751251e490SNobuhiro Iwamatsu 761251e490SNobuhiro Iwamatsu /* STACK */ 77*69191fedSNobuhiro Iwamatsu #if defined(CONFIG_RMOBILE_EXTRAM_BOOT) 78*69191fedSNobuhiro Iwamatsu #define CONFIG_SYS_INIT_SP_ADDR 0x7003FFFC 79*69191fedSNobuhiro Iwamatsu #else 80*69191fedSNobuhiro Iwamatsu #define CONFIG_SYS_INIT_SP_ADDR 0xE633fffC 81*69191fedSNobuhiro Iwamatsu #endif 82*69191fedSNobuhiro Iwamatsu 831251e490SNobuhiro Iwamatsu #define STACK_AREA_SIZE 0xC000 841251e490SNobuhiro Iwamatsu #define LOW_LEVEL_MERAM_STACK \ 851251e490SNobuhiro Iwamatsu (CONFIG_SYS_INIT_SP_ADDR + STACK_AREA_SIZE - 4) 861251e490SNobuhiro Iwamatsu 871251e490SNobuhiro Iwamatsu /* MEMORY */ 881251e490SNobuhiro Iwamatsu #define KOELSCH_SDRAM_BASE 0x40000000 891251e490SNobuhiro Iwamatsu #define KOELSCH_SDRAM_SIZE (2048u * 1024 * 1024) 901251e490SNobuhiro Iwamatsu #define KOELSCH_UBOOT_SDRAM_SIZE (512 * 1024 * 1024) 911251e490SNobuhiro Iwamatsu 921251e490SNobuhiro Iwamatsu #define CONFIG_SYS_LONGHELP 931251e490SNobuhiro Iwamatsu #define CONFIG_SYS_CBSIZE 256 941251e490SNobuhiro Iwamatsu #define CONFIG_SYS_PBSIZE 256 951251e490SNobuhiro Iwamatsu #define CONFIG_SYS_MAXARGS 16 961251e490SNobuhiro Iwamatsu #define CONFIG_SYS_BARGSIZE 512 971251e490SNobuhiro Iwamatsu #define CONFIG_SYS_BAUDRATE_TABLE { 38400, 115200 } 981251e490SNobuhiro Iwamatsu 991251e490SNobuhiro Iwamatsu /* SCIF */ 1001251e490SNobuhiro Iwamatsu #define CONFIG_SCIF_CONSOLE 1011251e490SNobuhiro Iwamatsu #define CONFIG_CONS_SCIF0 102cc45a610SNobuhiro Iwamatsu #define CONFIG_SCIF_USE_EXT_CLK 1031251e490SNobuhiro Iwamatsu #undef CONFIG_SYS_CONSOLE_INFO_QUIET 1041251e490SNobuhiro Iwamatsu #undef CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE 1051251e490SNobuhiro Iwamatsu #undef CONFIG_SYS_CONSOLE_ENV_OVERWRITE 1061251e490SNobuhiro Iwamatsu 1071251e490SNobuhiro Iwamatsu #define CONFIG_SYS_MEMTEST_START (KOELSCH_SDRAM_BASE) 1081251e490SNobuhiro Iwamatsu #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + \ 1091251e490SNobuhiro Iwamatsu 504 * 1024 * 1024) 1101251e490SNobuhiro Iwamatsu #undef CONFIG_SYS_ALT_MEMTEST 1111251e490SNobuhiro Iwamatsu #undef CONFIG_SYS_MEMTEST_SCRATCH 1121251e490SNobuhiro Iwamatsu #undef CONFIG_SYS_LOADS_BAUD_CHANGE 1131251e490SNobuhiro Iwamatsu 1141251e490SNobuhiro Iwamatsu #define CONFIG_SYS_SDRAM_BASE (KOELSCH_SDRAM_BASE) 1151251e490SNobuhiro Iwamatsu #define CONFIG_SYS_SDRAM_SIZE (KOELSCH_UBOOT_SDRAM_SIZE) 1161251e490SNobuhiro Iwamatsu #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 0x7fc0) 1171251e490SNobuhiro Iwamatsu #define CONFIG_NR_DRAM_BANKS 1 1181251e490SNobuhiro Iwamatsu 1191251e490SNobuhiro Iwamatsu #define CONFIG_SYS_MONITOR_BASE 0x00000000 1201251e490SNobuhiro Iwamatsu #define CONFIG_SYS_MONITOR_LEN (256 * 1024) 1211251e490SNobuhiro Iwamatsu #define CONFIG_SYS_MALLOC_LEN (1 * 1024 * 1024) 1221251e490SNobuhiro Iwamatsu #define CONFIG_SYS_BOOTMAPSZ (8 * 1024 * 1024) 1231251e490SNobuhiro Iwamatsu 1241251e490SNobuhiro Iwamatsu /* FLASH */ 125c71b4dd2SNobuhiro Iwamatsu #define CONFIG_SYS_NO_FLASH 126c71b4dd2SNobuhiro Iwamatsu #define CONFIG_SPI 127c71b4dd2SNobuhiro Iwamatsu #define CONFIG_SH_QSPI 128c71b4dd2SNobuhiro Iwamatsu #define CONFIG_SPI_FLASH 129c71b4dd2SNobuhiro Iwamatsu #define CONFIG_SPI_FLASH_BAR 130c71b4dd2SNobuhiro Iwamatsu #define CONFIG_SPI_FLASH_SPANSION 131c71b4dd2SNobuhiro Iwamatsu /* ENV setting */ 132c71b4dd2SNobuhiro Iwamatsu #define CONFIG_ENV_IS_IN_SPI_FLASH 133c71b4dd2SNobuhiro Iwamatsu #define CONFIG_ENV_ADDR 0xC0000 134c71b4dd2SNobuhiro Iwamatsu 135c71b4dd2SNobuhiro Iwamatsu /* Common ENV setting */ 136c71b4dd2SNobuhiro Iwamatsu #define CONFIG_ENV_OVERWRITE 137c71b4dd2SNobuhiro Iwamatsu #define CONFIG_ENV_SECT_SIZE (256 * 1024) 1381251e490SNobuhiro Iwamatsu #define CONFIG_ENV_OFFSET (CONFIG_ENV_ADDR) 1391251e490SNobuhiro Iwamatsu #define CONFIG_ENV_SIZE (CONFIG_ENV_SECT_SIZE) 1401251e490SNobuhiro Iwamatsu #define CONFIG_ENV_SIZE_REDUND (CONFIG_SYS_MONITOR_LEN) 1411251e490SNobuhiro Iwamatsu 14290362c0cSNobuhiro Iwamatsu /* SH Ether */ 14390362c0cSNobuhiro Iwamatsu #define CONFIG_NET_MULTI 14490362c0cSNobuhiro Iwamatsu #define CONFIG_SH_ETHER 14590362c0cSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_USE_PORT 0 14690362c0cSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_PHY_ADDR 0x1 14790362c0cSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_RMII 14890362c0cSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_CACHE_WRITEBACK 14990362c0cSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_CACHE_INVALIDATE 15090362c0cSNobuhiro Iwamatsu #define CONFIG_PHYLIB 15190362c0cSNobuhiro Iwamatsu #define CONFIG_PHY_MICREL 15290362c0cSNobuhiro Iwamatsu #define CONFIG_BITBANGMII 15390362c0cSNobuhiro Iwamatsu #define CONFIG_BITBANGMII_MULTI 15490362c0cSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_ALIGNE_SIZE 64 15590362c0cSNobuhiro Iwamatsu 1561251e490SNobuhiro Iwamatsu /* Board Clock */ 157ae8e1d9dSNobuhiro Iwamatsu #define RMOBILE_XTAL_CLK 20000000u 158ae8e1d9dSNobuhiro Iwamatsu #define CONFIG_SYS_CLK_FREQ RMOBILE_XTAL_CLK 159ae8e1d9dSNobuhiro Iwamatsu #define CONFIG_SH_TMU_CLK_FREQ (CONFIG_SYS_CLK_FREQ / 2) 1601251e490SNobuhiro Iwamatsu #define CONFIG_SH_SCIF_CLK_FREQ 14745600 1611251e490SNobuhiro Iwamatsu #define CONFIG_SYS_TMU_CLK_DIV 4 1621251e490SNobuhiro Iwamatsu 163bb611cceSNobuhiro Iwamatsu /* i2c */ 164bb611cceSNobuhiro Iwamatsu #define CONFIG_CMD_I2C 165bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C 166bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH 167bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SLAVE 0x7F 168bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH_NUM_CONTROLLERS 3 169bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH_BASE0 0xE6500000 170bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH_SPEED0 400000 171bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH_BASE1 0xE6510000 172bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH_SPEED1 400000 173bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH_BASE2 0xE60B0000 174bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH_SPEED2 400000 175bb611cceSNobuhiro Iwamatsu #define CONFIG_SH_I2C_DATA_HIGH 4 176bb611cceSNobuhiro Iwamatsu #define CONFIG_SH_I2C_DATA_LOW 5 177bb611cceSNobuhiro Iwamatsu #define CONFIG_SH_I2C_CLOCK 10000000 178bb611cceSNobuhiro Iwamatsu 179b8f383b8SNobuhiro Iwamatsu #define CONFIG_SYS_I2C_POWERIC_ADDR 0x58 /* da9063 */ 180b8f383b8SNobuhiro Iwamatsu 181aa44ae32SNobuhiro Iwamatsu /* USB */ 182aa44ae32SNobuhiro Iwamatsu #define CONFIG_USB_EHCI 183aa44ae32SNobuhiro Iwamatsu #define CONFIG_USB_EHCI_RMOBILE 1845906fadeSNobuhiro Iwamatsu #define CONFIG_USB_MAX_CONTROLLER_COUNT 2 185aa44ae32SNobuhiro Iwamatsu #define CONFIG_USB_STORAGE 186aa44ae32SNobuhiro Iwamatsu 1871251e490SNobuhiro Iwamatsu #endif /* __KOELSCH_H */ 188