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 41c71b4dd2SNobuhiro Iwamatsu #define CONFIG_SYS_TEXT_BASE 0xE6304000 42e1ee3747SNobuhiro Iwamatsu #define CONFIG_SYS_THUMB_BUILD 4371bb8c39SNobuhiro Iwamatsu #define CONFIG_SYS_GENERIC_BOARD 441251e490SNobuhiro Iwamatsu 45fd77b2ebSNobuhiro Iwamatsu /* Support File sytems */ 46fd77b2ebSNobuhiro Iwamatsu #define CONFIG_DOS_PARTITION 47fd77b2ebSNobuhiro Iwamatsu #define CONFIG_SUPPORT_VFAT 48fd77b2ebSNobuhiro Iwamatsu 49fd77b2ebSNobuhiro Iwamatsu 501251e490SNobuhiro Iwamatsu #define CONFIG_CMDLINE_TAG 511251e490SNobuhiro Iwamatsu #define CONFIG_SETUP_MEMORY_TAGS 521251e490SNobuhiro Iwamatsu #define CONFIG_INITRD_TAG 531251e490SNobuhiro Iwamatsu #define CONFIG_CMDLINE_EDITING 541251e490SNobuhiro Iwamatsu 551251e490SNobuhiro Iwamatsu #define CONFIG_OF_LIBFDT 561251e490SNobuhiro Iwamatsu #define BOARD_LATE_INIT 571251e490SNobuhiro Iwamatsu 581251e490SNobuhiro Iwamatsu #define CONFIG_BAUDRATE 38400 591251e490SNobuhiro Iwamatsu #define CONFIG_BOOTDELAY 3 601251e490SNobuhiro Iwamatsu #define CONFIG_BOOTARGS "" 611251e490SNobuhiro Iwamatsu 621251e490SNobuhiro Iwamatsu #define CONFIG_VERSION_VARIABLE 631251e490SNobuhiro Iwamatsu #undef CONFIG_SHOW_BOOT_PROGRESS 641251e490SNobuhiro Iwamatsu 651251e490SNobuhiro Iwamatsu #define CONFIG_ARCH_CPU_INIT 661251e490SNobuhiro Iwamatsu #define CONFIG_DISPLAY_CPUINFO 671251e490SNobuhiro Iwamatsu #define CONFIG_DISPLAY_BOARDINFO 681251e490SNobuhiro Iwamatsu #define CONFIG_BOARD_EARLY_INIT_F 691251e490SNobuhiro Iwamatsu #define CONFIG_TMU_TIMER 701251e490SNobuhiro Iwamatsu 711251e490SNobuhiro Iwamatsu /* STACK */ 721251e490SNobuhiro Iwamatsu #define CONFIG_SYS_INIT_SP_ADDR 0xE633fffc 731251e490SNobuhiro Iwamatsu #define STACK_AREA_SIZE 0xC000 741251e490SNobuhiro Iwamatsu #define LOW_LEVEL_MERAM_STACK \ 751251e490SNobuhiro Iwamatsu (CONFIG_SYS_INIT_SP_ADDR + STACK_AREA_SIZE - 4) 761251e490SNobuhiro Iwamatsu 771251e490SNobuhiro Iwamatsu /* MEMORY */ 781251e490SNobuhiro Iwamatsu #define KOELSCH_SDRAM_BASE 0x40000000 791251e490SNobuhiro Iwamatsu #define KOELSCH_SDRAM_SIZE (2048u * 1024 * 1024) 801251e490SNobuhiro Iwamatsu #define KOELSCH_UBOOT_SDRAM_SIZE (512 * 1024 * 1024) 811251e490SNobuhiro Iwamatsu 821251e490SNobuhiro Iwamatsu #define CONFIG_SYS_LONGHELP 831251e490SNobuhiro Iwamatsu #define CONFIG_SYS_CBSIZE 256 841251e490SNobuhiro Iwamatsu #define CONFIG_SYS_PBSIZE 256 851251e490SNobuhiro Iwamatsu #define CONFIG_SYS_MAXARGS 16 861251e490SNobuhiro Iwamatsu #define CONFIG_SYS_BARGSIZE 512 871251e490SNobuhiro Iwamatsu #define CONFIG_SYS_BAUDRATE_TABLE { 38400, 115200 } 881251e490SNobuhiro Iwamatsu 891251e490SNobuhiro Iwamatsu /* SCIF */ 901251e490SNobuhiro Iwamatsu #define CONFIG_SCIF_CONSOLE 911251e490SNobuhiro Iwamatsu #define CONFIG_CONS_SCIF0 92*cc45a610SNobuhiro Iwamatsu #define CONFIG_SCIF_USE_EXT_CLK 931251e490SNobuhiro Iwamatsu #undef CONFIG_SYS_CONSOLE_INFO_QUIET 941251e490SNobuhiro Iwamatsu #undef CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE 951251e490SNobuhiro Iwamatsu #undef CONFIG_SYS_CONSOLE_ENV_OVERWRITE 961251e490SNobuhiro Iwamatsu 971251e490SNobuhiro Iwamatsu #define CONFIG_SYS_MEMTEST_START (KOELSCH_SDRAM_BASE) 981251e490SNobuhiro Iwamatsu #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + \ 991251e490SNobuhiro Iwamatsu 504 * 1024 * 1024) 1001251e490SNobuhiro Iwamatsu #undef CONFIG_SYS_ALT_MEMTEST 1011251e490SNobuhiro Iwamatsu #undef CONFIG_SYS_MEMTEST_SCRATCH 1021251e490SNobuhiro Iwamatsu #undef CONFIG_SYS_LOADS_BAUD_CHANGE 1031251e490SNobuhiro Iwamatsu 1041251e490SNobuhiro Iwamatsu #define CONFIG_SYS_SDRAM_BASE (KOELSCH_SDRAM_BASE) 1051251e490SNobuhiro Iwamatsu #define CONFIG_SYS_SDRAM_SIZE (KOELSCH_UBOOT_SDRAM_SIZE) 1061251e490SNobuhiro Iwamatsu #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 0x7fc0) 1071251e490SNobuhiro Iwamatsu #define CONFIG_NR_DRAM_BANKS 1 1081251e490SNobuhiro Iwamatsu 1091251e490SNobuhiro Iwamatsu #define CONFIG_SYS_MONITOR_BASE 0x00000000 1101251e490SNobuhiro Iwamatsu #define CONFIG_SYS_MONITOR_LEN (256 * 1024) 1111251e490SNobuhiro Iwamatsu #define CONFIG_SYS_MALLOC_LEN (1 * 1024 * 1024) 1121251e490SNobuhiro Iwamatsu #define CONFIG_SYS_BOOTMAPSZ (8 * 1024 * 1024) 1131251e490SNobuhiro Iwamatsu 1141251e490SNobuhiro Iwamatsu /* FLASH */ 115c71b4dd2SNobuhiro Iwamatsu #define CONFIG_SYS_NO_FLASH 116c71b4dd2SNobuhiro Iwamatsu #define CONFIG_SPI 117c71b4dd2SNobuhiro Iwamatsu #define CONFIG_SH_QSPI 118c71b4dd2SNobuhiro Iwamatsu #define CONFIG_SPI_FLASH 119c71b4dd2SNobuhiro Iwamatsu #define CONFIG_SPI_FLASH_BAR 120c71b4dd2SNobuhiro Iwamatsu #define CONFIG_SPI_FLASH_SPANSION 121c71b4dd2SNobuhiro Iwamatsu /* ENV setting */ 122c71b4dd2SNobuhiro Iwamatsu #define CONFIG_ENV_IS_IN_SPI_FLASH 123c71b4dd2SNobuhiro Iwamatsu #define CONFIG_ENV_ADDR 0xC0000 124c71b4dd2SNobuhiro Iwamatsu 125c71b4dd2SNobuhiro Iwamatsu /* Common ENV setting */ 126c71b4dd2SNobuhiro Iwamatsu #define CONFIG_ENV_OVERWRITE 127c71b4dd2SNobuhiro Iwamatsu #define CONFIG_ENV_SECT_SIZE (256 * 1024) 1281251e490SNobuhiro Iwamatsu #define CONFIG_ENV_OFFSET (CONFIG_ENV_ADDR) 1291251e490SNobuhiro Iwamatsu #define CONFIG_ENV_SIZE (CONFIG_ENV_SECT_SIZE) 1301251e490SNobuhiro Iwamatsu #define CONFIG_ENV_SIZE_REDUND (CONFIG_SYS_MONITOR_LEN) 1311251e490SNobuhiro Iwamatsu 13290362c0cSNobuhiro Iwamatsu /* SH Ether */ 13390362c0cSNobuhiro Iwamatsu #define CONFIG_NET_MULTI 13490362c0cSNobuhiro Iwamatsu #define CONFIG_SH_ETHER 13590362c0cSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_USE_PORT 0 13690362c0cSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_PHY_ADDR 0x1 13790362c0cSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_RMII 13890362c0cSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_CACHE_WRITEBACK 13990362c0cSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_CACHE_INVALIDATE 14090362c0cSNobuhiro Iwamatsu #define CONFIG_PHYLIB 14190362c0cSNobuhiro Iwamatsu #define CONFIG_PHY_MICREL 14290362c0cSNobuhiro Iwamatsu #define CONFIG_BITBANGMII 14390362c0cSNobuhiro Iwamatsu #define CONFIG_BITBANGMII_MULTI 14490362c0cSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_ALIGNE_SIZE 64 14590362c0cSNobuhiro Iwamatsu 1461251e490SNobuhiro Iwamatsu /* Board Clock */ 147ae8e1d9dSNobuhiro Iwamatsu #define RMOBILE_XTAL_CLK 20000000u 148ae8e1d9dSNobuhiro Iwamatsu #define CONFIG_SYS_CLK_FREQ RMOBILE_XTAL_CLK 149ae8e1d9dSNobuhiro Iwamatsu #define CONFIG_SH_TMU_CLK_FREQ (CONFIG_SYS_CLK_FREQ / 2) 1501251e490SNobuhiro Iwamatsu #define CONFIG_SH_SCIF_CLK_FREQ 14745600 1511251e490SNobuhiro Iwamatsu #define CONFIG_SYS_TMU_CLK_DIV 4 1521251e490SNobuhiro Iwamatsu 153bb611cceSNobuhiro Iwamatsu /* i2c */ 154bb611cceSNobuhiro Iwamatsu #define CONFIG_CMD_I2C 155bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C 156bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH 157bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SLAVE 0x7F 158bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH_NUM_CONTROLLERS 3 159bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH_BASE0 0xE6500000 160bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH_SPEED0 400000 161bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH_BASE1 0xE6510000 162bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH_SPEED1 400000 163bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH_BASE2 0xE60B0000 164bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH_SPEED2 400000 165bb611cceSNobuhiro Iwamatsu #define CONFIG_SH_I2C_DATA_HIGH 4 166bb611cceSNobuhiro Iwamatsu #define CONFIG_SH_I2C_DATA_LOW 5 167bb611cceSNobuhiro Iwamatsu #define CONFIG_SH_I2C_CLOCK 10000000 168bb611cceSNobuhiro Iwamatsu 169b8f383b8SNobuhiro Iwamatsu #define CONFIG_SYS_I2C_POWERIC_ADDR 0x58 /* da9063 */ 170b8f383b8SNobuhiro Iwamatsu 171aa44ae32SNobuhiro Iwamatsu /* USB */ 172aa44ae32SNobuhiro Iwamatsu #define CONFIG_USB_EHCI 173aa44ae32SNobuhiro Iwamatsu #define CONFIG_USB_EHCI_RMOBILE 1745906fadeSNobuhiro Iwamatsu #define CONFIG_USB_MAX_CONTROLLER_COUNT 2 175aa44ae32SNobuhiro Iwamatsu #define CONFIG_USB_STORAGE 176aa44ae32SNobuhiro Iwamatsu 1771251e490SNobuhiro Iwamatsu #endif /* __KOELSCH_H */ 178