]> git.ipfire.org Git - people/ms/u-boot.git/blame - include/configs/spear3xx.h
SPEAr : Support added for SPEAr320 board
[people/ms/u-boot.git] / include / configs / spear3xx.h
CommitLineData
7e074158
VK
1/*
2 * (C) Copyright 2009
3 * Vipin Kumar, STMicroelectronics, <vipin.kumar@st.com>
4 *
5 * See file CREDITS for list of people who contributed to this
6 * project.
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21 * MA 02111-1307 USA
22 */
23
24#ifndef __CONFIG_H
25#define __CONFIG_H
26
27/*
28 * High Level Configuration Options
29 * (easy to change)
30 */
080cfee7
VK
31#if defined(CONFIG_MK_spear300)
32#define CONFIG_SPEAR3XX 1
7e074158 33#define CONFIG_SPEAR300 1
080cfee7 34#elif defined(CONFIG_MK_spear310)
7e074158 35#define CONFIG_SPEAR3XX 1
080cfee7 36#define CONFIG_SPEAR310 1
7da69236
VK
37#elif defined(CONFIG_MK_spear320)
38#define CONFIG_SPEAR3XX 1
39#define CONFIG_SPEAR320 1
080cfee7 40#endif
7e074158
VK
41
42#include <configs/spear-common.h>
43
44/* Serial Configuration (PL011) */
45#define CONFIG_SYS_SERIAL0 0xD0000000
080cfee7
VK
46
47#if defined(CONFIG_SPEAR300)
7e074158
VK
48#define CONFIG_PL01x_PORTS {(void *)CONFIG_SYS_SERIAL0}
49
080cfee7
VK
50#elif defined(CONFIG_SPEAR310)
51
52#if (CONFIG_CONS_INDEX)
53#undef CONFIG_PL011_CLOCK
54#define CONFIG_PL011_CLOCK (83 * 1000 * 1000)
55#endif
56
57#define CONFIG_SYS_SERIAL1 0xB2000000
58#define CONFIG_SYS_SERIAL2 0xB2080000
59#define CONFIG_SYS_SERIAL3 0xB2100000
60#define CONFIG_SYS_SERIAL4 0xB2180000
61#define CONFIG_SYS_SERIAL5 0xB2200000
62#define CONFIG_PL01x_PORTS {(void *)CONFIG_SYS_SERIAL0, \
63 (void *)CONFIG_SYS_SERIAL1, \
64 (void *)CONFIG_SYS_SERIAL2, \
65 (void *)CONFIG_SYS_SERIAL3, \
66 (void *)CONFIG_SYS_SERIAL4, \
67 (void *)CONFIG_SYS_SERIAL5 }
7da69236
VK
68#elif defined(CONFIG_SPEAR320)
69
70#if (CONFIG_CONS_INDEX)
71#undef CONFIG_PL011_CLOCK
72#define CONFIG_PL011_CLOCK (83 * 1000 * 1000)
73#endif
74
75#define CONFIG_SYS_SERIAL1 0xA3000000
76#define CONFIG_SYS_SERIAL2 0xA4000000
77#define CONFIG_PL01x_PORTS {(void *)CONFIG_SYS_SERIAL0, \
78 (void *)CONFIG_SYS_SERIAL1, \
79 (void *)CONFIG_SYS_SERIAL2 }
080cfee7
VK
80#endif
81
82#if defined(CONFIG_SPEAR_EMI)
83
84#define CONFIG_SYS_FLASH_CFI
85#define CONFIG_FLASH_CFI_DRIVER
86
87#if defined(CONFIG_SPEAR310)
88#define CONFIG_SYS_FLASH_BASE 0x50000000
89#define CONFIG_SYS_CS1_FLASH_BASE 0x60000000
90#define CONFIG_SYS_CS2_FLASH_BASE 0x70000000
91#define CONFIG_SYS_CS3_FLASH_BASE 0x80000000
92#define CONFIG_SYS_CS4_FLASH_BASE 0x90000000
93#define CONFIG_SYS_CS5_FLASH_BASE 0xA0000000
94#define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE, \
95 CONFIG_SYS_CS1_FLASH_BASE, \
96 CONFIG_SYS_CS2_FLASH_BASE, \
97 CONFIG_SYS_CS3_FLASH_BASE, \
98 CONFIG_SYS_CS4_FLASH_BASE, \
99 CONFIG_SYS_CS5_FLASH_BASE }
100#define CONFIG_SYS_MAX_FLASH_BANKS 6
101
7da69236
VK
102#elif defined(CONFIG_SPEAR320)
103#define CONFIG_SYS_FLASH_BASE 0x44000000
104#define CONFIG_SYS_CS1_FLASH_BASE 0x45000000
105#define CONFIG_SYS_CS2_FLASH_BASE 0x46000000
106#define CONFIG_SYS_CS3_FLASH_BASE 0x47000000
107#define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE, \
108 CONFIG_SYS_CS1_FLASH_BASE, \
109 CONFIG_SYS_CS2_FLASH_BASE, \
110 CONFIG_SYS_CS3_FLASH_BASE }
111#define CONFIG_SYS_MAX_FLASH_BANKS 4
112
080cfee7
VK
113#endif
114
115#define CONFIG_SYS_MAX_FLASH_SECT (127 + 8)
116#define CONFIG_SYS_FLASH_QUIET_TEST 1
117
118#endif
119
120#if defined(CONFIG_SPEAR300)
7e074158
VK
121#define CONFIG_SYS_NAND_BASE (0x80000000)
122
080cfee7
VK
123#elif defined(CONFIG_SPEAR310)
124#define CONFIG_SYS_NAND_BASE (0x40000000)
125
7da69236
VK
126#elif defined(CONFIG_SPEAR320)
127#define CONFIG_SYS_NAND_BASE (0x50000000)
128
080cfee7
VK
129#endif
130
7e074158 131#endif /* __CONFIG_H */