1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Configuation settings for the Freescale MCF5208EVBe.
5 * Copyright (C) 2004-2008 Freescale Semiconductor, Inc.
6 * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
13 * High Level Configuration Options
16 #define CONFIG_SYS_UART_PORT (0)
18 #define CONFIG_WATCHDOG_TIMEOUT 5000
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 */
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 */
43 #define CONFIG_HOSTNAME "M5208EVBe"
44 #define CONFIG_EXTRA_ENV_SETTINGS \
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;" \
52 "cp.b ${loadaddr} 0 ${filesize};" \
56 #define CONFIG_PRAM 512 /* 512 KB */
58 #define CONFIG_SYS_CLK 166666666 /* CPU Core Clock */
59 #define CONFIG_SYS_PLL_ODR 0x36
60 #define CONFIG_SYS_PLL_FDR 0x7D
62 #define CONFIG_SYS_MBAR 0xFC000000
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.
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
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
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
89 #define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_FLASH_BASE + 0x400)
90 #define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 256 kB for Monitor */
92 #define CONFIG_SYS_BOOTPARAMS_LEN 64*1024
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 ??
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)
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 */
109 #define CONFIG_SYS_FLASH_BASE CONFIG_SYS_CS0_BASE
112 * Configuration for environment
113 * Environment is embedded in u-boot in the second sector of the flash
116 #define LDS_BOARD_TEXT \
117 . = DEFINED(env_offset) ? env_offset : .; \
118 env/embedded.o(.text*);
120 /* Cache Configuration */
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 | \
135 /* Chipselect bank definitions */
144 #define CONFIG_SYS_CS0_BASE 0
145 #define CONFIG_SYS_CS0_MASK 0x007F0001
146 #define CONFIG_SYS_CS0_CTRL 0x00001FA0
148 #endif /* _M5208EVBE_H */