Commit a80a661989d35620465da85d9d9f8179e9c9e843

Authored by Nobuhiro Iwamatsu
1 parent bfc93fb47d
Exists in master and in 56 other branches 8qm-imx_v2020.04_5.4.70_2.3.0, emb_lf_v2022.04, emb_lf_v2023.04, emb_lf_v2024.04, imx_v2015.04_4.1.15_1.0.0_ga, pitx_8mp_lf_v2020.04, smarc-8m-android-10.0.0_2.6.0, smarc-8m-android-11.0.0_2.0.0, smarc-8mp-android-11.0.0_2.0.0, smarc-emmc-imx_v2014.04_3.10.53_1.1.0_ga, smarc-emmc-imx_v2014.04_3.14.28_1.0.0_ga, smarc-imx-l5.0.0_1.0.0-ga, smarc-imx6_v2018.03_4.14.98_2.0.0_ga, smarc-imx7_v2017.03_4.9.11_1.0.0_ga, smarc-imx7_v2018.03_4.14.98_2.0.0_ga, smarc-imx_v2014.04_3.14.28_1.0.0_ga, smarc-imx_v2015.04_4.1.15_1.0.0_ga, smarc-imx_v2017.03_4.9.11_1.0.0_ga, smarc-imx_v2017.03_4.9.88_2.0.0_ga, smarc-imx_v2017.03_o8.1.0_1.3.0_8m, smarc-imx_v2018.03_4.14.78_1.0.0_ga, smarc-m6.0.1_2.1.0-ga, smarc-n7.1.2_2.0.0-ga, smarc-rel_imx_4.1.15_2.0.0_ga, smarc_8m-imx_v2018.03_4.14.98_2.0.0_ga, smarc_8m-imx_v2019.04_4.19.35_1.1.0, smarc_8m_00d0-imx_v2018.03_4.14.98_2.0.0_ga, smarc_8mm-imx_v2018.03_4.14.98_2.0.0_ga, smarc_8mm-imx_v2019.04_4.19.35_1.1.0, smarc_8mm-imx_v2020.04_5.4.24_2.1.0, smarc_8mp_lf_v2020.04, smarc_8mq-imx_v2020.04_5.4.24_2.1.0, smarc_8mq_lf_v2020.04, ti-u-boot-2015.07, u-boot-2013.01.y, v2013.10, v2013.10-smarct33, v2013.10-smartmen, v2014.01, v2014.04, v2014.04-smarct33, v2014.04-smarct33-emmc, v2014.04-smartmen, v2014.07, v2014.07-smarct33, v2014.07-smartmen, v2015.07-smarct33, v2015.07-smarct33-emmc, v2015.07-smarct4x, v2016.05-dlt, v2016.05-smarct3x, v2016.05-smarct3x-emmc, v2016.05-smarct4x, v2017.01-smarct3x, v2017.01-smarct3x-emmc, v2017.01-smarct4x

sh: Set CONFIG_SH_ETHER_PHY_MODE and CONFIG_SH_ETHER_SH7734_MII to boards with sh_eth

The board with sh_eth needs to set CONFIG_SH_ETHER_PHY_MODE.
And SH7734 needs to set value of CONFIG_SH_ETHER_SH7734_MII.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>

Showing 5 changed files with 6 additions and 0 deletions Inline Diff

