Blame view
include/configs/spear3xx_evb.h
3.7 KB
83d290c56
|
1 |
/* SPDX-License-Identifier: GPL-2.0+ */ |
7e074158c
|
2 3 4 |
/* * (C) Copyright 2009 * Vipin Kumar, STMicroelectronics, <vipin.kumar@st.com> |
7e074158c
|
5 6 7 8 9 10 11 12 13 |
*/ #ifndef __CONFIG_H #define __CONFIG_H /* * High Level Configuration Options * (easy to change) */ |
6ef2e7503
|
14 |
#if defined(CONFIG_SPEAR300) |
9b382b43a
|
15 |
#define CONFIG_SPEAR3XX |
6ef2e7503
|
16 |
#elif defined(CONFIG_SPEAR310) |
9b382b43a
|
17 |
#define CONFIG_SPEAR3XX |
6ef2e7503
|
18 |
#elif defined(CONFIG_SPEAR320) |
9b382b43a
|
19 |
#define CONFIG_SPEAR3XX |
080cfee71
|
20 |
#endif |
7e074158c
|
21 |
|
6ef2e7503
|
22 |
#if defined(CONFIG_USBTTY) |
f273e5b2a
|
23 24 |
#define CONFIG_SPEAR_USBTTY #endif |
7e074158c
|
25 |
#include <configs/spear-common.h> |
deb005622
|
26 |
/* Ethernet driver configuration */ |
9b382b43a
|
27 |
#define CONFIG_DW_ALTDESCRIPTOR |
deb005622
|
28 |
|
8eb0ee6a6
|
29 |
#if defined(CONFIG_SPEAR310) |
9b382b43a
|
30 |
#define CONFIG_MACB |
8eb0ee6a6
|
31 32 33 34 35 36 |
#define CONFIG_MACB0_PHY 0x01 #define CONFIG_MACB1_PHY 0x03 #define CONFIG_MACB2_PHY 0x05 #define CONFIG_MACB3_PHY 0x07 #elif defined(CONFIG_SPEAR320) |
9b382b43a
|
37 |
#define CONFIG_MACB |
8eb0ee6a6
|
38 39 40 |
#define CONFIG_MACB0_PHY 0x01 #endif |
7e074158c
|
41 42 |
/* Serial Configuration (PL011) */ #define CONFIG_SYS_SERIAL0 0xD0000000 |
080cfee71
|
43 44 |
#if defined(CONFIG_SPEAR300) |
7e074158c
|
45 |
#define CONFIG_PL01x_PORTS {(void *)CONFIG_SYS_SERIAL0} |
080cfee71
|
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
#elif defined(CONFIG_SPEAR310) #if (CONFIG_CONS_INDEX) #undef CONFIG_PL011_CLOCK #define CONFIG_PL011_CLOCK (83 * 1000 * 1000) #endif #define CONFIG_SYS_SERIAL1 0xB2000000 #define CONFIG_SYS_SERIAL2 0xB2080000 #define CONFIG_SYS_SERIAL3 0xB2100000 #define CONFIG_SYS_SERIAL4 0xB2180000 #define CONFIG_SYS_SERIAL5 0xB2200000 #define CONFIG_PL01x_PORTS {(void *)CONFIG_SYS_SERIAL0, \ (void *)CONFIG_SYS_SERIAL1, \ (void *)CONFIG_SYS_SERIAL2, \ (void *)CONFIG_SYS_SERIAL3, \ (void *)CONFIG_SYS_SERIAL4, \ (void *)CONFIG_SYS_SERIAL5 } |
7da692360
|
64 65 66 67 68 69 70 71 72 73 74 75 |
#elif defined(CONFIG_SPEAR320) #if (CONFIG_CONS_INDEX) #undef CONFIG_PL011_CLOCK #define CONFIG_PL011_CLOCK (83 * 1000 * 1000) #endif #define CONFIG_SYS_SERIAL1 0xA3000000 #define CONFIG_SYS_SERIAL2 0xA4000000 #define CONFIG_PL01x_PORTS {(void *)CONFIG_SYS_SERIAL0, \ (void *)CONFIG_SYS_SERIAL1, \ (void *)CONFIG_SYS_SERIAL2 } |
080cfee71
|
76 77 78 |
#endif #if defined(CONFIG_SPEAR_EMI) |
080cfee71
|
79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
#if defined(CONFIG_SPEAR310) #define CONFIG_SYS_FLASH_BASE 0x50000000 #define CONFIG_SYS_CS1_FLASH_BASE 0x60000000 #define CONFIG_SYS_CS2_FLASH_BASE 0x70000000 #define CONFIG_SYS_CS3_FLASH_BASE 0x80000000 #define CONFIG_SYS_CS4_FLASH_BASE 0x90000000 #define CONFIG_SYS_CS5_FLASH_BASE 0xA0000000 #define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE, \ CONFIG_SYS_CS1_FLASH_BASE, \ CONFIG_SYS_CS2_FLASH_BASE, \ CONFIG_SYS_CS3_FLASH_BASE, \ CONFIG_SYS_CS4_FLASH_BASE, \ CONFIG_SYS_CS5_FLASH_BASE } #define CONFIG_SYS_MAX_FLASH_BANKS 6 |
7da692360
|
93 94 95 96 97 98 99 100 101 102 |
#elif defined(CONFIG_SPEAR320) #define CONFIG_SYS_FLASH_BASE 0x44000000 #define CONFIG_SYS_CS1_FLASH_BASE 0x45000000 #define CONFIG_SYS_CS2_FLASH_BASE 0x46000000 #define CONFIG_SYS_CS3_FLASH_BASE 0x47000000 #define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE, \ CONFIG_SYS_CS1_FLASH_BASE, \ CONFIG_SYS_CS2_FLASH_BASE, \ CONFIG_SYS_CS3_FLASH_BASE } #define CONFIG_SYS_MAX_FLASH_BANKS 4 |
080cfee71
|
103 104 105 |
#endif #define CONFIG_SYS_MAX_FLASH_SECT (127 + 8) |
9b382b43a
|
106 |
#define CONFIG_SYS_FLASH_QUIET_TEST |
080cfee71
|
107 108 |
#endif |
1fa943b99
|
109 110 111 |
/* NAND flash configuration */ #define CONFIG_SYS_FSMC_NAND_SP #define CONFIG_SYS_FSMC_NAND_8BIT |
080cfee71
|
112 |
#if defined(CONFIG_SPEAR300) |
bc0bdf4c2
|
113 |
#define CONFIG_SYS_NAND_BASE 0x80000000 |
7e074158c
|
114 |
|
080cfee71
|
115 |
#elif defined(CONFIG_SPEAR310) |
bc0bdf4c2
|
116 |
#define CONFIG_SYS_NAND_BASE 0x40000000 |
080cfee71
|
117 |
|
7da692360
|
118 |
#elif defined(CONFIG_SPEAR320) |
bc0bdf4c2
|
119 |
#define CONFIG_SYS_NAND_BASE 0x50000000 |
7da692360
|
120 |
|
080cfee71
|
121 |
#endif |
1b7935cd9
|
122 123 124 125 126 127 128 129 130 |
/* Environment Settings */ #if defined(CONFIG_SPEAR300) #define CONFIG_EXTRA_ENV_SETTINGS CONFIG_EXTRA_ENV_USBTTY #elif defined(CONFIG_SPEAR310) || defined(CONFIG_SPEAR320) #define CONFIG_EXTRA_ENV_UNLOCK "unlock=yes\0" #define CONFIG_EXTRA_ENV_SETTINGS CONFIG_EXTRA_ENV_USBTTY \ CONFIG_EXTRA_ENV_UNLOCK #endif |
7e074158c
|
131 |
#endif /* __CONFIG_H */ |