Blame view
include/configs/edb93xx.h
6.79 KB
7237d22ba arm: ep9315: Retu... |
1 |
/* |
a187559e3 Use correct spell... |
2 |
* U-Boot - Configuration file for Cirrus Logic EDB93xx boards |
7237d22ba arm: ep9315: Retu... |
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
*/ #ifndef __CONFIG_H #define __CONFIG_H #ifdef CONFIG_MK_edb9301 #define CONFIG_EDB9301 #elif defined(CONFIG_MK_edb9302) #define CONFIG_EDB9302 #elif defined(CONFIG_MK_edb9302a) #define CONFIG_EDB9302A #elif defined(CONFIG_MK_edb9307) #define CONFIG_EDB9307 #elif defined(CONFIG_MK_edb9307a) #define CONFIG_EDB9307A #elif defined(CONFIG_MK_edb9312) #define CONFIG_EDB9312 #elif defined(CONFIG_MK_edb9315) #define CONFIG_EDB9315 #elif defined(CONFIG_MK_edb9315a) #define CONFIG_EDB9315A #else #error "no board defined" #endif /* Initial environment and monitor configuration options. */ |
7237d22ba arm: ep9315: Retu... |
29 30 31 |
#define CONFIG_CMDLINE_TAG 1 #define CONFIG_INITRD_TAG 1 #define CONFIG_SETUP_MEMORY_TAGS 1 |
7237d22ba arm: ep9315: Retu... |
32 |
#define CONFIG_BOOTFILE "edb93xx.img" |
7237d22ba arm: ep9315: Retu... |
33 |
#define CONFIG_SYS_LDSCRIPT "board/cirrus/edb93xx/u-boot.lds" |
7237d22ba arm: ep9315: Retu... |
34 |
#ifdef CONFIG_EDB9301 |
7237d22ba arm: ep9315: Retu... |
35 |
#define CONFIG_MACH_TYPE MACH_TYPE_EDB9301 |
7237d22ba arm: ep9315: Retu... |
36 37 38 39 |
#define CONFIG_ENV_SECT_SIZE 0x00020000 #elif defined(CONFIG_EDB9302) #define CONFIG_EP9302 #define CONFIG_MACH_TYPE MACH_TYPE_EDB9302 |
7237d22ba arm: ep9315: Retu... |
40 41 42 43 |
#define CONFIG_ENV_SECT_SIZE 0x00020000 #elif defined(CONFIG_EDB9302A) #define CONFIG_EP9302 #define CONFIG_MACH_TYPE MACH_TYPE_EDB9302A |
7237d22ba arm: ep9315: Retu... |
44 45 46 47 |
#define CONFIG_ENV_SECT_SIZE 0x00020000 #elif defined(CONFIG_EDB9307) #define CONFIG_EP9307 #define CONFIG_MACH_TYPE MACH_TYPE_EDB9307 |
7237d22ba arm: ep9315: Retu... |
48 49 50 51 |
#define CONFIG_ENV_SECT_SIZE 0x00040000 #elif defined(CONFIG_EDB9307A) #define CONFIG_EP9307 #define CONFIG_MACH_TYPE MACH_TYPE_EDB9307A |
7237d22ba arm: ep9315: Retu... |
52 53 54 55 |
#define CONFIG_ENV_SECT_SIZE 0x00020000 #elif defined(CONFIG_EDB9312) #define CONFIG_EP9312 #define CONFIG_MACH_TYPE MACH_TYPE_EDB9312 |
7237d22ba arm: ep9315: Retu... |
56 57 58 59 |
#define CONFIG_ENV_SECT_SIZE 0x00040000 #elif defined(CONFIG_EDB9315) #define CONFIG_EP9315 #define CONFIG_MACH_TYPE MACH_TYPE_EDB9315 |
7237d22ba arm: ep9315: Retu... |
60 61 62 63 |
#define CONFIG_ENV_SECT_SIZE 0x00040000 #elif defined(CONFIG_EDB9315A) #define CONFIG_EP9315 #define CONFIG_MACH_TYPE MACH_TYPE_EDB9315A |
7237d22ba arm: ep9315: Retu... |
64 65 66 67 68 69 |
#define CONFIG_ENV_SECT_SIZE 0x00020000 #else #error "no board defined" #endif /* High-level configuration options */ |
f2168440d ARM: remove CONFI... |
70 |
#define CONFIG_EP93XX 1 /* This is a Cirrus Logic 93xx SoC */ |
7237d22ba arm: ep9315: Retu... |
71 72 |
#define CONFIG_SYS_CLK_FREQ 14745600 /* EP93xx has a 14.7456 clock */ |
7237d22ba arm: ep9315: Retu... |
73 74 |
/* Monitor configuration */ |
7237d22ba arm: ep9315: Retu... |
75 |
|
7237d22ba arm: ep9315: Retu... |
76 |
#define CONFIG_SYS_CBSIZE 1024 /* Console I/O buffer size */ |
7237d22ba arm: ep9315: Retu... |
77 78 |
/* Serial port hardware configuration */ |
7237d22ba arm: ep9315: Retu... |
79 |
#define CONFIG_CONS_INDEX 0 |
7237d22ba arm: ep9315: Retu... |
80 81 82 83 84 85 86 87 88 89 |
#define CONFIG_SYS_BAUDRATE_TABLE {9600, 19200, 38400, 57600, \ 115200, 230400} #define CONFIG_SYS_SERIAL0 0x808C0000 #define CONFIG_SYS_SERIAL1 0x808D0000 /*#define CONFIG_PL01x_PORTS {(void *)CONFIG_SYS_SERIAL0, \ (void *)CONFIG_SYS_SERIAL1} */ #define CONFIG_PL01x_PORTS {(void *)CONFIG_SYS_SERIAL0} /* Status LED */ |
7237d22ba arm: ep9315: Retu... |
90 |
/* Optional value */ |
7237d22ba arm: ep9315: Retu... |
91 92 93 94 95 96 |
/* Network hardware configuration */ #define CONFIG_DRIVER_EP93XX_MAC #define CONFIG_MII_SUPPRESS_PREAMBLE #define CONFIG_MII #define CONFIG_PHY_ADDR 1 |
7237d22ba arm: ep9315: Retu... |
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
#undef CONFIG_NETCONSOLE /* SDRAM configuration */ #if defined(CONFIG_EDB9301) || defined(CONFIG_EDB9302) || \ defined(CONFIG_EDB9307) || defined CONFIG_EDB9312 || \ defined(CONFIG_EDB9315) /* * EDB9301/2 has 4 banks of SDRAM consisting of 1x Samsung K4S561632E-TC75 * 256 Mbit SDRAM on a 16-bit data bus, for a total of 32MB of SDRAM. We set * the SROMLL bit on the processor, resulting in this non-contiguous memory map. * * The EDB9307, EDB9312, and EDB9315 have 2 banks of SDRAM consisting of * 2x Samsung K4S561632E-TC75 256 Mbit on a 32-bit data bus, for a total of * 64 MB of SDRAM. */ #define CONFIG_EDB93XX_SDCS3 #elif defined(CONFIG_EDB9302A) || \ defined(CONFIG_EDB9307A) || defined(CONFIG_EDB9315A) /* * EDB9302a has 4 banks of SDRAM consisting of 1x Samsung K4S561632E-TC75 * 256 Mbit SDRAM on a 16-bit data bus, for a total of 32MB of SDRAM. We set * the SROMLL bit on the processor, resulting in this non-contiguous memory map. * * The EDB9307A and EDB9315A have 2 banks of SDRAM consisting of 2x Samsung * K4S561632E-TC75 256 Mbit on a 32-bit data bus, for a total of 64 MB of SDRAM. */ #define CONFIG_EDB93XX_SDCS0 #else #error "no SDCS configuration for this board" #endif |
7237d22ba arm: ep9315: Retu... |
130 131 132 133 134 135 136 137 138 139 140 141 142 |
#if defined(CONFIG_EDB93XX_SDCS3) #define CONFIG_SYS_LOAD_ADDR 0x01000000 /* Default load address */ #define PHYS_SDRAM_1 0x00000000 #elif defined(CONFIG_EDB93XX_SDCS0) #define CONFIG_SYS_LOAD_ADDR 0xc1000000 /* Default load address */ #define PHYS_SDRAM_1 0xc0000000 #endif #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1 #define CONFIG_NR_DRAM_BANKS 8 #define CONFIG_SYS_INIT_SP_ADDR \ (CONFIG_SYS_SDRAM_BASE + 32*1024 - GENERATED_GBL_DATA_SIZE) |
7237d22ba arm: ep9315: Retu... |
143 144 145 146 147 |
/* Must match kernel config */ #define LINUX_BOOT_PARAM_ADDR (PHYS_SDRAM_1 + 0x100) /* Run-time memory allocatons */ #define CONFIG_SYS_GBL_DATA_SIZE 128 |
7237d22ba arm: ep9315: Retu... |
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 |
#define CONFIG_SYS_MALLOC_LEN (512 * 1024) /* ----------------------------------------------------------------------------- * FLASH and environment organization * * The EDB9301, EDB9302(a), EDB9307a, EDB9315a have 1 bank of flash memory at * 0x60000000 consisting of 1x Intel TE28F128J3C-150 128 Mbit flash on a 16-bit * data bus, for a total of 16 MB of CFI-compatible flash. * * The EDB9307, EDB9312, and EDB9315 have 1 bank of flash memory at * 0x60000000 consisting of 2x Micron MT28F128J3-12 128 Mbit flash on a 32-bit * data bus, for a total of 32 MB of CFI-compatible flash. * * * EDB9301/02(a)7a/15a EDB9307/12/15 * 0x60000000 - 0x0003FFFF u-boot u-boot * 0x60040000 - 0x0005FFFF environment #1 environment #1 * 0x60060000 - 0x0007FFFF environment #2 environment #1 (continued) * 0x60080000 - 0x0009FFFF unused environment #2 * 0x600A0000 - 0x000BFFFF unused environment #2 (continued) * 0x600C0000 - 0x00FFFFFF unused unused * 0x61000000 - 0x01FFFFFF not present unused */ #define CONFIG_SYS_FLASH_CFI #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE |
7237d22ba arm: ep9315: Retu... |
174 175 176 177 |
#define CONFIG_SYS_FLASH_PROTECTION #define CONFIG_FLASH_CFI_DRIVER #define CONFIG_SYS_MAX_FLASH_BANKS 1 #define CONFIG_SYS_MAX_FLASH_SECT (256+8) |
7237d22ba arm: ep9315: Retu... |
178 179 180 181 182 183 184 |
#define PHYS_FLASH_1 CONFIG_SYS_TEXT_BASE #define CONFIG_SYS_FLASH_BASE CONFIG_SYS_TEXT_BASE #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE #define CONFIG_SYS_MONITOR_LEN (256 * 1024) #define CONFIG_ENV_OVERWRITE /* Vendor params unprotected */ |
7237d22ba arm: ep9315: Retu... |
185 186 187 188 189 190 |
#define CONFIG_ENV_ADDR 0x60040000 #define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR + CONFIG_ENV_SECT_SIZE) #define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE |
7237d22ba arm: ep9315: Retu... |
191 192 193 194 195 196 |
#define CONFIG_USB_OHCI_NEW #define CONFIG_USB_OHCI_EP93XX #define CONFIG_SYS_USB_OHCI_CPU_INIT #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 3 #define CONFIG_SYS_USB_OHCI_SLOT_NAME "ep93xx-ohci" #define CONFIG_SYS_USB_OHCI_REGS_BASE 0x80020000 |
7237d22ba arm: ep9315: Retu... |
197 198 199 200 201 202 203 |
/* Define to disable flash configuration*/ /* #define CONFIG_EP93XX_NO_FLASH_CFG */ /* Define this for indusrial rated chips */ /* #define CONFIG_EDB93XX_INDUSTRIAL */ #endif /* !defined (__CONFIG_H) */ |