174d9c16aSNobuhiro Iwamatsu /* 274d9c16aSNobuhiro Iwamatsu * Configuation settings for the ESPT-GIGA board 374d9c16aSNobuhiro Iwamatsu * 474d9c16aSNobuhiro Iwamatsu * Copyright (C) 2008 Renesas Solutions Corp. 574d9c16aSNobuhiro Iwamatsu * Copyright (C) 2008 Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> 674d9c16aSNobuhiro Iwamatsu * 7*1a459660SWolfgang Denk * SPDX-License-Identifier: GPL-2.0+ 874d9c16aSNobuhiro Iwamatsu */ 974d9c16aSNobuhiro Iwamatsu 1074d9c16aSNobuhiro Iwamatsu #ifndef __ESPT_H 1174d9c16aSNobuhiro Iwamatsu #define __ESPT_H 1274d9c16aSNobuhiro Iwamatsu 1374d9c16aSNobuhiro Iwamatsu #define CONFIG_SH 1 1474d9c16aSNobuhiro Iwamatsu #define CONFIG_SH4 1 1574d9c16aSNobuhiro Iwamatsu #define CONFIG_CPU_SH7763 1 1674d9c16aSNobuhiro Iwamatsu #define CONFIG_ESPT 1 1774d9c16aSNobuhiro Iwamatsu #define __LITTLE_ENDIAN 1 1874d9c16aSNobuhiro Iwamatsu 1974d9c16aSNobuhiro Iwamatsu /* 2074d9c16aSNobuhiro Iwamatsu * Command line configuration. 2174d9c16aSNobuhiro Iwamatsu */ 2274d9c16aSNobuhiro Iwamatsu #define CONFIG_CMD_SDRAM 2374d9c16aSNobuhiro Iwamatsu #define CONFIG_CMD_FLASH 2474d9c16aSNobuhiro Iwamatsu #define CONFIG_CMD_MEMORY 2574d9c16aSNobuhiro Iwamatsu #define CONFIG_CMD_NET 2625a028bbSYoshihiro Shimoda #define CONFIG_CMD_MII 2774d9c16aSNobuhiro Iwamatsu #define CONFIG_CMD_PING 2874d9c16aSNobuhiro Iwamatsu #define CONFIG_CMD_ENV 2974d9c16aSNobuhiro Iwamatsu #define CONFIG_CMD_NFS 3074d9c16aSNobuhiro Iwamatsu #define CONFIG_CMD_SAVEENV 3174d9c16aSNobuhiro Iwamatsu 3274d9c16aSNobuhiro Iwamatsu #define CONFIG_BOOTDELAY -1 3374d9c16aSNobuhiro Iwamatsu #define CONFIG_BOOTARGS "console=ttySC0,115200 root=1f01" 3474d9c16aSNobuhiro Iwamatsu #define CONFIG_ENV_OVERWRITE 1 3574d9c16aSNobuhiro Iwamatsu 3674d9c16aSNobuhiro Iwamatsu #define CONFIG_VERSION_VARIABLE 3774d9c16aSNobuhiro Iwamatsu #undef CONFIG_SHOW_BOOT_PROGRESS 3874d9c16aSNobuhiro Iwamatsu 3974d9c16aSNobuhiro Iwamatsu /* SCIF */ 4074d9c16aSNobuhiro Iwamatsu #define CONFIG_SCIF_CONSOLE 1 4174d9c16aSNobuhiro Iwamatsu #define CONFIG_BAUDRATE 115200 4274d9c16aSNobuhiro Iwamatsu #define CONFIG_CONS_SCIF0 1 4374d9c16aSNobuhiro Iwamatsu 4454fbf475SNobuhiro Iwamatsu #define CONFIG_SYS_TEXT_BASE 0x8FFC0000 4574d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_LONGHELP /* undef to save memory */ 4674d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */ 4774d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_CBSIZE 256 /* Buffer size for input from the Console */ 4874d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_PBSIZE 256 /* Buffer size for Console output */ 4974d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_MAXARGS 16 /* max args accepted for monitor commands */ 5074d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_BARGSIZE 512 /* Buffer size for Boot Arguments 5174d9c16aSNobuhiro Iwamatsu passed to kernel */ 5274d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_BAUDRATE_TABLE { 115200 } /* List of legal baudrate 5374d9c16aSNobuhiro Iwamatsu settings for this board */ 5474d9c16aSNobuhiro Iwamatsu 5574d9c16aSNobuhiro Iwamatsu /* SDRAM */ 5674d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_SDRAM_BASE (0x8C000000) 5774d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_SDRAM_SIZE (64 * 1024 * 1024) 5874d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_MEMTEST_START (CONFIG_SYS_SDRAM_BASE) 5974d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + (60 * 1024 * 1024)) 6074d9c16aSNobuhiro Iwamatsu 6174d9c16aSNobuhiro Iwamatsu /* Flash(NOR) S29JL064H */ 6274d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_FLASH_BASE (0xA0000000) 6374d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_FLASH_CFI_WIDTH (FLASH_CFI_16BIT) 6474d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_MAX_FLASH_BANKS (1) 6574d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_MAX_FLASH_SECT (150) 6674d9c16aSNobuhiro Iwamatsu 6774d9c16aSNobuhiro Iwamatsu /* U-boot setting */ 6874d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 4 * 1024 * 1024) 6974d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_FLASH_BASE) 7074d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_MONITOR_LEN (128 * 1024) 7174d9c16aSNobuhiro Iwamatsu /* Size of DRAM reserved for malloc() use */ 7274d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_MALLOC_LEN (1024 * 1024) 7374d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_BOOTMAPSZ (8 * 1024 * 1024) 7474d9c16aSNobuhiro Iwamatsu 7574d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_FLASH_CFI 7674d9c16aSNobuhiro Iwamatsu #define CONFIG_FLASH_CFI_DRIVER 7774d9c16aSNobuhiro Iwamatsu #undef CONFIG_SYS_FLASH_QUIET_TEST 7874d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_FLASH_EMPTY_INFO /* print 'E' for empty sector on flinfo */ 7974d9c16aSNobuhiro Iwamatsu /* Timeout for Flash erase operations (in ms) */ 8074d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_FLASH_ERASE_TOUT (3 * 1000) 8174d9c16aSNobuhiro Iwamatsu /* Timeout for Flash write operations (in ms) */ 8274d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_FLASH_WRITE_TOUT (3 * 1000) 8374d9c16aSNobuhiro Iwamatsu /* Timeout for Flash set sector lock bit operations (in ms) */ 8474d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_FLASH_LOCK_TOUT (3 * 1000) 8574d9c16aSNobuhiro Iwamatsu /* Timeout for Flash clear lock bit operations (in ms) */ 8674d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_FLASH_UNLOCK_TOUT (3 * 1000) 8774d9c16aSNobuhiro Iwamatsu /* Use hardware flash sectors protection instead of U-Boot software protection */ 8874d9c16aSNobuhiro Iwamatsu #undef CONFIG_SYS_FLASH_PROTECTION 8974d9c16aSNobuhiro Iwamatsu #undef CONFIG_SYS_DIRECT_FLASH_TFTP 9074d9c16aSNobuhiro Iwamatsu #define CONFIG_ENV_IS_IN_FLASH 9174d9c16aSNobuhiro Iwamatsu #define CONFIG_ENV_SECT_SIZE (128 * 1024) 9274d9c16aSNobuhiro Iwamatsu #define CONFIG_ENV_SIZE (CONFIG_ENV_SECT_SIZE) 9374d9c16aSNobuhiro Iwamatsu #define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + (1 * CONFIG_ENV_SECT_SIZE)) 9474d9c16aSNobuhiro Iwamatsu /* Offset of env Flash sector relative to CONFIG_SYS_FLASH_BASE */ 9574d9c16aSNobuhiro Iwamatsu #define CONFIG_ENV_OFFSET (CONFIG_ENV_ADDR - CONFIG_SYS_FLASH_BASE) 9674d9c16aSNobuhiro Iwamatsu #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SECT_SIZE) 9774d9c16aSNobuhiro Iwamatsu #define CONFIG_ENV_ADDR_REDUND (CONFIG_SYS_FLASH_BASE + (2 * CONFIG_ENV_SECT_SIZE)) 9874d9c16aSNobuhiro Iwamatsu 9974d9c16aSNobuhiro Iwamatsu /* Clock */ 10074d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_CLK_FREQ 66666666 10174d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_TMU_CLK_DIV 4 10274d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_HZ 1000 10374d9c16aSNobuhiro Iwamatsu 10474d9c16aSNobuhiro Iwamatsu /* Ether */ 10574d9c16aSNobuhiro Iwamatsu #define CONFIG_SH_ETHER 1 10674d9c16aSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_USE_PORT (1) 10774d9c16aSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_PHY_ADDR (0x00) 10825a028bbSYoshihiro Shimoda #define CONFIG_PHYLIB 10925a028bbSYoshihiro Shimoda #define CONFIG_BITBANGMII 11025a028bbSYoshihiro Shimoda #define CONFIG_BITBANGMII_MULTI 111a80a6619SNobuhiro Iwamatsu #define CONFIG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_MII 11274d9c16aSNobuhiro Iwamatsu 11374d9c16aSNobuhiro Iwamatsu #endif /* __SH7763RDP_H */ 114