blob: 5f57c3a5a176bba00ca213f5c2618557010cd8b9 [file] [log] [blame]
wdenk3c711762004-06-09 13:37:52 +00001/*
2 * See file CREDITS for list of people who contributed to this
3 * project.
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of
8 * the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
18 * MA 02111-1307 USA
19 */
20
21/*
22 * Logic LH7A400-10 card engine
23 */
24
25#ifndef __LPD7A400_10_H
26#define __LPD7A400_10_H
27
28
29#define CONFIG_ARM920T 1 /* arm920t core */
wdenk37bdfdf2004-06-10 21:55:33 +000030#define CONFIG_LH7A40X 1 /* Sharp LH7A40x SoC family */
31#define CONFIG_LH7A400 1 /* Sharp LH7A400 S0C */
wdenk3c711762004-06-09 13:37:52 +000032
33/* The system clock PLL input frequency */
34#define CONFIG_SYS_CLK_FREQ 14745600 /* System Clock PLL Input (Hz) */
35
36/* ticks per second */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020037#define CONFIG_SYS_HZ (508469)
wdenk3c711762004-06-09 13:37:52 +000038
39/*-----------------------------------------------------------------------
40 * Stack sizes
41 *
42 * The stack sizes are set up in start.S using the settings below
43 */
44#define CONFIG_STACKSIZE (128*1024) /* regular stack */
45#ifdef CONFIG_USE_IRQ
46#define CONFIG_STACKSIZE_IRQ (4*1024) /* IRQ stack */
47#define CONFIG_STACKSIZE_FIQ (4*1024) /* FIQ stack */
48#endif
49
50/*-----------------------------------------------------------------------
51 * Physical Memory Map
52 */
53#define CONFIG_NR_DRAM_BANKS 1 /* we have 1 bank of DRAM */
54#define PHYS_SDRAM_1 0xc0000000 /* SDRAM Bank #1 */
55#define PHYS_SDRAM_1_SIZE 0x02000000 /* 32 MB */
56
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020057#define CONFIG_SYS_FLASH_BASE 0x00000000 /* Flash Bank #1 */
wdenk3c711762004-06-09 13:37:52 +000058
59/*-----------------------------------------------------------------------
60 * FLASH and environment organization
61 */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020062#define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max number of memory banks */
63#define CONFIG_SYS_MAX_FLASH_SECT (64) /* max number of sectors on one chip */
wdenk3c711762004-06-09 13:37:52 +000064
65/* timeout values are in ticks */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020066#define CONFIG_SYS_FLASH_ERASE_TOUT (5*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
67#define CONFIG_SYS_FLASH_WRITE_TOUT (5*CONFIG_SYS_HZ) /* Timeout for Flash Write */
wdenk3c711762004-06-09 13:37:52 +000068
69/*----------------------------------------------------------------------
70 * Using SMC91C111 LAN chip
71 *
72 * Default IO base of chip is 0x300, Card Engine has this address lines
73 * (LAN chip) tied to Vcc, so we just care about the chip select
74 */
Ben Warren0fd6aae2009-10-04 22:37:03 -070075#define CONFIG_NET_MULTI
76#define CONFIG_SMC91111
wdenk3c711762004-06-09 13:37:52 +000077#define CONFIG_SMC91111_BASE (0x70000000)
78#undef CONFIG_SMC_USE_32_BIT
79#define CONFIG_SMC_USE_IOFUNCS
80
81#endif /* __LPD7A400_10_H */