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 34*aa44ae32SNobuhiro Iwamatsu #define CONFIG_CMD_USB 35c71b4dd2SNobuhiro Iwamatsu 36c71b4dd2SNobuhiro Iwamatsu #define CONFIG_CMD_SF 37c71b4dd2SNobuhiro Iwamatsu #define CONFIG_CMD_SPI 38c71b4dd2SNobuhiro Iwamatsu #define CONFIG_SYS_TEXT_BASE 0xE6304000 39e1ee3747SNobuhiro Iwamatsu #define CONFIG_SYS_THUMB_BUILD 401251e490SNobuhiro Iwamatsu 411251e490SNobuhiro Iwamatsu #define CONFIG_CMDLINE_TAG 421251e490SNobuhiro Iwamatsu #define CONFIG_SETUP_MEMORY_TAGS 431251e490SNobuhiro Iwamatsu #define CONFIG_INITRD_TAG 441251e490SNobuhiro Iwamatsu #define CONFIG_CMDLINE_EDITING 451251e490SNobuhiro Iwamatsu 461251e490SNobuhiro Iwamatsu #define CONFIG_OF_LIBFDT 471251e490SNobuhiro Iwamatsu #define BOARD_LATE_INIT 481251e490SNobuhiro Iwamatsu 491251e490SNobuhiro Iwamatsu #define CONFIG_BAUDRATE 38400 501251e490SNobuhiro Iwamatsu #define CONFIG_BOOTDELAY 3 511251e490SNobuhiro Iwamatsu #define CONFIG_BOOTARGS "" 521251e490SNobuhiro Iwamatsu 531251e490SNobuhiro Iwamatsu #define CONFIG_VERSION_VARIABLE 541251e490SNobuhiro Iwamatsu #undef CONFIG_SHOW_BOOT_PROGRESS 551251e490SNobuhiro Iwamatsu 561251e490SNobuhiro Iwamatsu #define CONFIG_ARCH_CPU_INIT 571251e490SNobuhiro Iwamatsu #define CONFIG_DISPLAY_CPUINFO 581251e490SNobuhiro Iwamatsu #define CONFIG_DISPLAY_BOARDINFO 591251e490SNobuhiro Iwamatsu #define CONFIG_BOARD_EARLY_INIT_F 601251e490SNobuhiro Iwamatsu #define CONFIG_TMU_TIMER 611251e490SNobuhiro Iwamatsu 621251e490SNobuhiro Iwamatsu /* STACK */ 631251e490SNobuhiro Iwamatsu #define CONFIG_SYS_INIT_SP_ADDR 0xE633fffc 641251e490SNobuhiro Iwamatsu #define STACK_AREA_SIZE 0xC000 651251e490SNobuhiro Iwamatsu #define LOW_LEVEL_MERAM_STACK \ 661251e490SNobuhiro Iwamatsu (CONFIG_SYS_INIT_SP_ADDR + STACK_AREA_SIZE - 4) 671251e490SNobuhiro Iwamatsu 681251e490SNobuhiro Iwamatsu /* MEMORY */ 691251e490SNobuhiro Iwamatsu #define KOELSCH_SDRAM_BASE 0x40000000 701251e490SNobuhiro Iwamatsu #define KOELSCH_SDRAM_SIZE (2048u * 1024 * 1024) 711251e490SNobuhiro Iwamatsu #define KOELSCH_UBOOT_SDRAM_SIZE (512 * 1024 * 1024) 721251e490SNobuhiro Iwamatsu 731251e490SNobuhiro Iwamatsu #define CONFIG_SYS_LONGHELP 741251e490SNobuhiro Iwamatsu #define CONFIG_SYS_CBSIZE 256 751251e490SNobuhiro Iwamatsu #define CONFIG_SYS_PBSIZE 256 761251e490SNobuhiro Iwamatsu #define CONFIG_SYS_MAXARGS 16 771251e490SNobuhiro Iwamatsu #define CONFIG_SYS_BARGSIZE 512 781251e490SNobuhiro Iwamatsu #define CONFIG_SYS_BAUDRATE_TABLE { 38400, 115200 } 791251e490SNobuhiro Iwamatsu 801251e490SNobuhiro Iwamatsu /* SCIF */ 811251e490SNobuhiro Iwamatsu #define CONFIG_SCIF_CONSOLE 821251e490SNobuhiro Iwamatsu #define CONFIG_CONS_SCIF0 831251e490SNobuhiro Iwamatsu #undef CONFIG_SYS_CONSOLE_INFO_QUIET 841251e490SNobuhiro Iwamatsu #undef CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE 851251e490SNobuhiro Iwamatsu #undef CONFIG_SYS_CONSOLE_ENV_OVERWRITE 861251e490SNobuhiro Iwamatsu 871251e490SNobuhiro Iwamatsu #define CONFIG_SYS_MEMTEST_START (KOELSCH_SDRAM_BASE) 881251e490SNobuhiro Iwamatsu #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + \ 891251e490SNobuhiro Iwamatsu 504 * 1024 * 1024) 901251e490SNobuhiro Iwamatsu #undef CONFIG_SYS_ALT_MEMTEST 911251e490SNobuhiro Iwamatsu #undef CONFIG_SYS_MEMTEST_SCRATCH 921251e490SNobuhiro Iwamatsu #undef CONFIG_SYS_LOADS_BAUD_CHANGE 931251e490SNobuhiro Iwamatsu 941251e490SNobuhiro Iwamatsu #define CONFIG_SYS_SDRAM_BASE (KOELSCH_SDRAM_BASE) 951251e490SNobuhiro Iwamatsu #define CONFIG_SYS_SDRAM_SIZE (KOELSCH_UBOOT_SDRAM_SIZE) 961251e490SNobuhiro Iwamatsu #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 0x7fc0) 971251e490SNobuhiro Iwamatsu #define CONFIG_NR_DRAM_BANKS 1 981251e490SNobuhiro Iwamatsu 991251e490SNobuhiro Iwamatsu #define CONFIG_SYS_MONITOR_BASE 0x00000000 1001251e490SNobuhiro Iwamatsu #define CONFIG_SYS_MONITOR_LEN (256 * 1024) 1011251e490SNobuhiro Iwamatsu #define CONFIG_SYS_MALLOC_LEN (1 * 1024 * 1024) 1021251e490SNobuhiro Iwamatsu #define CONFIG_SYS_BOOTMAPSZ (8 * 1024 * 1024) 1031251e490SNobuhiro Iwamatsu 1041251e490SNobuhiro Iwamatsu /* FLASH */ 105c71b4dd2SNobuhiro Iwamatsu #define CONFIG_SYS_NO_FLASH 106c71b4dd2SNobuhiro Iwamatsu #define CONFIG_SPI 107c71b4dd2SNobuhiro Iwamatsu #define CONFIG_SH_QSPI 108c71b4dd2SNobuhiro Iwamatsu #define CONFIG_SPI_FLASH 109c71b4dd2SNobuhiro Iwamatsu #define CONFIG_SPI_FLASH_BAR 110c71b4dd2SNobuhiro Iwamatsu #define CONFIG_SPI_FLASH_SPANSION 111c71b4dd2SNobuhiro Iwamatsu /* ENV setting */ 112c71b4dd2SNobuhiro Iwamatsu #define CONFIG_ENV_IS_IN_SPI_FLASH 113c71b4dd2SNobuhiro Iwamatsu #define CONFIG_ENV_ADDR 0xC0000 114c71b4dd2SNobuhiro Iwamatsu 115c71b4dd2SNobuhiro Iwamatsu /* Common ENV setting */ 116c71b4dd2SNobuhiro Iwamatsu #define CONFIG_ENV_OVERWRITE 117c71b4dd2SNobuhiro Iwamatsu #define CONFIG_ENV_SECT_SIZE (256 * 1024) 1181251e490SNobuhiro Iwamatsu #define CONFIG_ENV_OFFSET (CONFIG_ENV_ADDR) 1191251e490SNobuhiro Iwamatsu #define CONFIG_ENV_SIZE (CONFIG_ENV_SECT_SIZE) 1201251e490SNobuhiro Iwamatsu #define CONFIG_ENV_SIZE_REDUND (CONFIG_SYS_MONITOR_LEN) 1211251e490SNobuhiro Iwamatsu 12290362c0cSNobuhiro Iwamatsu /* SH Ether */ 12390362c0cSNobuhiro Iwamatsu #define CONFIG_NET_MULTI 12490362c0cSNobuhiro Iwamatsu #define CONFIG_SH_ETHER 12590362c0cSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_USE_PORT 0 12690362c0cSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_PHY_ADDR 0x1 12790362c0cSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_RMII 12890362c0cSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_CACHE_WRITEBACK 12990362c0cSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_CACHE_INVALIDATE 13090362c0cSNobuhiro Iwamatsu #define CONFIG_PHYLIB 13190362c0cSNobuhiro Iwamatsu #define CONFIG_PHY_MICREL 13290362c0cSNobuhiro Iwamatsu #define CONFIG_BITBANGMII 13390362c0cSNobuhiro Iwamatsu #define CONFIG_BITBANGMII_MULTI 13490362c0cSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_ALIGNE_SIZE 64 13590362c0cSNobuhiro Iwamatsu 1361251e490SNobuhiro Iwamatsu /* Board Clock */ 137ae8e1d9dSNobuhiro Iwamatsu #define RMOBILE_XTAL_CLK 20000000u 138ae8e1d9dSNobuhiro Iwamatsu #define CONFIG_SYS_CLK_FREQ RMOBILE_XTAL_CLK 139ae8e1d9dSNobuhiro Iwamatsu #define CONFIG_SH_TMU_CLK_FREQ (CONFIG_SYS_CLK_FREQ / 2) 1401251e490SNobuhiro Iwamatsu #define CONFIG_SH_SCIF_CLK_FREQ 14745600 1411251e490SNobuhiro Iwamatsu #define CONFIG_SYS_TMU_CLK_DIV 4 1421251e490SNobuhiro Iwamatsu 143bb611cceSNobuhiro Iwamatsu /* i2c */ 144bb611cceSNobuhiro Iwamatsu #define CONFIG_CMD_I2C 145bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C 146bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH 147bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SLAVE 0x7F 148bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH_NUM_CONTROLLERS 3 149bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH_BASE0 0xE6500000 150bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH_SPEED0 400000 151bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH_BASE1 0xE6510000 152bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH_SPEED1 400000 153bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH_BASE2 0xE60B0000 154bb611cceSNobuhiro Iwamatsu #define CONFIG_SYS_I2C_SH_SPEED2 400000 155bb611cceSNobuhiro Iwamatsu #define CONFIG_SH_I2C_DATA_HIGH 4 156bb611cceSNobuhiro Iwamatsu #define CONFIG_SH_I2C_DATA_LOW 5 157bb611cceSNobuhiro Iwamatsu #define CONFIG_SH_I2C_CLOCK 10000000 158bb611cceSNobuhiro Iwamatsu 159b8f383b8SNobuhiro Iwamatsu #define CONFIG_SYS_I2C_POWERIC_ADDR 0x58 /* da9063 */ 160b8f383b8SNobuhiro Iwamatsu 161*aa44ae32SNobuhiro Iwamatsu /* USB */ 162*aa44ae32SNobuhiro Iwamatsu #define CONFIG_USB_EHCI 163*aa44ae32SNobuhiro Iwamatsu #define CONFIG_USB_EHCI_RMOBILE 164*aa44ae32SNobuhiro Iwamatsu #define CONFIG_USB_MAX_CONTROLLER_COUNT 3 165*aa44ae32SNobuhiro Iwamatsu #define CONFIG_USB_STORAGE 166*aa44ae32SNobuhiro Iwamatsu 1671251e490SNobuhiro Iwamatsu #endif /* __KOELSCH_H */ 168