Convert CONFIG_SYS_FAULT_ECHO_LINK_DOWN to Kconfig
[platform/kernel/u-boot.git] / include / configs / M5208EVBE.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Configuation settings for the Freescale MCF5208EVBe.
4  *
5  * Copyright (C) 2004-2008 Freescale Semiconductor, Inc.
6  * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
7  */
8
9 #ifndef _M5208EVBE_H
10 #define _M5208EVBE_H
11
12 /*
13  * High Level Configuration Options
14  * (easy to change)
15  */
16 #define CONFIG_SYS_UART_PORT            (0)
17
18 #define CONFIG_WATCHDOG_TIMEOUT         5000
19
20 #ifdef CONFIG_MCFFEC
21 #       define CONFIG_MII_INIT          1
22 #       define CONFIG_SYS_DISCOVER_PHY
23 #       define CONFIG_SYS_RX_ETH_BUFFER 8
24 /* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */
25 #       ifndef CONFIG_SYS_DISCOVER_PHY
26 #               define FECDUPLEX        FULL
27 #               define FECSPEED         _100BASET
28 #       endif                   /* CONFIG_SYS_DISCOVER_PHY */
29 #endif
30
31 /* Timer */
32 #define CONFIG_MCFTMR
33
34 /* I2C */
35
36 #ifdef CONFIG_MCFFEC
37 #       define CONFIG_IPADDR    192.162.1.2
38 #       define CONFIG_NETMASK   255.255.255.0
39 #       define CONFIG_SERVERIP  192.162.1.1
40 #       define CONFIG_GATEWAYIP 192.162.1.1
41 #endif                          /* CONFIG_MCFFEC */
42
43 #define CONFIG_HOSTNAME         "M5208EVBe"
44 #define CONFIG_EXTRA_ENV_SETTINGS               \
45         "netdev=eth0\0"                         \
46         "loadaddr=40010000\0"                   \
47         "u-boot=u-boot.bin\0"                   \
48         "load=tftp ${loadaddr) ${u-boot}\0"     \
49         "upd=run load; run prog\0"              \
50         "prog=prot off 0 3ffff;"                \
51         "era 0 3ffff;"                          \
52         "cp.b ${loadaddr} 0 ${filesize};"       \
53         "save\0"                                \
54         ""
55
56 #define CONFIG_PRAM             512     /* 512 KB */
57
58 #define CONFIG_SYS_CLK          166666666       /* CPU Core Clock */
59 #define CONFIG_SYS_PLL_ODR      0x36
60 #define CONFIG_SYS_PLL_FDR      0x7D
61
62 #define CONFIG_SYS_MBAR         0xFC000000
63
64 /*
65  * Low Level Configuration Settings
66  * (address mappings, register initial values, etc.)
67  * You should know what you are doing if you make changes here.
68  */
69 /* Definitions for initial stack pointer and data area (in DPRAM) */
70 #define CONFIG_SYS_INIT_RAM_ADDR        0x80000000
71 #define CONFIG_SYS_INIT_RAM_SIZE                0x4000  /* Size of used area in internal SRAM */
72 #define CONFIG_SYS_INIT_RAM_CTRL        0x221
73 #define CONFIG_SYS_GBL_DATA_OFFSET      ((CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) - 0x10)
74 #define CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
75
76 /*
77  * Start addresses for the final memory configuration
78  * (Set up by the startup code)
79  * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
80  */
81 #define CONFIG_SYS_SDRAM_BASE           0x40000000
82 #define CONFIG_SYS_SDRAM_SIZE           32      /* SDRAM size in MB */
83 #define CONFIG_SYS_SDRAM_CFG1           0x43711630
84 #define CONFIG_SYS_SDRAM_CFG2           0x56670000
85 #define CONFIG_SYS_SDRAM_CTRL           0xE1002000
86 #define CONFIG_SYS_SDRAM_EMOD           0x80010000
87 #define CONFIG_SYS_SDRAM_MODE           0x00CD0000
88
89 #define CONFIG_SYS_MONITOR_BASE         (CONFIG_SYS_FLASH_BASE + 0x400)
90 #define CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor */
91
92 #define CONFIG_SYS_BOOTPARAMS_LEN       64*1024
93
94 /*
95  * For booting Linux, the board info and command line data
96  * have to be in the first 8 MB of memory, since this is
97  * the maximum mapped by the Linux kernel during initialization ??
98  */
99 #define CONFIG_SYS_BOOTMAPSZ            (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
100 #define CONFIG_SYS_BOOTM_LEN            (CONFIG_SYS_SDRAM_SIZE << 20)
101
102 /* FLASH organization */
103 #ifdef CONFIG_SYS_FLASH_CFI
104 #       define CONFIG_SYS_FLASH_SIZE            0x800000        /* Max size that the board might have */
105 #       define CONFIG_SYS_FLASH_CFI_WIDTH       FLASH_CFI_16BIT
106 #       define CONFIG_SYS_MAX_FLASH_SECT        254     /* max number of sectors on one chip */
107 #endif
108
109 #define CONFIG_SYS_FLASH_BASE           CONFIG_SYS_CS0_BASE
110
111 /*
112  * Configuration for environment
113  * Environment is embedded in u-boot in the second sector of the flash
114  */
115
116 #define LDS_BOARD_TEXT \
117         . = DEFINED(env_offset) ? env_offset : .; \
118         env/embedded.o(.text*);
119
120 /* Cache Configuration */
121
122 #define ICACHE_STATUS                   (CONFIG_SYS_INIT_RAM_ADDR + \
123                                          CONFIG_SYS_INIT_RAM_SIZE - 8)
124 #define DCACHE_STATUS                   (CONFIG_SYS_INIT_RAM_ADDR + \
125                                          CONFIG_SYS_INIT_RAM_SIZE - 4)
126 #define CONFIG_SYS_ICACHE_INV           (CF_CACR_CINV | CF_CACR_INVI)
127 #define CONFIG_SYS_CACHE_ACR0           (CONFIG_SYS_SDRAM_BASE | \
128                                          CF_ADDRMASK(CONFIG_SYS_SDRAM_SIZE) | \
129                                          CF_ACR_EN | CF_ACR_SM_ALL)
130 #define CONFIG_SYS_CACHE_ICACR          (CF_CACR_CENB | CF_CACR_CINV | \
131                                          CF_CACR_DISD | CF_CACR_INVI | \
132                                          CF_CACR_CEIB | CF_CACR_DCM | \
133                                          CF_CACR_EUSP)
134
135 /* Chipselect bank definitions */
136 /*
137  * CS0 - NOR Flash
138  * CS1 - Available
139  * CS2 - Available
140  * CS3 - Available
141  * CS4 - Available
142  * CS5 - Available
143  */
144 #define CONFIG_SYS_CS0_BASE             0
145 #define CONFIG_SYS_CS0_MASK             0x007F0001
146 #define CONFIG_SYS_CS0_CTRL             0x00001FA0
147
148 #endif                          /* _M5208EVBE_H */