xref: /openbmc/u-boot/include/configs/espt.h (revision a80a6619)
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  *
774d9c16aSNobuhiro Iwamatsu  * See file CREDITS for list of people who contributed to this
874d9c16aSNobuhiro Iwamatsu  * project.
974d9c16aSNobuhiro Iwamatsu  *
1074d9c16aSNobuhiro Iwamatsu  * This program is free software; you can redistribute it and/or
1174d9c16aSNobuhiro Iwamatsu  * modify it under the terms of the GNU General Public License as
1274d9c16aSNobuhiro Iwamatsu  * published by the Free Software Foundation; either version 2 of
1374d9c16aSNobuhiro Iwamatsu  * the License, or (at your option) any later version.
1474d9c16aSNobuhiro Iwamatsu  *
1574d9c16aSNobuhiro Iwamatsu  * This program is distributed in the hope that it will be useful,
1674d9c16aSNobuhiro Iwamatsu  * but WITHOUT ANY WARRANTY; without even the implied warranty of
1774d9c16aSNobuhiro Iwamatsu  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1874d9c16aSNobuhiro Iwamatsu  * GNU General Public License for more details.
1974d9c16aSNobuhiro Iwamatsu  *
2074d9c16aSNobuhiro Iwamatsu  * You should have received a copy of the GNU General Public License
2174d9c16aSNobuhiro Iwamatsu  * along with this program; if not, write to the Free Software
2274d9c16aSNobuhiro Iwamatsu  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
2374d9c16aSNobuhiro Iwamatsu  * MA 02111-1307 USA
2474d9c16aSNobuhiro Iwamatsu  */
2574d9c16aSNobuhiro Iwamatsu 
2674d9c16aSNobuhiro Iwamatsu #ifndef __ESPT_H
2774d9c16aSNobuhiro Iwamatsu #define __ESPT_H
2874d9c16aSNobuhiro Iwamatsu 
2974d9c16aSNobuhiro Iwamatsu #define CONFIG_SH		1
3074d9c16aSNobuhiro Iwamatsu #define CONFIG_SH4		1
3174d9c16aSNobuhiro Iwamatsu #define CONFIG_CPU_SH7763	1
3274d9c16aSNobuhiro Iwamatsu #define CONFIG_ESPT	1
3374d9c16aSNobuhiro Iwamatsu #define __LITTLE_ENDIAN		1
3474d9c16aSNobuhiro Iwamatsu 
3574d9c16aSNobuhiro Iwamatsu /*
3674d9c16aSNobuhiro Iwamatsu  * Command line configuration.
3774d9c16aSNobuhiro Iwamatsu  */
3874d9c16aSNobuhiro Iwamatsu #define CONFIG_CMD_SDRAM
3974d9c16aSNobuhiro Iwamatsu #define CONFIG_CMD_FLASH
4074d9c16aSNobuhiro Iwamatsu #define CONFIG_CMD_MEMORY
4174d9c16aSNobuhiro Iwamatsu #define CONFIG_CMD_NET
4225a028bbSYoshihiro Shimoda #define CONFIG_CMD_MII
4374d9c16aSNobuhiro Iwamatsu #define CONFIG_CMD_PING
4474d9c16aSNobuhiro Iwamatsu #define CONFIG_CMD_ENV
4574d9c16aSNobuhiro Iwamatsu #define CONFIG_CMD_NFS
4674d9c16aSNobuhiro Iwamatsu #define CONFIG_CMD_SAVEENV
4774d9c16aSNobuhiro Iwamatsu 
4874d9c16aSNobuhiro Iwamatsu #define CONFIG_BOOTDELAY        -1
4974d9c16aSNobuhiro Iwamatsu #define CONFIG_BOOTARGS         "console=ttySC0,115200 root=1f01"
5074d9c16aSNobuhiro Iwamatsu #define CONFIG_ENV_OVERWRITE    1
5174d9c16aSNobuhiro Iwamatsu 
5274d9c16aSNobuhiro Iwamatsu #define CONFIG_VERSION_VARIABLE
5374d9c16aSNobuhiro Iwamatsu #undef  CONFIG_SHOW_BOOT_PROGRESS
5474d9c16aSNobuhiro Iwamatsu 
5574d9c16aSNobuhiro Iwamatsu /* SCIF */
5674d9c16aSNobuhiro Iwamatsu #define CONFIG_SCIF_CONSOLE		1
5774d9c16aSNobuhiro Iwamatsu #define CONFIG_BAUDRATE         115200
5874d9c16aSNobuhiro Iwamatsu #define CONFIG_CONS_SCIF0		1
5974d9c16aSNobuhiro Iwamatsu 
6054fbf475SNobuhiro Iwamatsu #define CONFIG_SYS_TEXT_BASE	0x8FFC0000
6174d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_LONGHELP		/* undef to save memory */
6274d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_PROMPT		"=> "	/* Monitor Command Prompt */
6374d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_CBSIZE		256	/* Buffer size for input from the Console */
6474d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_PBSIZE		256	/* Buffer size for Console output */
6574d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_MAXARGS		16	/* max args accepted for monitor commands */
6674d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_BARGSIZE	512	/* Buffer size for Boot Arguments
6774d9c16aSNobuhiro Iwamatsu 								passed to kernel */
6874d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_BAUDRATE_TABLE	{ 115200 }	/* List of legal baudrate
6974d9c16aSNobuhiro Iwamatsu 												settings for this board */
7074d9c16aSNobuhiro Iwamatsu 
7174d9c16aSNobuhiro Iwamatsu /* SDRAM */
7274d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_SDRAM_BASE		(0x8C000000)
7374d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_SDRAM_SIZE		(64 * 1024 * 1024)
7474d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_MEMTEST_START	(CONFIG_SYS_SDRAM_BASE)
7574d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_MEMTEST_END		(CONFIG_SYS_MEMTEST_START + (60 * 1024 * 1024))
7674d9c16aSNobuhiro Iwamatsu 
7774d9c16aSNobuhiro Iwamatsu /* Flash(NOR) S29JL064H */
7874d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_FLASH_BASE		(0xA0000000)
7974d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_FLASH_CFI_WIDTH (FLASH_CFI_16BIT)
8074d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_MAX_FLASH_BANKS (1)
8174d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_MAX_FLASH_SECT  (150)
8274d9c16aSNobuhiro Iwamatsu 
8374d9c16aSNobuhiro Iwamatsu /* U-boot setting */
8474d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_LOAD_ADDR		(CONFIG_SYS_SDRAM_BASE + 4 * 1024 * 1024)
8574d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_MONITOR_BASE	(CONFIG_SYS_FLASH_BASE)
8674d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_MONITOR_LEN		(128 * 1024)
8774d9c16aSNobuhiro Iwamatsu /* Size of DRAM reserved for malloc() use */
8874d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_MALLOC_LEN		(1024 * 1024)
8974d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_BOOTMAPSZ		(8 * 1024 * 1024)
9074d9c16aSNobuhiro Iwamatsu 
9174d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_FLASH_CFI
9274d9c16aSNobuhiro Iwamatsu #define CONFIG_FLASH_CFI_DRIVER
9374d9c16aSNobuhiro Iwamatsu #undef  CONFIG_SYS_FLASH_QUIET_TEST
9474d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_FLASH_EMPTY_INFO	/* print 'E' for empty sector on flinfo */
9574d9c16aSNobuhiro Iwamatsu /* Timeout for Flash erase operations (in ms) */
9674d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_FLASH_ERASE_TOUT	(3 * 1000)
9774d9c16aSNobuhiro Iwamatsu /* Timeout for Flash write operations (in ms) */
9874d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_FLASH_WRITE_TOUT	(3 * 1000)
9974d9c16aSNobuhiro Iwamatsu /* Timeout for Flash set sector lock bit operations (in ms) */
10074d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_FLASH_LOCK_TOUT		(3 * 1000)
10174d9c16aSNobuhiro Iwamatsu /* Timeout for Flash clear lock bit operations (in ms) */
10274d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_FLASH_UNLOCK_TOUT	(3 * 1000)
10374d9c16aSNobuhiro Iwamatsu /* Use hardware flash sectors protection instead of U-Boot software protection */
10474d9c16aSNobuhiro Iwamatsu #undef  CONFIG_SYS_FLASH_PROTECTION
10574d9c16aSNobuhiro Iwamatsu #undef  CONFIG_SYS_DIRECT_FLASH_TFTP
10674d9c16aSNobuhiro Iwamatsu #define CONFIG_ENV_IS_IN_FLASH
10774d9c16aSNobuhiro Iwamatsu #define CONFIG_ENV_SECT_SIZE	(128 * 1024)
10874d9c16aSNobuhiro Iwamatsu #define CONFIG_ENV_SIZE		(CONFIG_ENV_SECT_SIZE)
10974d9c16aSNobuhiro Iwamatsu #define CONFIG_ENV_ADDR		(CONFIG_SYS_FLASH_BASE + (1 * CONFIG_ENV_SECT_SIZE))
11074d9c16aSNobuhiro Iwamatsu /* Offset of env Flash sector relative to CONFIG_SYS_FLASH_BASE */
11174d9c16aSNobuhiro Iwamatsu #define CONFIG_ENV_OFFSET		(CONFIG_ENV_ADDR - CONFIG_SYS_FLASH_BASE)
11274d9c16aSNobuhiro Iwamatsu #define CONFIG_ENV_SIZE_REDUND	(CONFIG_ENV_SECT_SIZE)
11374d9c16aSNobuhiro Iwamatsu #define CONFIG_ENV_ADDR_REDUND	(CONFIG_SYS_FLASH_BASE + (2 * CONFIG_ENV_SECT_SIZE))
11474d9c16aSNobuhiro Iwamatsu 
11574d9c16aSNobuhiro Iwamatsu /* Clock */
11674d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_CLK_FREQ	66666666
11774d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_TMU_CLK_DIV      4
11874d9c16aSNobuhiro Iwamatsu #define CONFIG_SYS_HZ       1000
11974d9c16aSNobuhiro Iwamatsu 
12074d9c16aSNobuhiro Iwamatsu /* Ether */
12174d9c16aSNobuhiro Iwamatsu #define CONFIG_SH_ETHER 1
12274d9c16aSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_USE_PORT (1)
12374d9c16aSNobuhiro Iwamatsu #define CONFIG_SH_ETHER_PHY_ADDR (0x00)
12425a028bbSYoshihiro Shimoda #define CONFIG_PHYLIB
12525a028bbSYoshihiro Shimoda #define CONFIG_BITBANGMII
12625a028bbSYoshihiro Shimoda #define CONFIG_BITBANGMII_MULTI
127*a80a6619SNobuhiro Iwamatsu #define CONFIG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_MII
12874d9c16aSNobuhiro Iwamatsu 
12974d9c16aSNobuhiro Iwamatsu #endif /* __SH7763RDP_H */
130