11a2621baSYoshihiro Shimoda /* 21a2621baSYoshihiro Shimoda * Configuation settings for the sh7752evb board 31a2621baSYoshihiro Shimoda * 41a2621baSYoshihiro Shimoda * Copyright (C) 2012 Renesas Solutions Corp. 51a2621baSYoshihiro Shimoda * 61a459660SWolfgang Denk * SPDX-License-Identifier: GPL-2.0+ 71a2621baSYoshihiro Shimoda */ 81a2621baSYoshihiro Shimoda 91a2621baSYoshihiro Shimoda #ifndef __SH7752EVB_H 101a2621baSYoshihiro Shimoda #define __SH7752EVB_H 111a2621baSYoshihiro Shimoda 121a2621baSYoshihiro Shimoda #define CONFIG_CPU_SH7752 1 131a2621baSYoshihiro Shimoda #define CONFIG_SH7752EVB 1 141a2621baSYoshihiro Shimoda 151a2621baSYoshihiro Shimoda #define CONFIG_SYS_TEXT_BASE 0x5ff80000 161a2621baSYoshihiro Shimoda 171a2621baSYoshihiro Shimoda #define CONFIG_CMD_DFL 181a2621baSYoshihiro Shimoda #define CONFIG_CMD_SDRAM 191a2621baSYoshihiro Shimoda #define CONFIG_CMD_MD5SUM 201a2621baSYoshihiro Shimoda #define CONFIG_MD5 211a2621baSYoshihiro Shimoda #define CONFIG_DOS_PARTITION 221a2621baSYoshihiro Shimoda #define CONFIG_MAC_PARTITION 231a2621baSYoshihiro Shimoda 241a2621baSYoshihiro Shimoda #define CONFIG_BAUDRATE 115200 251a2621baSYoshihiro Shimoda #define CONFIG_BOOTARGS "console=ttySC2,115200 root=/dev/nfs ip=dhcp" 261a2621baSYoshihiro Shimoda 27*18a40e84SVladimir Zapolskiy #define CONFIG_DISPLAY_BOARDINFO 281a2621baSYoshihiro Shimoda #undef CONFIG_SHOW_BOOT_PROGRESS 291a2621baSYoshihiro Shimoda #define CONFIG_CMDLINE_EDITING 301a2621baSYoshihiro Shimoda #define CONFIG_AUTO_COMPLETE 311a2621baSYoshihiro Shimoda 321a2621baSYoshihiro Shimoda /* MEMORY */ 331a2621baSYoshihiro Shimoda #define SH7752EVB_SDRAM_BASE (0x40000000) 341a2621baSYoshihiro Shimoda #define SH7752EVB_SDRAM_SIZE (512 * 1024 * 1024) 351a2621baSYoshihiro Shimoda 361a2621baSYoshihiro Shimoda #define CONFIG_SYS_LONGHELP 371a2621baSYoshihiro Shimoda #define CONFIG_SYS_CBSIZE 256 381a2621baSYoshihiro Shimoda #define CONFIG_SYS_PBSIZE 256 391a2621baSYoshihiro Shimoda #define CONFIG_SYS_MAXARGS 16 401a2621baSYoshihiro Shimoda #define CONFIG_SYS_BARGSIZE 512 411a2621baSYoshihiro Shimoda #define CONFIG_SYS_BAUDRATE_TABLE { 115200 } 421a2621baSYoshihiro Shimoda 431a2621baSYoshihiro Shimoda /* SCIF */ 441a2621baSYoshihiro Shimoda #define CONFIG_SCIF_CONSOLE 1 451a2621baSYoshihiro Shimoda #define CONFIG_CONS_SCIF2 1 461a2621baSYoshihiro Shimoda 471a2621baSYoshihiro Shimoda #define CONFIG_SYS_MEMTEST_START (SH7752EVB_SDRAM_BASE) 481a2621baSYoshihiro Shimoda #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + \ 491a2621baSYoshihiro Shimoda 480 * 1024 * 1024) 501a2621baSYoshihiro Shimoda #undef CONFIG_SYS_ALT_MEMTEST 511a2621baSYoshihiro Shimoda #undef CONFIG_SYS_MEMTEST_SCRATCH 521a2621baSYoshihiro Shimoda #undef CONFIG_SYS_LOADS_BAUD_CHANGE 531a2621baSYoshihiro Shimoda 541a2621baSYoshihiro Shimoda #define CONFIG_SYS_SDRAM_BASE (SH7752EVB_SDRAM_BASE) 551a2621baSYoshihiro Shimoda #define CONFIG_SYS_SDRAM_SIZE (SH7752EVB_SDRAM_SIZE) 561a2621baSYoshihiro Shimoda #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + \ 571a2621baSYoshihiro Shimoda 128 * 1024 * 1024) 581a2621baSYoshihiro Shimoda 591a2621baSYoshihiro Shimoda #define CONFIG_SYS_MONITOR_BASE 0x00000000 601a2621baSYoshihiro Shimoda #define CONFIG_SYS_MONITOR_LEN (512 * 1024) 611a2621baSYoshihiro Shimoda #define CONFIG_SYS_MALLOC_LEN (4 * 1024 * 1024) 621a2621baSYoshihiro Shimoda #define CONFIG_SYS_BOOTMAPSZ (8 * 1024 * 1024) 631a2621baSYoshihiro Shimoda 641a2621baSYoshihiro Shimoda /* FLASH */ 651a2621baSYoshihiro Shimoda #define CONFIG_SYS_NO_FLASH 661a2621baSYoshihiro Shimoda 671a2621baSYoshihiro Shimoda /* Ether */ 681a2621baSYoshihiro Shimoda #define CONFIG_SH_ETHER 1 691a2621baSYoshihiro Shimoda #define CONFIG_SH_ETHER_USE_PORT 0 701a2621baSYoshihiro Shimoda #define CONFIG_SH_ETHER_PHY_ADDR 18 711a2621baSYoshihiro Shimoda #define CONFIG_SH_ETHER_CACHE_WRITEBACK 1 721a2621baSYoshihiro Shimoda #define CONFIG_SH_ETHER_USE_GETHER 1 731a2621baSYoshihiro Shimoda #define CONFIG_PHYLIB 741a2621baSYoshihiro Shimoda #define CONFIG_BITBANGMII 751a2621baSYoshihiro Shimoda #define CONFIG_BITBANGMII_MULTI 761a2621baSYoshihiro Shimoda #define CONFIG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_RGMII 771a2621baSYoshihiro Shimoda #define CONFIG_PHY_VITESSE 781a2621baSYoshihiro Shimoda 791a2621baSYoshihiro Shimoda #define SH7752EVB_ETHERNET_MAC_BASE_SPI 0x00090000 801a2621baSYoshihiro Shimoda #define SH7752EVB_SPI_SECTOR_SIZE (64 * 1024) 811a2621baSYoshihiro Shimoda #define SH7752EVB_ETHERNET_MAC_BASE SH7752EVB_ETHERNET_MAC_BASE_SPI 821a2621baSYoshihiro Shimoda #define SH7752EVB_ETHERNET_MAC_SIZE 17 831a2621baSYoshihiro Shimoda #define SH7752EVB_ETHERNET_NUM_CH 2 841a2621baSYoshihiro Shimoda #define CONFIG_BOARD_LATE_INIT 851a2621baSYoshihiro Shimoda 861a2621baSYoshihiro Shimoda /* SPI */ 871a2621baSYoshihiro Shimoda #define CONFIG_SH_SPI 1 881a2621baSYoshihiro Shimoda #define CONFIG_SH_SPI_BASE 0xfe002000 891a2621baSYoshihiro Shimoda 901a2621baSYoshihiro Shimoda /* MMCIF */ 911a2621baSYoshihiro Shimoda #define CONFIG_MMC 1 921a2621baSYoshihiro Shimoda #define CONFIG_GENERIC_MMC 1 931a2621baSYoshihiro Shimoda #define CONFIG_SH_MMCIF 1 941a2621baSYoshihiro Shimoda #define CONFIG_SH_MMCIF_ADDR 0xffcb0000 951a2621baSYoshihiro Shimoda #define CONFIG_SH_MMCIF_CLK 48000000 961a2621baSYoshihiro Shimoda 971a2621baSYoshihiro Shimoda /* ENV setting */ 981a2621baSYoshihiro Shimoda #define CONFIG_ENV_IS_EMBEDDED 991a2621baSYoshihiro Shimoda #define CONFIG_ENV_IS_IN_SPI_FLASH 1001a2621baSYoshihiro Shimoda #define CONFIG_ENV_SECT_SIZE (64 * 1024) 1011a2621baSYoshihiro Shimoda #define CONFIG_ENV_ADDR (0x00080000) 1021a2621baSYoshihiro Shimoda #define CONFIG_ENV_OFFSET (CONFIG_ENV_ADDR) 1031a2621baSYoshihiro Shimoda #define CONFIG_ENV_OVERWRITE 1 1041a2621baSYoshihiro Shimoda #define CONFIG_ENV_SIZE (CONFIG_ENV_SECT_SIZE) 1051a2621baSYoshihiro Shimoda #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SECT_SIZE) 1061a2621baSYoshihiro Shimoda #define CONFIG_EXTRA_ENV_SETTINGS \ 1071a2621baSYoshihiro Shimoda "netboot=bootp; bootm\0" 1081a2621baSYoshihiro Shimoda 1091a2621baSYoshihiro Shimoda /* Board Clock */ 1101a2621baSYoshihiro Shimoda #define CONFIG_SYS_CLK_FREQ 48000000 111684a501eSNobuhiro Iwamatsu #define CONFIG_SH_TMU_CLK_FREQ CONFIG_SYS_CLK_FREQ 112684a501eSNobuhiro Iwamatsu #define CONFIG_SH_SCIF_CLK_FREQ CONFIG_SYS_CLK_FREQ 1131a2621baSYoshihiro Shimoda #define CONFIG_SYS_TMU_CLK_DIV 4 1141a2621baSYoshihiro Shimoda #endif /* __SH7752EVB_H */ 115