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 * 71a459660SWolfgang 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_CPU_SH7763 1 1474d9c16aSNobuhiro Iwamatsu #define CONFIG_ESPT 1 1574d9c16aSNobuhiro Iwamatsu #define __LITTLE_ENDIAN 1 1674d9c16aSNobuhiro Iwamatsu 1774d9c16aSNobuhiro Iwamatsu /* 1874d9c16aSNobuhiro Iwamatsu * Command line configuration. 1974d9c16aSNobuhiro Iwamatsu */ 2074d9c16aSNobuhiro Iwamatsu #define CONFIG_CMD_SDRAM 2174d9c16aSNobuhiro Iwamatsu #define CONFIG_CMD_ENV 2274d9c16aSNobuhiro Iwamatsu 2374d9c16aSNobuhiro Iwamatsu #define CONFIG_BOOTARGS "console=ttySC0,115200 root=1f01" 2474d9c16aSNobuhiro Iwamatsu #define CONFIG_ENV_OVERWRITE 1 2574d9c16aSNobuhiro Iwamatsu 26*18a40e84SVladimir Zapolskiy #define CONFIG_DISPLAY_BOARDINFO 2774d9c16aSNobuhiro Iwamatsu #undef CONFIG_SHOW_BOOT_PROGRESS 2874d9c16aSNobuhiro Iwamatsu 2974d9c16aSNobuhiro Iwamatsu /* SCIF */ 3074d9c16aSNobuhiro Iwamatsu #define CONFIG_SCIF_CONSOLE 1 3174d9c16aSNobuhiro Iwamatsu #define CONFIG_BAUDRATE 115200 3274d9c16aSNobuhiro Iwamatsu #define CONFIG_CONS_SCIF0 1 3374d9c16aSNobuhiro Iwamatsu 3454fbf475SNobuhiro Iwamatsu #define CONFIG_SYS_TEXT_BASE 0x8FFC0000 3574d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_LONGHELP /* undef to save memory */ 3674d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_CBSIZE 256 /* Buffer size for input from the Console */ 3774d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_PBSIZE 256 /* Buffer size for Console output */ 3874d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_MAXARGS 16 /* max args accepted for monitor commands */ 3974d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_BARGSIZE 512 /* Buffer size for Boot Arguments 4074d9c16aSNobuhiro Iwamatsu passed to kernel */ 4174d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_BAUDRATE_TABLE { 115200 } /* List of legal baudrate 4274d9c16aSNobuhiro Iwamatsu settings for this board */ 4374d9c16aSNobuhiro Iwamatsu 4474d9c16aSNobuhiro Iwamatsu /* SDRAM */ 4574d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_SDRAM_BASE (0x8C000000) 4674d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_SDRAM_SIZE (64 * 1024 * 1024) 4774d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_MEMTEST_START (CONFIG_SYS_SDRAM_BASE) 4874d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + (60 * 1024 * 1024)) 4974d9c16aSNobuhiro Iwamatsu 5074d9c16aSNobuhiro Iwamatsu /* Flash(NOR) S29JL064H */ 5174d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_FLASH_BASE (0xA0000000) 5274d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_FLASH_CFI_WIDTH (FLASH_CFI_16BIT) 5374d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_MAX_FLASH_BANKS (1) 5474d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_MAX_FLASH_SECT (150) 5574d9c16aSNobuhiro Iwamatsu 56a187559eSBin Meng /* U-Boot setting */ 5774d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 4 * 1024 * 1024) 5874d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_FLASH_BASE) 5974d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_MONITOR_LEN (128 * 1024) 6074d9c16aSNobuhiro Iwamatsu /* Size of DRAM reserved for malloc() use */ 6174d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_MALLOC_LEN (1024 * 1024) 6274d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_BOOTMAPSZ (8 * 1024 * 1024) 6374d9c16aSNobuhiro Iwamatsu 6474d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_FLASH_CFI 6574d9c16aSNobuhiro Iwamatsu #define CONFIG_FLASH_CFI_DRIVER 6674d9c16aSNobuhiro Iwamatsu #undef CONFIG_SYS_FLASH_QUIET_TEST 6774d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_FLASH_EMPTY_INFO /* print 'E' for empty sector on flinfo */ 6874d9c16aSNobuhiro Iwamatsu /* Timeout for Flash erase operations (in ms) */ 6974d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_FLASH_ERASE_TOUT (3 * 1000) 7074d9c16aSNobuhiro Iwamatsu /* Timeout for Flash write operations (in ms) */ 7174d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_FLASH_WRITE_TOUT (3 * 1000) 7274d9c16aSNobuhiro Iwamatsu /* Timeout for Flash set sector lock bit operations (in ms) */ 7374d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_FLASH_LOCK_TOUT (3 * 1000) 7474d9c16aSNobuhiro Iwamatsu /* Timeout for Flash clear lock bit operations (in ms) */ 7574d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_FLASH_UNLOCK_TOUT (3 * 1000) 7674d9c16aSNobuhiro Iwamatsu /* Use hardware flash sectors protection instead of U-Boot software protection */ 7774d9c16aSNobuhiro Iwamatsu #undef CONFIG_SYS_FLASH_PROTECTION 7874d9c16aSNobuhiro Iwamatsu #undef CONFIG_SYS_DIRECT_FLASH_TFTP 7974d9c16aSNobuhiro Iwamatsu #define CONFIG_ENV_IS_IN_FLASH 8074d9c16aSNobuhiro Iwamatsu #define CONFIG_ENV_SECT_SIZE (128 * 1024) 8174d9c16aSNobuhiro Iwamatsu #define CONFIG_ENV_SIZE (CONFIG_ENV_SECT_SIZE) 8274d9c16aSNobuhiro Iwamatsu #define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + (1 * CONFIG_ENV_SECT_SIZE)) 8374d9c16aSNobuhiro Iwamatsu /* Offset of env Flash sector relative to CONFIG_SYS_FLASH_BASE */ 8474d9c16aSNobuhiro Iwamatsu #define CONFIG_ENV_OFFSET (CONFIG_ENV_ADDR - CONFIG_SYS_FLASH_BASE) 8574d9c16aSNobuhiro Iwamatsu #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SECT_SIZE) 8674d9c16aSNobuhiro Iwamatsu #define CONFIG_ENV_ADDR_REDUND (CONFIG_SYS_FLASH_BASE + (2 * CONFIG_ENV_SECT_SIZE)) 8774d9c16aSNobuhiro Iwamatsu 8874d9c16aSNobuhiro Iwamatsu /* Clock */ 8974d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_CLK_FREQ 66666666 90684a501eSNobuhiro Iwamatsu #define CONFIG_SH_TMU_CLK_FREQ CONFIG_SYS_CLK_FREQ 91684a501eSNobuhiro Iwamatsu #define CONFIG_SH_SCIF_CLK_FREQ CONFIG_SYS_CLK_FREQ 9274d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_TMU_CLK_DIV 4 9374d9c16aSNobuhiro Iwamatsu 9474d9c16aSNobuhiro Iwamatsu /* Ether */ 9574d9c16aSNobuhiro Iwamatsu #define CONFIG_SH_ETHER 1 9674d9c16aSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_USE_PORT (1) 9774d9c16aSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_PHY_ADDR (0x00) 9825a028bbSYoshihiro Shimoda #define CONFIG_PHYLIB 9925a028bbSYoshihiro Shimoda #define CONFIG_BITBANGMII 10025a028bbSYoshihiro Shimoda #define CONFIG_BITBANGMII_MULTI 101a80a6619SNobuhiro Iwamatsu #define CONFIG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_MII 10274d9c16aSNobuhiro Iwamatsu 10374d9c16aSNobuhiro Iwamatsu #endif /* __SH7763RDP_H */ 104