include/configs/ecovec.h
1 /* 1 /*
2 * Configuation settings for the Renesas Solutions ECOVEC board 2 * Configuation settings for the Renesas Solutions ECOVEC board
3 * 3 *
4 * Copyright (C) 2009 - 2011 Renesas Solutions Corp. 4 * Copyright (C) 2009 - 2011 Renesas Solutions Corp.
5 * Copyright (C) 2009 Kuninori Morimoto <morimoto.kuninori@renesas.com> 5 * Copyright (C) 2009 Kuninori Morimoto <morimoto.kuninori@renesas.com>
6 * Copyright (C) 2010, 2011 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> 6 * Copyright (C) 2010, 2011 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
7 * 7 *
8 * See file CREDITS for list of people who contributed to this 8 * See file CREDITS for list of people who contributed to this
9 * project. 9 * project.
10 * 10 *
11 * This program is free software; you can redistribute it and/or 11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as 12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of 13 * published by the Free Software Foundation; either version 2 of
14 * the License, or (at your option) any later version. 14 * the License, or (at your option) any later version.
15 * 15 *
16 * This program is distributed in the hope that it will be useful, 16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details. 19 * GNU General Public License for more details.
20 * 20 *
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software 22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
24 * MA 02111-1307 USA 24 * MA 02111-1307 USA
25 */ 25 */
26 26
27 #ifndef __ECOVEC_H 27 #ifndef __ECOVEC_H
28 #define __ECOVEC_H 28 #define __ECOVEC_H
29 29
30 /* 30 /*
31 * Address Interface BusWidth 31 * Address Interface BusWidth
32 *----------------------------------------- 32 *-----------------------------------------
33 * 0x0000_0000 U-Boot 16bit 33 * 0x0000_0000 U-Boot 16bit
34 * 0x0004_0000 Linux romImage 16bit 34 * 0x0004_0000 Linux romImage 16bit
35 * 0x0014_0000 MTD for Linux 16bit 35 * 0x0014_0000 MTD for Linux 16bit
36 * 0x0400_0000 Internal I/O 16/32bit 36 * 0x0400_0000 Internal I/O 16/32bit
37 * 0x0800_0000 DRAM 32bit 37 * 0x0800_0000 DRAM 32bit
38 * 0x1800_0000 MFI 16bit 38 * 0x1800_0000 MFI 16bit
39 */ 39 */
40 40
41 #undef DEBUG 41 #undef DEBUG
42 #define CONFIG_SH 1 42 #define CONFIG_SH 1
43 #define CONFIG_SH4 1 43 #define CONFIG_SH4 1
44 #define CONFIG_SH4A 1 44 #define CONFIG_SH4A 1
45 #define CONFIG_CPU_SH7724 1 45 #define CONFIG_CPU_SH7724 1
46 #define CONFIG_BOARD_LATE_INIT 1 46 #define CONFIG_BOARD_LATE_INIT 1
47 #define CONFIG_ECOVEC 1 47 #define CONFIG_ECOVEC 1
48 48
49 #define CONFIG_ECOVEC_ROMIMAGE_ADDR 0xA0040000 49 #define CONFIG_ECOVEC_ROMIMAGE_ADDR 0xA0040000
50 #define CONFIG_SYS_TEXT_BASE 0x8FFC0000 50 #define CONFIG_SYS_TEXT_BASE 0x8FFC0000
51 51
52 #define CONFIG_CMD_FLASH 52 #define CONFIG_CMD_FLASH
53 #define CONFIG_CMD_MEMORY 53 #define CONFIG_CMD_MEMORY
54 #define CONFIG_CMD_NET 54 #define CONFIG_CMD_NET
55 #define CONFIG_CMD_PING 55 #define CONFIG_CMD_PING
56 #define CONFIG_CMD_MII 56 #define CONFIG_CMD_MII
57 #define CONFIG_CMD_NFS 57 #define CONFIG_CMD_NFS
58 #define CONFIG_CMD_SDRAM 58 #define CONFIG_CMD_SDRAM
59 #define CONFIG_CMD_ENV 59 #define CONFIG_CMD_ENV
60 #define CONFIG_CMD_USB 60 #define CONFIG_CMD_USB
61 #define CONFIG_CMD_FAT 61 #define CONFIG_CMD_FAT
62 #define CONFIG_CMD_EXT2 62 #define CONFIG_CMD_EXT2
63 #define CONFIG_CMD_SAVEENV 63 #define CONFIG_CMD_SAVEENV
64 64
65 #define CONFIG_USB_STORAGE 65 #define CONFIG_USB_STORAGE
66 #define CONFIG_DOS_PARTITION 66 #define CONFIG_DOS_PARTITION
67 67
68 #define CONFIG_BAUDRATE 115200 68 #define CONFIG_BAUDRATE 115200
69 #define CONFIG_BOOTDELAY 3 69 #define CONFIG_BOOTDELAY 3
70 #define CONFIG_BOOTARGS "console=ttySC0,115200" 70 #define CONFIG_BOOTARGS "console=ttySC0,115200"
71 71
72 #define CONFIG_VERSION_VARIABLE 72 #define CONFIG_VERSION_VARIABLE
73 #undef CONFIG_SHOW_BOOT_PROGRESS 73 #undef CONFIG_SHOW_BOOT_PROGRESS
74 74
75 /* I2C */ 75 /* I2C */
76 #define CONFIG_CMD_I2C 76 #define CONFIG_CMD_I2C
77 #define CONFIG_SH_I2C 1 77 #define CONFIG_SH_I2C 1
78 #define CONFIG_HARD_I2C 1 78 #define CONFIG_HARD_I2C 1
79 #define CONFIG_I2C_MULTI_BUS 1 79 #define CONFIG_I2C_MULTI_BUS 1
80 #define CONFIG_SYS_MAX_I2C_BUS 2 80 #define CONFIG_SYS_MAX_I2C_BUS 2
81 #define CONFIG_SYS_I2C_MODULE 1 81 #define CONFIG_SYS_I2C_MODULE 1
82 #define CONFIG_SYS_I2C_SPEED 100000 /* 100 kHz */ 82 #define CONFIG_SYS_I2C_SPEED 100000 /* 100 kHz */
83 #define CONFIG_SYS_I2C_SLAVE 0x7F 83 #define CONFIG_SYS_I2C_SLAVE 0x7F
84 #define CONFIG_SH_I2C_DATA_HIGH 4 84 #define CONFIG_SH_I2C_DATA_HIGH 4
85 #define CONFIG_SH_I2C_DATA_LOW 5 85 #define CONFIG_SH_I2C_DATA_LOW 5
86 #define CONFIG_SH_I2C_CLOCK 41666666 86 #define CONFIG_SH_I2C_CLOCK 41666666
87 #define CONFIG_SH_I2C_BASE0 0xA4470000 87 #define CONFIG_SH_I2C_BASE0 0xA4470000
88 #define CONFIG_SH_I2C_BASE1 0xA4750000 88 #define CONFIG_SH_I2C_BASE1 0xA4750000
89 89
90 /* Ether */ 90 /* Ether */
91 #define CONFIG_SH_ETHER 1 91 #define CONFIG_SH_ETHER 1
92 #define CONFIG_SH_ETHER_USE_PORT (0) 92 #define CONFIG_SH_ETHER_USE_PORT (0)
93 #define CONFIG_SH_ETHER_PHY_ADDR (0x1f) 93 #define CONFIG_SH_ETHER_PHY_ADDR (0x1f)
94 #define CONFIG_PHY_SMSC 1 94 #define CONFIG_PHY_SMSC 1
95 #define CONFIG_PHYLIB 95 #define CONFIG_PHYLIB
96 #define CONFIG_BITBANGMII 96 #define CONFIG_BITBANGMII
97 #define CONFIG_BITBANGMII_MULTI 97 #define CONFIG_BITBANGMII_MULTI
98 #define CONFIG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_MII
98 99
99 /* USB / R8A66597 */ 100 /* USB / R8A66597 */
100 #define CONFIG_USB_R8A66597_HCD 101 #define CONFIG_USB_R8A66597_HCD
101 #define CONFIG_R8A66597_BASE_ADDR 0xA4D80000 102 #define CONFIG_R8A66597_BASE_ADDR 0xA4D80000
102 #define CONFIG_R8A66597_XTAL 0x0000 /* 12MHz */ 103 #define CONFIG_R8A66597_XTAL 0x0000 /* 12MHz */
103 #define CONFIG_R8A66597_LDRV 0x8000 /* 3.3V */ 104 #define CONFIG_R8A66597_LDRV 0x8000 /* 3.3V */
104 #define CONFIG_R8A66597_ENDIAN 0x0000 /* little */ 105 #define CONFIG_R8A66597_ENDIAN 0x0000 /* little */
105 #define CONFIG_SUPERH_ON_CHIP_R8A66597 106 #define CONFIG_SUPERH_ON_CHIP_R8A66597
106 107
107 /* undef to save memory */ 108 /* undef to save memory */
108 #define CONFIG_SYS_LONGHELP 109 #define CONFIG_SYS_LONGHELP
109 /* Monitor Command Prompt */ 110 /* Monitor Command Prompt */
110 #define CONFIG_SYS_PROMPT "=> " 111 #define CONFIG_SYS_PROMPT "=> "
111 /* Buffer size for input from the Console */ 112 /* Buffer size for input from the Console */
112 #define CONFIG_SYS_CBSIZE 256 113 #define CONFIG_SYS_CBSIZE 256
113 /* Buffer size for Console output */ 114 /* Buffer size for Console output */
114 #define CONFIG_SYS_PBSIZE 256 115 #define CONFIG_SYS_PBSIZE 256
115 /* max args accepted for monitor commands */ 116 /* max args accepted for monitor commands */
116 #define CONFIG_SYS_MAXARGS 16 117 #define CONFIG_SYS_MAXARGS 16
117 /* Buffer size for Boot Arguments passed to kernel */ 118 /* Buffer size for Boot Arguments passed to kernel */
118 #define CONFIG_SYS_BARGSIZE 512 119 #define CONFIG_SYS_BARGSIZE 512
119 /* List of legal baudrate settings for this board */ 120 /* List of legal baudrate settings for this board */
120 #define CONFIG_SYS_BAUDRATE_TABLE { 115200 } 121 #define CONFIG_SYS_BAUDRATE_TABLE { 115200 }
121 122
122 /* SCIF */ 123 /* SCIF */
123 #define CONFIG_SCIF_CONSOLE 1 124 #define CONFIG_SCIF_CONSOLE 1
124 #define CONFIG_SCIF 1 125 #define CONFIG_SCIF 1
125 #define CONFIG_CONS_SCIF0 1 126 #define CONFIG_CONS_SCIF0 1
126 127
127 /* Suppress display of console information at boot */ 128 /* Suppress display of console information at boot */
128 #undef CONFIG_SYS_CONSOLE_INFO_QUIET 129 #undef CONFIG_SYS_CONSOLE_INFO_QUIET
129 #undef CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE 130 #undef CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
130 #undef CONFIG_SYS_CONSOLE_ENV_OVERWRITE 131 #undef CONFIG_SYS_CONSOLE_ENV_OVERWRITE
131 132
132 /* SDRAM */ 133 /* SDRAM */
133 #define CONFIG_SYS_SDRAM_BASE (0x88000000) 134 #define CONFIG_SYS_SDRAM_BASE (0x88000000)
134 #define CONFIG_SYS_SDRAM_SIZE (256 * 1024 * 1024) 135 #define CONFIG_SYS_SDRAM_SIZE (256 * 1024 * 1024)
135 #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 16 * 1024 * 1024) 136 #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 16 * 1024 * 1024)
136 137
137 #define CONFIG_SYS_MEMTEST_START (CONFIG_SYS_SDRAM_BASE) 138 #define CONFIG_SYS_MEMTEST_START (CONFIG_SYS_SDRAM_BASE)
138 #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + 200 * 1024 * 1024) 139 #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + 200 * 1024 * 1024)
139 /* Enable alternate, more extensive, memory test */ 140 /* Enable alternate, more extensive, memory test */
140 #undef CONFIG_SYS_ALT_MEMTEST 141 #undef CONFIG_SYS_ALT_MEMTEST
141 /* Scratch address used by the alternate memory test */ 142 /* Scratch address used by the alternate memory test */
142 #undef CONFIG_SYS_MEMTEST_SCRATCH 143 #undef CONFIG_SYS_MEMTEST_SCRATCH
143 144
144 /* Enable temporary baudrate change while serial download */ 145 /* Enable temporary baudrate change while serial download */
145 #undef CONFIG_SYS_LOADS_BAUD_CHANGE 146 #undef CONFIG_SYS_LOADS_BAUD_CHANGE
146 147
147 /* FLASH */ 148 /* FLASH */
148 #define CONFIG_FLASH_CFI_DRIVER 1 149 #define CONFIG_FLASH_CFI_DRIVER 1
149 #define CONFIG_SYS_FLASH_CFI 150 #define CONFIG_SYS_FLASH_CFI
150 #undef CONFIG_SYS_FLASH_QUIET_TEST 151 #undef CONFIG_SYS_FLASH_QUIET_TEST
151 #define CONFIG_SYS_FLASH_EMPTY_INFO 152 #define CONFIG_SYS_FLASH_EMPTY_INFO
152 #define CONFIG_SYS_FLASH_BASE (0xA0000000) 153 #define CONFIG_SYS_FLASH_BASE (0xA0000000)
153 #define CONFIG_SYS_MAX_FLASH_SECT 512 154 #define CONFIG_SYS_MAX_FLASH_SECT 512
154 155
155 /* if you use all NOR Flash , you change dip-switch. Please see Manual. */ 156 /* if you use all NOR Flash , you change dip-switch. Please see Manual. */
156 #define CONFIG_SYS_MAX_FLASH_BANKS 1 157 #define CONFIG_SYS_MAX_FLASH_BANKS 1
157 #define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE } 158 #define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE }
158 159
159 /* Timeout for Flash erase operations (in ms) */ 160 /* Timeout for Flash erase operations (in ms) */
160 #define CONFIG_SYS_FLASH_ERASE_TOUT (3 * 1000) 161 #define CONFIG_SYS_FLASH_ERASE_TOUT (3 * 1000)
161 /* Timeout for Flash write operations (in ms) */ 162 /* Timeout for Flash write operations (in ms) */
162 #define CONFIG_SYS_FLASH_WRITE_TOUT (3 * 1000) 163 #define CONFIG_SYS_FLASH_WRITE_TOUT (3 * 1000)
163 /* Timeout for Flash set sector lock bit operations (in ms) */ 164 /* Timeout for Flash set sector lock bit operations (in ms) */
164 #define CONFIG_SYS_FLASH_LOCK_TOUT (3 * 1000) 165 #define CONFIG_SYS_FLASH_LOCK_TOUT (3 * 1000)
165 /* Timeout for Flash clear lock bit operations (in ms) */ 166 /* Timeout for Flash clear lock bit operations (in ms) */
166 #define CONFIG_SYS_FLASH_UNLOCK_TOUT (3 * 1000) 167 #define CONFIG_SYS_FLASH_UNLOCK_TOUT (3 * 1000)
167 168
168 /* 169 /*
169 * Use hardware flash sectors protection instead 170 * Use hardware flash sectors protection instead
170 * of U-Boot software protection 171 * of U-Boot software protection
171 */ 172 */
172 #undef CONFIG_SYS_FLASH_PROTECTION 173 #undef CONFIG_SYS_FLASH_PROTECTION
173 #undef CONFIG_SYS_DIRECT_FLASH_TFTP 174 #undef CONFIG_SYS_DIRECT_FLASH_TFTP
174 175
175 /* Address of u-boot image in Flash (NOT run time address in SDRAM) ?!? */ 176 /* Address of u-boot image in Flash (NOT run time address in SDRAM) ?!? */
176 #define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_FLASH_BASE) 177 #define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_FLASH_BASE)
177 /* Monitor size */ 178 /* Monitor size */
178 #define CONFIG_SYS_MONITOR_LEN (256 * 1024) 179 #define CONFIG_SYS_MONITOR_LEN (256 * 1024)
179 /* Size of DRAM reserved for malloc() use */ 180 /* Size of DRAM reserved for malloc() use */
180 #define CONFIG_SYS_MALLOC_LEN (256 * 1024) 181 #define CONFIG_SYS_MALLOC_LEN (256 * 1024)
181 /* size in bytes reserved for initial data */ 182 /* size in bytes reserved for initial data */
182 #define CONFIG_SYS_GBL_DATA_SIZE (256) 183 #define CONFIG_SYS_GBL_DATA_SIZE (256)
183 #define CONFIG_SYS_BOOTMAPSZ (8 * 1024 * 1024) 184 #define CONFIG_SYS_BOOTMAPSZ (8 * 1024 * 1024)
184 185
185 /* ENV setting */ 186 /* ENV setting */
186 #define CONFIG_ENV_IS_IN_FLASH 187 #define CONFIG_ENV_IS_IN_FLASH
187 #define CONFIG_ENV_OVERWRITE 1 188 #define CONFIG_ENV_OVERWRITE 1
188 #define CONFIG_ENV_SECT_SIZE (128 * 1024) 189 #define CONFIG_ENV_SECT_SIZE (128 * 1024)
189 #define CONFIG_ENV_SIZE (CONFIG_ENV_SECT_SIZE) 190 #define CONFIG_ENV_SIZE (CONFIG_ENV_SECT_SIZE)
190 #define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN) 191 #define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN)
191 /* Offset of env Flash sector relative to CONFIG_SYS_FLASH_BASE */ 192 /* Offset of env Flash sector relative to CONFIG_SYS_FLASH_BASE */
192 #define CONFIG_ENV_OFFSET (CONFIG_ENV_ADDR - CONFIG_SYS_FLASH_BASE) 193 #define CONFIG_ENV_OFFSET (CONFIG_ENV_ADDR - CONFIG_SYS_FLASH_BASE)
193 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SECT_SIZE) 194 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SECT_SIZE)
194 195
195 /* Board Clock */ 196 /* Board Clock */
196 #define CONFIG_SYS_CLK_FREQ 41666666 197 #define CONFIG_SYS_CLK_FREQ 41666666
197 #define CONFIG_SYS_TMU_CLK_DIV 4 198 #define CONFIG_SYS_TMU_CLK_DIV 4
198 #define CONFIG_SYS_HZ 1000 199 #define CONFIG_SYS_HZ 1000
199 200
200 #endif /* __ECOVEC_H */ 201 #endif /* __ECOVEC_H */
201 202
include/configs/espt.h
1 /* 1 /*
2 * Configuation settings for the ESPT-GIGA board 2 * Configuation settings for the ESPT-GIGA board
3 * 3 *
4 * Copyright (C) 2008 Renesas Solutions Corp. 4 * Copyright (C) 2008 Renesas Solutions Corp.
5 * Copyright (C) 2008 Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> 5 * Copyright (C) 2008 Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
6 * 6 *
7 * See file CREDITS for list of people who contributed to this 7 * See file CREDITS for list of people who contributed to this
8 * project. 8 * project.
9 * 9 *
10 * This program is free software; you can redistribute it and/or 10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as 11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of 12 * published by the Free Software Foundation; either version 2 of
13 * the License, or (at your option) any later version. 13 * the License, or (at your option) any later version.
14 * 14 *
15 * This program is distributed in the hope that it will be useful, 15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details. 18 * GNU General Public License for more details.
19 * 19 *
20 * You should have received a copy of the GNU General Public License 20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software 21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
23 * MA 02111-1307 USA 23 * MA 02111-1307 USA
24 */ 24 */
25 25
26 #ifndef __ESPT_H 26 #ifndef __ESPT_H
27 #define __ESPT_H 27 #define __ESPT_H
28 28
29 #define CONFIG_SH 1 29 #define CONFIG_SH 1
30 #define CONFIG_SH4 1 30 #define CONFIG_SH4 1
31 #define CONFIG_CPU_SH7763 1 31 #define CONFIG_CPU_SH7763 1
32 #define CONFIG_ESPT 1 32 #define CONFIG_ESPT 1
33 #define __LITTLE_ENDIAN 1 33 #define __LITTLE_ENDIAN 1
34 34
35 /* 35 /*
36 * Command line configuration. 36 * Command line configuration.
37 */ 37 */
38 #define CONFIG_CMD_SDRAM 38 #define CONFIG_CMD_SDRAM
39 #define CONFIG_CMD_FLASH 39 #define CONFIG_CMD_FLASH
40 #define CONFIG_CMD_MEMORY 40 #define CONFIG_CMD_MEMORY
41 #define CONFIG_CMD_NET 41 #define CONFIG_CMD_NET
42 #define CONFIG_CMD_MII 42 #define CONFIG_CMD_MII
43 #define CONFIG_CMD_PING 43 #define CONFIG_CMD_PING
44 #define CONFIG_CMD_ENV 44 #define CONFIG_CMD_ENV
45 #define CONFIG_CMD_NFS 45 #define CONFIG_CMD_NFS
46 #define CONFIG_CMD_SAVEENV 46 #define CONFIG_CMD_SAVEENV
47 47
48 #define CONFIG_BOOTDELAY -1 48 #define CONFIG_BOOTDELAY -1
49 #define CONFIG_BOOTARGS "console=ttySC0,115200 root=1f01" 49 #define CONFIG_BOOTARGS "console=ttySC0,115200 root=1f01"
50 #define CONFIG_ENV_OVERWRITE 1 50 #define CONFIG_ENV_OVERWRITE 1
51 51
52 #define CONFIG_VERSION_VARIABLE 52 #define CONFIG_VERSION_VARIABLE
53 #undef CONFIG_SHOW_BOOT_PROGRESS 53 #undef CONFIG_SHOW_BOOT_PROGRESS
54 54
55 /* SCIF */ 55 /* SCIF */
56 #define CONFIG_SCIF_CONSOLE 1 56 #define CONFIG_SCIF_CONSOLE 1
57 #define CONFIG_BAUDRATE 115200 57 #define CONFIG_BAUDRATE 115200
58 #define CONFIG_CONS_SCIF0 1 58 #define CONFIG_CONS_SCIF0 1
59 59
60 #define CONFIG_SYS_TEXT_BASE 0x8FFC0000 60 #define CONFIG_SYS_TEXT_BASE 0x8FFC0000
61 #define CONFIG_SYS_LONGHELP /* undef to save memory */ 61 #define CONFIG_SYS_LONGHELP /* undef to save memory */
62 #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */ 62 #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */
63 #define CONFIG_SYS_CBSIZE 256 /* Buffer size for input from the Console */ 63 #define CONFIG_SYS_CBSIZE 256 /* Buffer size for input from the Console */
64 #define CONFIG_SYS_PBSIZE 256 /* Buffer size for Console output */ 64 #define CONFIG_SYS_PBSIZE 256 /* Buffer size for Console output */
65 #define CONFIG_SYS_MAXARGS 16 /* max args accepted for monitor commands */ 65 #define CONFIG_SYS_MAXARGS 16 /* max args accepted for monitor commands */
66 #define CONFIG_SYS_BARGSIZE 512 /* Buffer size for Boot Arguments 66 #define CONFIG_SYS_BARGSIZE 512 /* Buffer size for Boot Arguments
67 passed to kernel */ 67 passed to kernel */
68 #define CONFIG_SYS_BAUDRATE_TABLE { 115200 } /* List of legal baudrate 68 #define CONFIG_SYS_BAUDRATE_TABLE { 115200 } /* List of legal baudrate
69 settings for this board */ 69 settings for this board */
70 70
71 /* SDRAM */ 71 /* SDRAM */
72 #define CONFIG_SYS_SDRAM_BASE (0x8C000000) 72 #define CONFIG_SYS_SDRAM_BASE (0x8C000000)
73 #define CONFIG_SYS_SDRAM_SIZE (64 * 1024 * 1024) 73 #define CONFIG_SYS_SDRAM_SIZE (64 * 1024 * 1024)
74 #define CONFIG_SYS_MEMTEST_START (CONFIG_SYS_SDRAM_BASE) 74 #define CONFIG_SYS_MEMTEST_START (CONFIG_SYS_SDRAM_BASE)
75 #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + (60 * 1024 * 1024)) 75 #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + (60 * 1024 * 1024))
76 76
77 /* Flash(NOR) S29JL064H */ 77 /* Flash(NOR) S29JL064H */
78 #define CONFIG_SYS_FLASH_BASE (0xA0000000) 78 #define CONFIG_SYS_FLASH_BASE (0xA0000000)
79 #define CONFIG_SYS_FLASH_CFI_WIDTH (FLASH_CFI_16BIT) 79 #define CONFIG_SYS_FLASH_CFI_WIDTH (FLASH_CFI_16BIT)
80 #define CONFIG_SYS_MAX_FLASH_BANKS (1) 80 #define CONFIG_SYS_MAX_FLASH_BANKS (1)
81 #define CONFIG_SYS_MAX_FLASH_SECT (150) 81 #define CONFIG_SYS_MAX_FLASH_SECT (150)
82 82
83 /* U-boot setting */ 83 /* U-boot setting */
84 #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 4 * 1024 * 1024) 84 #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 4 * 1024 * 1024)
85 #define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_FLASH_BASE) 85 #define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_FLASH_BASE)
86 #define CONFIG_SYS_MONITOR_LEN (128 * 1024) 86 #define CONFIG_SYS_MONITOR_LEN (128 * 1024)
87 /* Size of DRAM reserved for malloc() use */ 87 /* Size of DRAM reserved for malloc() use */
88 #define CONFIG_SYS_MALLOC_LEN (1024 * 1024) 88 #define CONFIG_SYS_MALLOC_LEN (1024 * 1024)
89 #define CONFIG_SYS_BOOTMAPSZ (8 * 1024 * 1024) 89 #define CONFIG_SYS_BOOTMAPSZ (8 * 1024 * 1024)
90 90
91 #define CONFIG_SYS_FLASH_CFI 91 #define CONFIG_SYS_FLASH_CFI
92 #define CONFIG_FLASH_CFI_DRIVER 92 #define CONFIG_FLASH_CFI_DRIVER
93 #undef CONFIG_SYS_FLASH_QUIET_TEST 93 #undef CONFIG_SYS_FLASH_QUIET_TEST
94 #define CONFIG_SYS_FLASH_EMPTY_INFO /* print 'E' for empty sector on flinfo */ 94 #define CONFIG_SYS_FLASH_EMPTY_INFO /* print 'E' for empty sector on flinfo */
95 /* Timeout for Flash erase operations (in ms) */ 95 /* Timeout for Flash erase operations (in ms) */
96 #define CONFIG_SYS_FLASH_ERASE_TOUT (3 * 1000) 96 #define CONFIG_SYS_FLASH_ERASE_TOUT (3 * 1000)
97 /* Timeout for Flash write operations (in ms) */ 97 /* Timeout for Flash write operations (in ms) */
98 #define CONFIG_SYS_FLASH_WRITE_TOUT (3 * 1000) 98 #define CONFIG_SYS_FLASH_WRITE_TOUT (3 * 1000)
99 /* Timeout for Flash set sector lock bit operations (in ms) */ 99 /* Timeout for Flash set sector lock bit operations (in ms) */
100 #define CONFIG_SYS_FLASH_LOCK_TOUT (3 * 1000) 100 #define CONFIG_SYS_FLASH_LOCK_TOUT (3 * 1000)
101 /* Timeout for Flash clear lock bit operations (in ms) */ 101 /* Timeout for Flash clear lock bit operations (in ms) */
102 #define CONFIG_SYS_FLASH_UNLOCK_TOUT (3 * 1000) 102 #define CONFIG_SYS_FLASH_UNLOCK_TOUT (3 * 1000)
103 /* Use hardware flash sectors protection instead of U-Boot software protection */ 103 /* Use hardware flash sectors protection instead of U-Boot software protection */
104 #undef CONFIG_SYS_FLASH_PROTECTION 104 #undef CONFIG_SYS_FLASH_PROTECTION
105 #undef CONFIG_SYS_DIRECT_FLASH_TFTP 105 #undef CONFIG_SYS_DIRECT_FLASH_TFTP
106 #define CONFIG_ENV_IS_IN_FLASH 106 #define CONFIG_ENV_IS_IN_FLASH
107 #define CONFIG_ENV_SECT_SIZE (128 * 1024) 107 #define CONFIG_ENV_SECT_SIZE (128 * 1024)
108 #define CONFIG_ENV_SIZE (CONFIG_ENV_SECT_SIZE) 108 #define CONFIG_ENV_SIZE (CONFIG_ENV_SECT_SIZE)
109 #define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + (1 * CONFIG_ENV_SECT_SIZE)) 109 #define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + (1 * CONFIG_ENV_SECT_SIZE))
110 /* Offset of env Flash sector relative to CONFIG_SYS_FLASH_BASE */ 110 /* Offset of env Flash sector relative to CONFIG_SYS_FLASH_BASE */
111 #define CONFIG_ENV_OFFSET (CONFIG_ENV_ADDR - CONFIG_SYS_FLASH_BASE) 111 #define CONFIG_ENV_OFFSET (CONFIG_ENV_ADDR - CONFIG_SYS_FLASH_BASE)
112 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SECT_SIZE) 112 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SECT_SIZE)
113 #define CONFIG_ENV_ADDR_REDUND (CONFIG_SYS_FLASH_BASE + (2 * CONFIG_ENV_SECT_SIZE)) 113 #define CONFIG_ENV_ADDR_REDUND (CONFIG_SYS_FLASH_BASE + (2 * CONFIG_ENV_SECT_SIZE))
114 114
115 /* Clock */ 115 /* Clock */
116 #define CONFIG_SYS_CLK_FREQ 66666666 116 #define CONFIG_SYS_CLK_FREQ 66666666
117 #define CONFIG_SYS_TMU_CLK_DIV 4 117 #define CONFIG_SYS_TMU_CLK_DIV 4
118 #define CONFIG_SYS_HZ 1000 118 #define CONFIG_SYS_HZ 1000
119 119
120 /* Ether */ 120 /* Ether */
121 #define CONFIG_SH_ETHER 1 121 #define CONFIG_SH_ETHER 1
122 #define CONFIG_SH_ETHER_USE_PORT (1) 122 #define CONFIG_SH_ETHER_USE_PORT (1)
123 #define CONFIG_SH_ETHER_PHY_ADDR (0x00) 123 #define CONFIG_SH_ETHER_PHY_ADDR (0x00)
124 #define CONFIG_PHYLIB 124 #define CONFIG_PHYLIB
125 #define CONFIG_BITBANGMII 125 #define CONFIG_BITBANGMII
126 #define CONFIG_BITBANGMII_MULTI 126 #define CONFIG_BITBANGMII_MULTI
127 #define CONFIG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_MII
127 128
128 #endif /* __SH7763RDP_H */ 129 #endif /* __SH7763RDP_H */
129 130
include/configs/r0p7734.h
1 /* 1 /*
2 * Configuation settings for the Renesas Solutions r0p7734 board 2 * Configuation settings for the Renesas Solutions r0p7734 board
3 * 3 *
4 * Copyright (C) 2010, 2011 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> 4 * Copyright (C) 2010, 2011 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
5 * 5 *
6 * See file CREDITS for list of people who contributed to this 6 * See file CREDITS for list of people who contributed to this
7 * project. 7 * project.
8 * 8 *
9 * This program is free software; you can redistribute it and/or 9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as 10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of 11 * published by the Free Software Foundation; either version 2 of
12 * the License, or (at your option) any later version. 12 * the License, or (at your option) any later version.
13 * 13 *
14 * This program is distributed in the hope that it will be useful, 14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details. 17 * GNU General Public License for more details.
18 * 18 *
19 * You should have received a copy of the GNU General Public License 19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software 20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
22 * MA 02111-1307 USA 22 * MA 02111-1307 USA
23 */ 23 */
24 24
25 #ifndef __R0P7734_H 25 #ifndef __R0P7734_H
26 #define __R0P7734_H 26 #define __R0P7734_H
27 27
28 #undef DEBUG 28 #undef DEBUG
29 #define CONFIG_SH 1 29 #define CONFIG_SH 1
30 #define CONFIG_SH4 1 30 #define CONFIG_SH4 1
31 #define CONFIG_SH4A 1 31 #define CONFIG_SH4A 1
32 #define CONFIG_CPU_SH7734 1 32 #define CONFIG_CPU_SH7734 1
33 #define CONFIG_R0P7734 1 33 #define CONFIG_R0P7734 1
34 #define CONFIG_400MHZ_MODE 1 34 #define CONFIG_400MHZ_MODE 1
35 /* #define CONFIG_533MHZ_MODE 1 */ 35 /* #define CONFIG_533MHZ_MODE 1 */
36 36
37 #define CONFIG_BOARD_LATE_INIT 37 #define CONFIG_BOARD_LATE_INIT
38 #define CONFIG_SYS_TEXT_BASE 0x8FFC0000 38 #define CONFIG_SYS_TEXT_BASE 0x8FFC0000
39 39
40 #define CONFIG_CMD_FLASH 40 #define CONFIG_CMD_FLASH
41 #define CONFIG_CMD_MEMORY 41 #define CONFIG_CMD_MEMORY
42 #define CONFIG_CMD_NET 42 #define CONFIG_CMD_NET
43 #define CONFIG_CMD_PING 43 #define CONFIG_CMD_PING
44 #define CONFIG_CMD_MII 44 #define CONFIG_CMD_MII
45 #define CONFIG_CMD_NFS 45 #define CONFIG_CMD_NFS
46 #define CONFIG_CMD_SDRAM 46 #define CONFIG_CMD_SDRAM
47 #define CONFIG_CMD_ENV 47 #define CONFIG_CMD_ENV
48 #define CONFIG_CMD_SAVEENV 48 #define CONFIG_CMD_SAVEENV
49 49
50 #define CONFIG_BAUDRATE 115200 50 #define CONFIG_BAUDRATE 115200
51 #define CONFIG_BOOTDELAY 3 51 #define CONFIG_BOOTDELAY 3
52 #define CONFIG_BOOTARGS "console=ttySC3,115200" 52 #define CONFIG_BOOTARGS "console=ttySC3,115200"
53 53
54 #define CONFIG_VERSION_VARIABLE 54 #define CONFIG_VERSION_VARIABLE
55 #undef CONFIG_SHOW_BOOT_PROGRESS 55 #undef CONFIG_SHOW_BOOT_PROGRESS
56 56
57 /* Ether */ 57 /* Ether */
58 #define CONFIG_SH_ETHER 1 58 #define CONFIG_SH_ETHER 1
59 #define CONFIG_SH_ETHER_USE_PORT (0) 59 #define CONFIG_SH_ETHER_USE_PORT (0)
60 #define CONFIG_SH_ETHER_PHY_ADDR (0x0) 60 #define CONFIG_SH_ETHER_PHY_ADDR (0x0)
61 #define CONFIG_PHYLIB 61 #define CONFIG_PHYLIB
62 #define CONFIG_PHY_SMSC 1 62 #define CONFIG_PHY_SMSC 1
63 #define CONFIG_BITBANGMII 63 #define CONFIG_BITBANGMII
64 #define CONFIG_BITBANGMII_MULTI 64 #define CONFIG_BITBANGMII_MULTI
65 #define CONFIG_SH_ETHER_SH7734_MII (0x00) /* MII */
66 #define CONFIG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_MII
65 #ifndef CONFIG_SH_ETHER 67 #ifndef CONFIG_SH_ETHER
66 # define CONFIG_SMC911X 68 # define CONFIG_SMC911X
67 # define CONFIG_SMC911X_16_BIT 69 # define CONFIG_SMC911X_16_BIT
68 # define CONFIG_SMC911X_BASE (0x84000000) 70 # define CONFIG_SMC911X_BASE (0x84000000)
69 #endif 71 #endif
70 72
71 73
72 /* I2C */ 74 /* I2C */
73 #define CONFIG_CMD_I2C 75 #define CONFIG_CMD_I2C
74 #define CONFIG_SH_SH7734_I2C 1 76 #define CONFIG_SH_SH7734_I2C 1
75 #define CONFIG_HARD_I2C 1 77 #define CONFIG_HARD_I2C 1
76 #define CONFIG_I2C_MULTI_BUS 1 78 #define CONFIG_I2C_MULTI_BUS 1
77 #define CONFIG_SYS_MAX_I2C_BUS 2 79 #define CONFIG_SYS_MAX_I2C_BUS 2
78 #define CONFIG_SYS_I2C_MODULE 0 80 #define CONFIG_SYS_I2C_MODULE 0
79 #define CONFIG_SYS_I2C_SPEED 100000 /* 100 kHz */ 81 #define CONFIG_SYS_I2C_SPEED 100000 /* 100 kHz */
80 #define CONFIG_SYS_I2C_SLAVE 0x50 82 #define CONFIG_SYS_I2C_SLAVE 0x50
81 #define CONFIG_SH_I2C_DATA_HIGH 4 83 #define CONFIG_SH_I2C_DATA_HIGH 4
82 #define CONFIG_SH_I2C_DATA_LOW 5 84 #define CONFIG_SH_I2C_DATA_LOW 5
83 #define CONFIG_SH_I2C_CLOCK 500000000 85 #define CONFIG_SH_I2C_CLOCK 500000000
84 #define CONFIG_SH_I2C_BASE0 0xFFC70000 86 #define CONFIG_SH_I2C_BASE0 0xFFC70000
85 #define CONFIG_SH_I2C_BASE1 0xFFC7100 87 #define CONFIG_SH_I2C_BASE1 0xFFC7100
86 88
87 /* undef to save memory */ 89 /* undef to save memory */
88 #define CONFIG_SYS_LONGHELP 90 #define CONFIG_SYS_LONGHELP
89 /* Monitor Command Prompt */ 91 /* Monitor Command Prompt */
90 #define CONFIG_SYS_PROMPT "=> " 92 #define CONFIG_SYS_PROMPT "=> "
91 /* Buffer size for input from the Console */ 93 /* Buffer size for input from the Console */
92 #define CONFIG_SYS_CBSIZE 256 94 #define CONFIG_SYS_CBSIZE 256
93 /* Buffer size for Console output */ 95 /* Buffer size for Console output */
94 #define CONFIG_SYS_PBSIZE 256 96 #define CONFIG_SYS_PBSIZE 256
95 /* max args accepted for monitor commands */ 97 /* max args accepted for monitor commands */
96 #define CONFIG_SYS_MAXARGS 16 98 #define CONFIG_SYS_MAXARGS 16
97 /* Buffer size for Boot Arguments passed to kernel */ 99 /* Buffer size for Boot Arguments passed to kernel */
98 #define CONFIG_SYS_BARGSIZE 512 100 #define CONFIG_SYS_BARGSIZE 512
99 /* List of legal baudrate settings for this board */ 101 /* List of legal baudrate settings for this board */
100 #define CONFIG_SYS_BAUDRATE_TABLE { 115200 } 102 #define CONFIG_SYS_BAUDRATE_TABLE { 115200 }
101 103
102 /* SCIF */ 104 /* SCIF */
103 #define CONFIG_SCIF_CONSOLE 1 105 #define CONFIG_SCIF_CONSOLE 1
104 #define CONFIG_SCIF 1 106 #define CONFIG_SCIF 1
105 #define CONFIG_CONS_SCIF3 1 107 #define CONFIG_CONS_SCIF3 1
106 108
107 /* Suppress display of console information at boot */ 109 /* Suppress display of console information at boot */
108 #undef CONFIG_SYS_CONSOLE_INFO_QUIET 110 #undef CONFIG_SYS_CONSOLE_INFO_QUIET
109 #undef CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE 111 #undef CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
110 #undef CONFIG_SYS_CONSOLE_ENV_OVERWRITE 112 #undef CONFIG_SYS_CONSOLE_ENV_OVERWRITE
111 113
112 /* SDRAM */ 114 /* SDRAM */
113 #define CONFIG_SYS_SDRAM_BASE (0x88000000) 115 #define CONFIG_SYS_SDRAM_BASE (0x88000000)
114 #define CONFIG_SYS_SDRAM_SIZE (128 * 1024 * 1024) 116 #define CONFIG_SYS_SDRAM_SIZE (128 * 1024 * 1024)
115 #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 16 * 1024 * 1024) 117 #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 16 * 1024 * 1024)
116 118
117 #define CONFIG_SYS_MEMTEST_START (CONFIG_SYS_SDRAM_BASE) 119 #define CONFIG_SYS_MEMTEST_START (CONFIG_SYS_SDRAM_BASE)
118 #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + 100 * 1024 * 1024) 120 #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + 100 * 1024 * 1024)
119 /* Enable alternate, more extensive, memory test */ 121 /* Enable alternate, more extensive, memory test */
120 #undef CONFIG_SYS_ALT_MEMTEST 122 #undef CONFIG_SYS_ALT_MEMTEST
121 /* Scratch address used by the alternate memory test */ 123 /* Scratch address used by the alternate memory test */
122 #undef CONFIG_SYS_MEMTEST_SCRATCH 124 #undef CONFIG_SYS_MEMTEST_SCRATCH
123 125
124 /* Enable temporary baudrate change while serial download */ 126 /* Enable temporary baudrate change while serial download */
125 #undef CONFIG_SYS_LOADS_BAUD_CHANGE 127 #undef CONFIG_SYS_LOADS_BAUD_CHANGE
126 128
127 /* FLASH */ 129 /* FLASH */
128 #define CONFIG_FLASH_CFI_DRIVER 1 130 #define CONFIG_FLASH_CFI_DRIVER 1
129 #define CONFIG_SYS_FLASH_CFI 131 #define CONFIG_SYS_FLASH_CFI
130 #undef CONFIG_SYS_FLASH_QUIET_TEST 132 #undef CONFIG_SYS_FLASH_QUIET_TEST
131 #define CONFIG_SYS_FLASH_EMPTY_INFO 133 #define CONFIG_SYS_FLASH_EMPTY_INFO
132 #define CONFIG_SYS_FLASH_BASE (0xA0000000) 134 #define CONFIG_SYS_FLASH_BASE (0xA0000000)
133 #define CONFIG_SYS_MAX_FLASH_SECT 512 135 #define CONFIG_SYS_MAX_FLASH_SECT 512
134 136
135 /* if you use all NOR Flash , you change dip-switch. Please see Manual. */ 137 /* if you use all NOR Flash , you change dip-switch. Please see Manual. */
136 #define CONFIG_SYS_MAX_FLASH_BANKS 1 138 #define CONFIG_SYS_MAX_FLASH_BANKS 1
137 #define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE } 139 #define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE }
138 140
139 /* Timeout for Flash erase operations (in ms) */ 141 /* Timeout for Flash erase operations (in ms) */
140 #define CONFIG_SYS_FLASH_ERASE_TOUT (3 * 1000) 142 #define CONFIG_SYS_FLASH_ERASE_TOUT (3 * 1000)
141 /* Timeout for Flash write operations (in ms) */ 143 /* Timeout for Flash write operations (in ms) */
142 #define CONFIG_SYS_FLASH_WRITE_TOUT (3 * 1000) 144 #define CONFIG_SYS_FLASH_WRITE_TOUT (3 * 1000)
143 /* Timeout for Flash set sector lock bit operations (in ms) */ 145 /* Timeout for Flash set sector lock bit operations (in ms) */
144 #define CONFIG_SYS_FLASH_LOCK_TOUT (3 * 1000) 146 #define CONFIG_SYS_FLASH_LOCK_TOUT (3 * 1000)
145 /* Timeout for Flash clear lock bit operations (in ms) */ 147 /* Timeout for Flash clear lock bit operations (in ms) */
146 #define CONFIG_SYS_FLASH_UNLOCK_TOUT (3 * 1000) 148 #define CONFIG_SYS_FLASH_UNLOCK_TOUT (3 * 1000)
147 149
148 /* 150 /*
149 * Use hardware flash sectors protection instead 151 * Use hardware flash sectors protection instead
150 * of U-Boot software protection 152 * of U-Boot software protection
151 */ 153 */
152 #undef CONFIG_SYS_FLASH_PROTECTION 154 #undef CONFIG_SYS_FLASH_PROTECTION
153 #undef CONFIG_SYS_DIRECT_FLASH_TFTP 155 #undef CONFIG_SYS_DIRECT_FLASH_TFTP
154 156
155 /* Address of u-boot image in Flash (NOT run time address in SDRAM) ?!? */ 157 /* Address of u-boot image in Flash (NOT run time address in SDRAM) ?!? */
156 #define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_FLASH_BASE) 158 #define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_FLASH_BASE)
157 /* Monitor size */ 159 /* Monitor size */
158 #define CONFIG_SYS_MONITOR_LEN (256 * 1024) 160 #define CONFIG_SYS_MONITOR_LEN (256 * 1024)
159 /* Size of DRAM reserved for malloc() use */ 161 /* Size of DRAM reserved for malloc() use */
160 #define CONFIG_SYS_MALLOC_LEN (256 * 1024) 162 #define CONFIG_SYS_MALLOC_LEN (256 * 1024)
161 /* size in bytes reserved for initial data */ 163 /* size in bytes reserved for initial data */
162 #define CONFIG_SYS_GBL_DATA_SIZE (256) 164 #define CONFIG_SYS_GBL_DATA_SIZE (256)
163 #define CONFIG_SYS_BOOTMAPSZ (8 * 1024 * 1024) 165 #define CONFIG_SYS_BOOTMAPSZ (8 * 1024 * 1024)
164 166
165 /* ENV setting */ 167 /* ENV setting */
166 #define CONFIG_ENV_IS_IN_FLASH 168 #define CONFIG_ENV_IS_IN_FLASH
167 #define CONFIG_ENV_OVERWRITE 1 169 #define CONFIG_ENV_OVERWRITE 1
168 #define CONFIG_ENV_SECT_SIZE (128 * 1024) 170 #define CONFIG_ENV_SECT_SIZE (128 * 1024)
169 #define CONFIG_ENV_SIZE (CONFIG_ENV_SECT_SIZE) 171 #define CONFIG_ENV_SIZE (CONFIG_ENV_SECT_SIZE)
170 #define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN) 172 #define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN)
171 /* Offset of env Flash sector relative to CONFIG_SYS_FLASH_BASE */ 173 /* Offset of env Flash sector relative to CONFIG_SYS_FLASH_BASE */
172 #define CONFIG_ENV_OFFSET (CONFIG_ENV_ADDR - CONFIG_SYS_FLASH_BASE) 174 #define CONFIG_ENV_OFFSET (CONFIG_ENV_ADDR - CONFIG_SYS_FLASH_BASE)
173 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SECT_SIZE) 175 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SECT_SIZE)
174 176
175 /* Board Clock */ 177 /* Board Clock */
176 #if defined(CONFIG_400MHZ_MODE) 178 #if defined(CONFIG_400MHZ_MODE)
177 #define CONFIG_SYS_CLK_FREQ 50000000 179 #define CONFIG_SYS_CLK_FREQ 50000000
178 #else 180 #else
179 #define CONFIG_SYS_CLK_FREQ 44444444 181 #define CONFIG_SYS_CLK_FREQ 44444444
180 #endif 182 #endif
181 #define CONFIG_SYS_TMU_CLK_DIV 4 183 #define CONFIG_SYS_TMU_CLK_DIV 4
182 #define CONFIG_SYS_HZ 1000 184 #define CONFIG_SYS_HZ 1000
183 185
184 #endif /* __R0P7734_H */ 186 #endif /* __R0P7734_H */
185 187
include/configs/sh7757lcr.h
1 /* 1 /*
2 * Configuation settings for the sh7757lcr board 2 * Configuation settings for the sh7757lcr board
3 * 3 *
4 * Copyright (C) 2011 Renesas Solutions Corp. 4 * Copyright (C) 2011 Renesas Solutions Corp.
5 * 5 *
6 * See file CREDITS for list of people who contributed to this 6 * See file CREDITS for list of people who contributed to this
7 * project. 7 * project.
8 * 8 *
9 * This program is free software; you can redistribute it and/or 9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as 10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of 11 * published by the Free Software Foundation; either version 2 of
12 * the License, or (at your option) any later version. 12 * the License, or (at your option) any later version.
13 * 13 *
14 * This program is distributed in the hope that it will be useful, 14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details. 17 * GNU General Public License for more details.
18 * 18 *
19 * You should have received a copy of the GNU General Public License 19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software 20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
22 * MA 02111-1307 USA 22 * MA 02111-1307 USA
23 */ 23 */
24 24
25 #ifndef __SH7757LCR_H 25 #ifndef __SH7757LCR_H
26 #define __SH7757LCR_H 26 #define __SH7757LCR_H
27 27
28 #undef DEBUG 28 #undef DEBUG
29 #define CONFIG_SH 1 29 #define CONFIG_SH 1
30 #define CONFIG_SH4A 1 30 #define CONFIG_SH4A 1
31 #define CONFIG_SH_32BIT 1 31 #define CONFIG_SH_32BIT 1
32 #define CONFIG_CPU_SH7757 1 32 #define CONFIG_CPU_SH7757 1
33 #define CONFIG_SH7757LCR 1 33 #define CONFIG_SH7757LCR 1
34 #define CONFIG_SH7757LCR_DDR_ECC 1 34 #define CONFIG_SH7757LCR_DDR_ECC 1
35 35
36 #define CONFIG_SYS_TEXT_BASE 0x8ef80000 36 #define CONFIG_SYS_TEXT_BASE 0x8ef80000
37 #define CONFIG_SYS_LDSCRIPT "board/renesas/sh7757lcr/u-boot.lds" 37 #define CONFIG_SYS_LDSCRIPT "board/renesas/sh7757lcr/u-boot.lds"
38 38
39 #define CONFIG_CMD_MEMORY 39 #define CONFIG_CMD_MEMORY
40 #define CONFIG_CMD_NET 40 #define CONFIG_CMD_NET
41 #define CONFIG_CMD_MII 41 #define CONFIG_CMD_MII
42 #define CONFIG_CMD_PING 42 #define CONFIG_CMD_PING
43 #define CONFIG_CMD_NFS 43 #define CONFIG_CMD_NFS
44 #define CONFIG_CMD_SDRAM 44 #define CONFIG_CMD_SDRAM
45 #define CONFIG_CMD_SF 45 #define CONFIG_CMD_SF
46 #define CONFIG_CMD_RUN 46 #define CONFIG_CMD_RUN
47 #define CONFIG_CMD_SAVEENV 47 #define CONFIG_CMD_SAVEENV
48 #define CONFIG_CMD_MD5SUM 48 #define CONFIG_CMD_MD5SUM
49 #define CONFIG_MD5 49 #define CONFIG_MD5
50 #define CONFIG_CMD_LOADS 50 #define CONFIG_CMD_LOADS
51 #define CONFIG_CMD_MMC 51 #define CONFIG_CMD_MMC
52 #define CONFIG_CMD_EXT2 52 #define CONFIG_CMD_EXT2
53 #define CONFIG_DOS_PARTITION 53 #define CONFIG_DOS_PARTITION
54 #define CONFIG_MAC_PARTITION 54 #define CONFIG_MAC_PARTITION
55 55
56 #define CONFIG_BAUDRATE 115200 56 #define CONFIG_BAUDRATE 115200
57 #define CONFIG_BOOTDELAY 3 57 #define CONFIG_BOOTDELAY 3
58 #define CONFIG_BOOTARGS "console=ttySC2,115200 root=/dev/nfs ip=dhcp" 58 #define CONFIG_BOOTARGS "console=ttySC2,115200 root=/dev/nfs ip=dhcp"
59 59
60 #define CONFIG_VERSION_VARIABLE 60 #define CONFIG_VERSION_VARIABLE
61 #undef CONFIG_SHOW_BOOT_PROGRESS 61 #undef CONFIG_SHOW_BOOT_PROGRESS
62 62
63 /* MEMORY */ 63 /* MEMORY */
64 #define SH7757LCR_SDRAM_BASE (0x80000000) 64 #define SH7757LCR_SDRAM_BASE (0x80000000)
65 #define SH7757LCR_SDRAM_SIZE (240 * 1024 * 1024) 65 #define SH7757LCR_SDRAM_SIZE (240 * 1024 * 1024)
66 #define SH7757LCR_SDRAM_ECC_SETTING 0x0f000000 /* 240MByte */ 66 #define SH7757LCR_SDRAM_ECC_SETTING 0x0f000000 /* 240MByte */
67 #define SH7757LCR_SDRAM_DVC_SIZE (16 * 1024 * 1024) 67 #define SH7757LCR_SDRAM_DVC_SIZE (16 * 1024 * 1024)
68 68
69 #define CONFIG_SYS_LONGHELP 69 #define CONFIG_SYS_LONGHELP
70 #define CONFIG_SYS_PROMPT "=> " 70 #define CONFIG_SYS_PROMPT "=> "
71 #define CONFIG_SYS_CBSIZE 256 71 #define CONFIG_SYS_CBSIZE 256
72 #define CONFIG_SYS_PBSIZE 256 72 #define CONFIG_SYS_PBSIZE 256
73 #define CONFIG_SYS_MAXARGS 16 73 #define CONFIG_SYS_MAXARGS 16
74 #define CONFIG_SYS_BARGSIZE 512 74 #define CONFIG_SYS_BARGSIZE 512
75 #define CONFIG_SYS_BAUDRATE_TABLE { 115200 } 75 #define CONFIG_SYS_BAUDRATE_TABLE { 115200 }
76 76
77 /* SCIF */ 77 /* SCIF */
78 #define CONFIG_SCIF_CONSOLE 1 78 #define CONFIG_SCIF_CONSOLE 1
79 #define CONFIG_CONS_SCIF2 1 79 #define CONFIG_CONS_SCIF2 1
80 #undef CONFIG_SYS_CONSOLE_INFO_QUIET 80 #undef CONFIG_SYS_CONSOLE_INFO_QUIET
81 #undef CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE 81 #undef CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
82 #undef CONFIG_SYS_CONSOLE_ENV_OVERWRITE 82 #undef CONFIG_SYS_CONSOLE_ENV_OVERWRITE
83 83
84 #define CONFIG_SYS_MEMTEST_START (SH7757LCR_SDRAM_BASE) 84 #define CONFIG_SYS_MEMTEST_START (SH7757LCR_SDRAM_BASE)
85 #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + \ 85 #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + \
86 224 * 1024 * 1024) 86 224 * 1024 * 1024)
87 #undef CONFIG_SYS_ALT_MEMTEST 87 #undef CONFIG_SYS_ALT_MEMTEST
88 #undef CONFIG_SYS_MEMTEST_SCRATCH 88 #undef CONFIG_SYS_MEMTEST_SCRATCH
89 #undef CONFIG_SYS_LOADS_BAUD_CHANGE 89 #undef CONFIG_SYS_LOADS_BAUD_CHANGE
90 90
91 #define CONFIG_SYS_SDRAM_BASE (SH7757LCR_SDRAM_BASE) 91 #define CONFIG_SYS_SDRAM_BASE (SH7757LCR_SDRAM_BASE)
92 #define CONFIG_SYS_SDRAM_SIZE (SH7757LCR_SDRAM_SIZE) 92 #define CONFIG_SYS_SDRAM_SIZE (SH7757LCR_SDRAM_SIZE)
93 #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + \ 93 #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + \
94 (128 + 16) * 1024 * 1024) 94 (128 + 16) * 1024 * 1024)
95 95
96 #define CONFIG_SYS_MONITOR_BASE 0x00000000 96 #define CONFIG_SYS_MONITOR_BASE 0x00000000
97 #define CONFIG_SYS_MONITOR_LEN (256 * 1024) 97 #define CONFIG_SYS_MONITOR_LEN (256 * 1024)
98 #define CONFIG_SYS_MALLOC_LEN (4 * 1024 * 1024) 98 #define CONFIG_SYS_MALLOC_LEN (4 * 1024 * 1024)
99 #define CONFIG_SYS_BOOTMAPSZ (8 * 1024 * 1024) 99 #define CONFIG_SYS_BOOTMAPSZ (8 * 1024 * 1024)
100 100
101 /* FLASH */ 101 /* FLASH */
102 #define CONFIG_SYS_NO_FLASH 102 #define CONFIG_SYS_NO_FLASH
103 103
104 /* Ether */ 104 /* Ether */
105 #define CONFIG_SH_ETHER 1 105 #define CONFIG_SH_ETHER 1
106 #define CONFIG_SH_ETHER_USE_PORT 0 106 #define CONFIG_SH_ETHER_USE_PORT 0
107 #define CONFIG_SH_ETHER_PHY_ADDR 1 107 #define CONFIG_SH_ETHER_PHY_ADDR 1
108 #define CONFIG_SH_ETHER_CACHE_WRITEBACK 1 108 #define CONFIG_SH_ETHER_CACHE_WRITEBACK 1
109 #define CONFIG_PHYLIB 109 #define CONFIG_PHYLIB
110 #define CONFIG_BITBANGMII 110 #define CONFIG_BITBANGMII
111 #define CONFIG_BITBANGMII_MULTI 111 #define CONFIG_BITBANGMII_MULTI
112 #define CONFIG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_MII
112 113
113 #define SH7757LCR_ETHERNET_MAC_BASE_SPI 0x000b0000 114 #define SH7757LCR_ETHERNET_MAC_BASE_SPI 0x000b0000
114 #define SH7757LCR_SPI_SECTOR_SIZE (64 * 1024) 115 #define SH7757LCR_SPI_SECTOR_SIZE (64 * 1024)
115 #define SH7757LCR_ETHERNET_MAC_BASE SH7757LCR_ETHERNET_MAC_BASE_SPI 116 #define SH7757LCR_ETHERNET_MAC_BASE SH7757LCR_ETHERNET_MAC_BASE_SPI
116 #define SH7757LCR_ETHERNET_MAC_SIZE 17 117 #define SH7757LCR_ETHERNET_MAC_SIZE 17
117 #define SH7757LCR_ETHERNET_NUM_CH 2 118 #define SH7757LCR_ETHERNET_NUM_CH 2
118 #define CONFIG_BOARD_LATE_INIT 119 #define CONFIG_BOARD_LATE_INIT
119 120
120 /* Gigabit Ether */ 121 /* Gigabit Ether */
121 #define SH7757LCR_GIGA_ETHERNET_NUM_CH 2 122 #define SH7757LCR_GIGA_ETHERNET_NUM_CH 2
122 123
123 /* SPI */ 124 /* SPI */
124 #define CONFIG_SH_SPI 1 125 #define CONFIG_SH_SPI 1
125 #define CONFIG_SH_SPI_BASE 0xfe002000 126 #define CONFIG_SH_SPI_BASE 0xfe002000
126 #define CONFIG_SPI_FLASH 127 #define CONFIG_SPI_FLASH
127 #define CONFIG_SPI_FLASH_STMICRO 1 128 #define CONFIG_SPI_FLASH_STMICRO 1
128 129
129 /* MMCIF */ 130 /* MMCIF */
130 #define CONFIG_MMC 1 131 #define CONFIG_MMC 1
131 #define CONFIG_GENERIC_MMC 1 132 #define CONFIG_GENERIC_MMC 1
132 #define CONFIG_SH_MMCIF 1 133 #define CONFIG_SH_MMCIF 1
133 #define CONFIG_SH_MMCIF_ADDR 0xffcb0000 134 #define CONFIG_SH_MMCIF_ADDR 0xffcb0000
134 #define CONFIG_SH_MMCIF_CLK 48000000 135 #define CONFIG_SH_MMCIF_CLK 48000000
135 136
136 /* SH7757 board */ 137 /* SH7757 board */
137 #define SH7757LCR_SDRAM_PHYS_TOP 0x40000000 138 #define SH7757LCR_SDRAM_PHYS_TOP 0x40000000
138 #define SH7757LCR_GRA_OFFSET 0x1f000000 139 #define SH7757LCR_GRA_OFFSET 0x1f000000
139 #define SH7757LCR_PCIEBRG_ADDR_B0 0x000a0000 140 #define SH7757LCR_PCIEBRG_ADDR_B0 0x000a0000
140 #define SH7757LCR_PCIEBRG_SIZE_B0 (64 * 1024) 141 #define SH7757LCR_PCIEBRG_SIZE_B0 (64 * 1024)
141 #define SH7757LCR_PCIEBRG_ADDR 0x00090000 142 #define SH7757LCR_PCIEBRG_ADDR 0x00090000
142 #define SH7757LCR_PCIEBRG_SIZE (96 * 1024) 143 #define SH7757LCR_PCIEBRG_SIZE (96 * 1024)
143 144
144 /* ENV setting */ 145 /* ENV setting */
145 #define CONFIG_ENV_IS_EMBEDDED 146 #define CONFIG_ENV_IS_EMBEDDED
146 #define CONFIG_ENV_IS_IN_SPI_FLASH 147 #define CONFIG_ENV_IS_IN_SPI_FLASH
147 #define CONFIG_ENV_SECT_SIZE (64 * 1024) 148 #define CONFIG_ENV_SECT_SIZE (64 * 1024)
148 #define CONFIG_ENV_ADDR (0x00080000) 149 #define CONFIG_ENV_ADDR (0x00080000)
149 #define CONFIG_ENV_OFFSET (CONFIG_ENV_ADDR) 150 #define CONFIG_ENV_OFFSET (CONFIG_ENV_ADDR)
150 #define CONFIG_ENV_OVERWRITE 1 151 #define CONFIG_ENV_OVERWRITE 1
151 #define CONFIG_ENV_SIZE (CONFIG_ENV_SECT_SIZE) 152 #define CONFIG_ENV_SIZE (CONFIG_ENV_SECT_SIZE)
152 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SECT_SIZE) 153 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SECT_SIZE)
153 #define CONFIG_EXTRA_ENV_SETTINGS \ 154 #define CONFIG_EXTRA_ENV_SETTINGS \
154 "netboot=bootp; bootm\0" 155 "netboot=bootp; bootm\0"
155 156
156 /* Board Clock */ 157 /* Board Clock */
157 #define CONFIG_SYS_CLK_FREQ 48000000 158 #define CONFIG_SYS_CLK_FREQ 48000000
158 #define CONFIG_SYS_TMU_CLK_DIV 4 159 #define CONFIG_SYS_TMU_CLK_DIV 4
159 #define CONFIG_SYS_HZ 1000 160 #define CONFIG_SYS_HZ 1000
160 #endif /* __SH7757LCR_H */ 161 #endif /* __SH7757LCR_H */
161 162
include/configs/sh7763rdp.h
1 /* 1 /*
2 * Configuation settings for the Renesas SH7763RDP board 2 * Configuation settings for the Renesas SH7763RDP board
3 * 3 *
4 * Copyright (C) 2008 Renesas Solutions Corp. 4 * Copyright (C) 2008 Renesas Solutions Corp.
5 * Copyright (C) 2008 Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> 5 * Copyright (C) 2008 Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
6 * 6 *
7 * See file CREDITS for list of people who contributed to this 7 * See file CREDITS for list of people who contributed to this
8 * project. 8 * project.
9 * 9 *
10 * This program is free software; you can redistribute it and/or 10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as 11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of 12 * published by the Free Software Foundation; either version 2 of
13 * the License, or (at your option) any later version. 13 * the License, or (at your option) any later version.
14 * 14 *
15 * This program is distributed in the hope that it will be useful, 15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details. 18 * GNU General Public License for more details.
19 * 19 *
20 * You should have received a copy of the GNU General Public License 20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software 21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
23 * MA 02111-1307 USA 23 * MA 02111-1307 USA
24 */ 24 */
25 25
26 #ifndef __SH7763RDP_H 26 #ifndef __SH7763RDP_H
27 #define __SH7763RDP_H 27 #define __SH7763RDP_H
28 28
29 #define CONFIG_SH 1 29 #define CONFIG_SH 1
30 #define CONFIG_SH4 1 30 #define CONFIG_SH4 1
31 #define CONFIG_CPU_SH7763 1 31 #define CONFIG_CPU_SH7763 1
32 #define CONFIG_SH7763RDP 1 32 #define CONFIG_SH7763RDP 1
33 #define __LITTLE_ENDIAN 1 33 #define __LITTLE_ENDIAN 1
34 34
35 /* 35 /*
36 * Command line configuration. 36 * Command line configuration.
37 */ 37 */
38 #define CONFIG_CMD_SDRAM 38 #define CONFIG_CMD_SDRAM
39 #define CONFIG_CMD_FLASH 39 #define CONFIG_CMD_FLASH
40 #define CONFIG_CMD_MEMORY 40 #define CONFIG_CMD_MEMORY
41 #define CONFIG_CMD_NET 41 #define CONFIG_CMD_NET
42 #define CONFIG_CMD_MII 42 #define CONFIG_CMD_MII
43 #define CONFIG_CMD_PING 43 #define CONFIG_CMD_PING
44 #define CONFIG_CMD_SAVEENV 44 #define CONFIG_CMD_SAVEENV
45 #define CONFIG_CMD_NFS 45 #define CONFIG_CMD_NFS
46 #define CONFIG_CMD_JFFS2 46 #define CONFIG_CMD_JFFS2
47 47
48 #define CONFIG_BOOTDELAY -1 48 #define CONFIG_BOOTDELAY -1
49 #define CONFIG_BOOTARGS "console=ttySC2,115200 root=1f01" 49 #define CONFIG_BOOTARGS "console=ttySC2,115200 root=1f01"
50 #define CONFIG_ENV_OVERWRITE 1 50 #define CONFIG_ENV_OVERWRITE 1
51 51
52 #define CONFIG_VERSION_VARIABLE 52 #define CONFIG_VERSION_VARIABLE
53 #undef CONFIG_SHOW_BOOT_PROGRESS 53 #undef CONFIG_SHOW_BOOT_PROGRESS
54 54
55 /* SCIF */ 55 /* SCIF */
56 #define CONFIG_SCIF_CONSOLE 1 56 #define CONFIG_SCIF_CONSOLE 1
57 #define CONFIG_BAUDRATE 115200 57 #define CONFIG_BAUDRATE 115200
58 #define CONFIG_CONS_SCIF2 1 58 #define CONFIG_CONS_SCIF2 1
59 59
60 #define CONFIG_SYS_TEXT_BASE 0x8FFC0000 60 #define CONFIG_SYS_TEXT_BASE 0x8FFC0000
61 #define CONFIG_SYS_LONGHELP /* undef to save memory */ 61 #define CONFIG_SYS_LONGHELP /* undef to save memory */
62 #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */ 62 #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */
63 #define CONFIG_SYS_CBSIZE 256 /* Buffer size for input from the Console */ 63 #define CONFIG_SYS_CBSIZE 256 /* Buffer size for input from the Console */
64 #define CONFIG_SYS_PBSIZE 256 /* Buffer size for Console output */ 64 #define CONFIG_SYS_PBSIZE 256 /* Buffer size for Console output */
65 #define CONFIG_SYS_MAXARGS 16 /* max args accepted for monitor commands */ 65 #define CONFIG_SYS_MAXARGS 16 /* max args accepted for monitor commands */
66 #define CONFIG_SYS_BARGSIZE 512 /* Buffer size for Boot Arguments 66 #define CONFIG_SYS_BARGSIZE 512 /* Buffer size for Boot Arguments
67 passed to kernel */ 67 passed to kernel */
68 #define CONFIG_SYS_BAUDRATE_TABLE { 115200 } /* List of legal baudrate 68 #define CONFIG_SYS_BAUDRATE_TABLE { 115200 } /* List of legal baudrate
69 settings for this board */ 69 settings for this board */
70 70
71 /* SDRAM */ 71 /* SDRAM */
72 #define CONFIG_SYS_SDRAM_BASE (0x8C000000) 72 #define CONFIG_SYS_SDRAM_BASE (0x8C000000)
73 #define CONFIG_SYS_SDRAM_SIZE (64 * 1024 * 1024) 73 #define CONFIG_SYS_SDRAM_SIZE (64 * 1024 * 1024)
74 #define CONFIG_SYS_MEMTEST_START (CONFIG_SYS_SDRAM_BASE) 74 #define CONFIG_SYS_MEMTEST_START (CONFIG_SYS_SDRAM_BASE)
75 #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + (60 * 1024 * 1024)) 75 #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + (60 * 1024 * 1024))
76 76
77 /* Flash(NOR) */ 77 /* Flash(NOR) */
78 #define CONFIG_SYS_FLASH_BASE (0xA0000000) 78 #define CONFIG_SYS_FLASH_BASE (0xA0000000)
79 #define CONFIG_SYS_FLASH_CFI_WIDTH (FLASH_CFI_16BIT) 79 #define CONFIG_SYS_FLASH_CFI_WIDTH (FLASH_CFI_16BIT)
80 #define CONFIG_SYS_MAX_FLASH_BANKS (1) 80 #define CONFIG_SYS_MAX_FLASH_BANKS (1)
81 #define CONFIG_SYS_MAX_FLASH_SECT (520) 81 #define CONFIG_SYS_MAX_FLASH_SECT (520)
82 82
83 /* U-boot setting */ 83 /* U-boot setting */
84 #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 4 * 1024 * 1024) 84 #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 4 * 1024 * 1024)
85 #define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_FLASH_BASE) 85 #define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_FLASH_BASE)
86 #define CONFIG_SYS_MONITOR_LEN (128 * 1024) 86 #define CONFIG_SYS_MONITOR_LEN (128 * 1024)
87 /* Size of DRAM reserved for malloc() use */ 87 /* Size of DRAM reserved for malloc() use */
88 #define CONFIG_SYS_MALLOC_LEN (1024 * 1024) 88 #define CONFIG_SYS_MALLOC_LEN (1024 * 1024)
89 #define CONFIG_SYS_BOOTMAPSZ (8 * 1024 * 1024) 89 #define CONFIG_SYS_BOOTMAPSZ (8 * 1024 * 1024)
90 90
91 #define CONFIG_SYS_FLASH_CFI 91 #define CONFIG_SYS_FLASH_CFI
92 #define CONFIG_FLASH_CFI_DRIVER 92 #define CONFIG_FLASH_CFI_DRIVER
93 #undef CONFIG_SYS_FLASH_QUIET_TEST 93 #undef CONFIG_SYS_FLASH_QUIET_TEST
94 #define CONFIG_SYS_FLASH_EMPTY_INFO /* print 'E' for empty sector on flinfo */ 94 #define CONFIG_SYS_FLASH_EMPTY_INFO /* print 'E' for empty sector on flinfo */
95 /* Timeout for Flash erase operations (in ms) */ 95 /* Timeout for Flash erase operations (in ms) */
96 #define CONFIG_SYS_FLASH_ERASE_TOUT (3 * 1000) 96 #define CONFIG_SYS_FLASH_ERASE_TOUT (3 * 1000)
97 /* Timeout for Flash write operations (in ms) */ 97 /* Timeout for Flash write operations (in ms) */
98 #define CONFIG_SYS_FLASH_WRITE_TOUT (3 * 1000) 98 #define CONFIG_SYS_FLASH_WRITE_TOUT (3 * 1000)
99 /* Timeout for Flash set sector lock bit operations (in ms) */ 99 /* Timeout for Flash set sector lock bit operations (in ms) */
100 #define CONFIG_SYS_FLASH_LOCK_TOUT (3 * 1000) 100 #define CONFIG_SYS_FLASH_LOCK_TOUT (3 * 1000)
101 /* Timeout for Flash clear lock bit operations (in ms) */ 101 /* Timeout for Flash clear lock bit operations (in ms) */
102 #define CONFIG_SYS_FLASH_UNLOCK_TOUT (3 * 1000) 102 #define CONFIG_SYS_FLASH_UNLOCK_TOUT (3 * 1000)
103 /* Use hardware flash sectors protection instead of U-Boot software protection */ 103 /* Use hardware flash sectors protection instead of U-Boot software protection */
104 #undef CONFIG_SYS_FLASH_PROTECTION 104 #undef CONFIG_SYS_FLASH_PROTECTION
105 #undef CONFIG_SYS_DIRECT_FLASH_TFTP 105 #undef CONFIG_SYS_DIRECT_FLASH_TFTP
106 #define CONFIG_ENV_IS_IN_FLASH 106 #define CONFIG_ENV_IS_IN_FLASH
107 #define CONFIG_ENV_SECT_SIZE (128 * 1024) 107 #define CONFIG_ENV_SECT_SIZE (128 * 1024)
108 #define CONFIG_ENV_SIZE (CONFIG_ENV_SECT_SIZE) 108 #define CONFIG_ENV_SIZE (CONFIG_ENV_SECT_SIZE)
109 #define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + (1 * CONFIG_ENV_SECT_SIZE)) 109 #define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + (1 * CONFIG_ENV_SECT_SIZE))
110 /* Offset of env Flash sector relative to CONFIG_SYS_FLASH_BASE */ 110 /* Offset of env Flash sector relative to CONFIG_SYS_FLASH_BASE */
111 #define CONFIG_ENV_OFFSET (CONFIG_ENV_ADDR - CONFIG_SYS_FLASH_BASE) 111 #define CONFIG_ENV_OFFSET (CONFIG_ENV_ADDR - CONFIG_SYS_FLASH_BASE)
112 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SECT_SIZE) 112 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SECT_SIZE)
113 #define CONFIG_ENV_ADDR_REDUND (CONFIG_SYS_FLASH_BASE + (2 * CONFIG_ENV_SECT_SIZE)) 113 #define CONFIG_ENV_ADDR_REDUND (CONFIG_SYS_FLASH_BASE + (2 * CONFIG_ENV_SECT_SIZE))
114 114
115 /* Clock */ 115 /* Clock */
116 #define CONFIG_SYS_CLK_FREQ 66666666 116 #define CONFIG_SYS_CLK_FREQ 66666666
117 #define CONFIG_SYS_TMU_CLK_DIV (4) /* 4 (default), 16, 64, 256 or 1024 */ 117 #define CONFIG_SYS_TMU_CLK_DIV (4) /* 4 (default), 16, 64, 256 or 1024 */
118 #define CONFIG_SYS_HZ 1000 118 #define CONFIG_SYS_HZ 1000
119 119
120 /* Ether */ 120 /* Ether */
121 #define CONFIG_SH_ETHER 1 121 #define CONFIG_SH_ETHER 1
122 #define CONFIG_SH_ETHER_USE_PORT (1) 122 #define CONFIG_SH_ETHER_USE_PORT (1)
123 #define CONFIG_SH_ETHER_PHY_ADDR (0x01) 123 #define CONFIG_SH_ETHER_PHY_ADDR (0x01)
124 #define CONFIG_PHYLIB 124 #define CONFIG_PHYLIB
125 #define CONFIG_BITBANGMII 125 #define CONFIG_BITBANGMII
126 #define CONFIG_BITBANGMII_MULTI 126 #define CONFIG_BITBANGMII_MULTI
127 #define CONFIG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_MII
127 128
128 #endif /* __SH7763RDP_H */ 129 #endif /* __SH7763RDP_H */
129 130