2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2004-02-12 00:47:09 +00:00
|
|
|
/*
|
|
|
|
* Configuation settings for the Motorola MC5272C3 board.
|
|
|
|
*
|
|
|
|
* (C) Copyright 2003 Josef Baumgartner <josef.baumgartner@telex.de>
|
|
|
|
*/
|
2003-12-08 01:34:36 +00:00
|
|
|
|
2004-02-12 00:47:09 +00:00
|
|
|
/*
|
|
|
|
* board/config.h - configuration options, board specific
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _M5272C3_H
|
|
|
|
#define _M5272C3_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* High Level Configuration Options
|
|
|
|
* (easy to change)
|
|
|
|
*/
|
2007-08-16 01:32:06 +00:00
|
|
|
#define CONFIG_MCFTMR
|
2003-12-08 01:34:36 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_UART_PORT (0)
|
2004-02-12 00:47:09 +00:00
|
|
|
|
|
|
|
#define CONFIG_WATCHDOG_TIMEOUT 10000 /* timeout in milliseconds */
|
|
|
|
|
2007-08-16 01:32:06 +00:00
|
|
|
#undef CONFIG_MONITOR_IS_IN_RAM /* define if monitor is started from a pre-loader */
|
2004-02-12 00:47:09 +00:00
|
|
|
|
|
|
|
/* Configuration for environment
|
|
|
|
* Environment is embedded in u-boot in the second sector of the flash
|
|
|
|
*/
|
|
|
|
|
2015-03-29 20:54:16 +00:00
|
|
|
#define LDS_BOARD_TEXT \
|
2017-08-03 18:21:49 +00:00
|
|
|
. = DEFINED(env_offset) ? env_offset : .; \
|
|
|
|
env/embedded.o(.text);
|
2015-03-29 20:54:16 +00:00
|
|
|
|
2007-08-16 01:32:06 +00:00
|
|
|
#ifdef CONFIG_MCFFEC
|
2008-08-18 18:37:13 +00:00
|
|
|
# define CONFIG_MII_INIT 1
|
2008-10-16 13:01:15 +00:00
|
|
|
# define CONFIG_SYS_DISCOVER_PHY
|
|
|
|
# define CONFIG_SYS_RX_ETH_BUFFER 8
|
|
|
|
/* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */
|
|
|
|
# ifndef CONFIG_SYS_DISCOVER_PHY
|
2007-08-16 01:32:06 +00:00
|
|
|
# define FECDUPLEX FULL
|
|
|
|
# define FECSPEED _100BASET
|
2008-10-16 13:01:15 +00:00
|
|
|
# endif /* CONFIG_SYS_DISCOVER_PHY */
|
2007-08-16 01:32:06 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_MCFFEC
|
|
|
|
# define CONFIG_IPADDR 192.162.1.2
|
|
|
|
# define CONFIG_NETMASK 255.255.255.0
|
|
|
|
# define CONFIG_SERVERIP 192.162.1.1
|
|
|
|
# define CONFIG_GATEWAYIP 192.162.1.1
|
|
|
|
#endif /* CONFIG_MCFFEC */
|
|
|
|
|
2018-03-28 12:38:20 +00:00
|
|
|
#define CONFIG_HOSTNAME "M5272C3"
|
2007-08-16 01:32:06 +00:00
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
|
|
"netdev=eth0\0" \
|
|
|
|
"loadaddr=10000\0" \
|
|
|
|
"u-boot=u-boot.bin\0" \
|
|
|
|
"load=tftp ${loadaddr) ${u-boot}\0" \
|
|
|
|
"upd=run load; run prog\0" \
|
|
|
|
"prog=prot off ffe00000 ffe3ffff;" \
|
|
|
|
"era ffe00000 ffe3ffff;" \
|
|
|
|
"cp.b ${loadaddr} ffe00000 ${filesize};"\
|
|
|
|
"save\0" \
|
|
|
|
""
|
2004-02-12 00:47:09 +00:00
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_CLK 66000000
|
2004-02-12 00:47:09 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Low Level Configuration Settings
|
|
|
|
* (address mappings, register initial values, etc.)
|
|
|
|
* You should know what you are doing if you make changes here.
|
|
|
|
*/
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_MBAR 0x10000000 /* Register Base Addrs */
|
|
|
|
#define CONFIG_SYS_SCR 0x0003
|
|
|
|
#define CONFIG_SYS_SPR 0xffff
|
2004-02-12 00:47:09 +00:00
|
|
|
|
|
|
|
/*-----------------------------------------------------------------------
|
|
|
|
* Definitions for initial stack pointer and data area (in DPRAM)
|
|
|
|
*/
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_INIT_RAM_ADDR 0x20000000
|
2010-10-26 11:32:32 +00:00
|
|
|
#define CONFIG_SYS_INIT_RAM_SIZE 0x1000 /* Size of used area in internal SRAM */
|
2010-10-26 12:34:52 +00:00
|
|
|
#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
|
2004-02-12 00:47:09 +00:00
|
|
|
|
|
|
|
/*-----------------------------------------------------------------------
|
|
|
|
* Start addresses for the final memory configuration
|
|
|
|
* (Set up by the startup code)
|
2008-10-16 13:01:15 +00:00
|
|
|
* Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
|
2004-02-12 00:47:09 +00:00
|
|
|
*/
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_SDRAM_BASE 0x00000000
|
|
|
|
#define CONFIG_SYS_SDRAM_SIZE 4 /* SDRAM size in MB */
|
|
|
|
#define CONFIG_SYS_FLASH_BASE 0xffe00000
|
2004-02-12 00:47:09 +00:00
|
|
|
|
|
|
|
#ifdef CONFIG_MONITOR_IS_IN_RAM
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_MONITOR_BASE 0x20000
|
2004-02-12 00:47:09 +00:00
|
|
|
#else
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_FLASH_BASE + 0x400)
|
2004-02-12 00:47:09 +00:00
|
|
|
#endif
|
|
|
|
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_MONITOR_LEN 0x20000
|
|
|
|
#define CONFIG_SYS_BOOTPARAMS_LEN 64*1024
|
2004-02-12 00:47:09 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* For booting Linux, the board info and command line data
|
|
|
|
* have to be in the first 8 MB of memory, since this is
|
|
|
|
* the maximum mapped by the Linux kernel during initialization ??
|
|
|
|
*/
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_BOOTMAPSZ (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
|
2004-02-12 00:47:09 +00:00
|
|
|
|
2008-10-21 14:19:26 +00:00
|
|
|
/*
|
2004-02-12 00:47:09 +00:00
|
|
|
* FLASH organization
|
|
|
|
*/
|
2008-10-21 14:19:26 +00:00
|
|
|
#ifdef CONFIG_SYS_FLASH_CFI
|
|
|
|
# define CONFIG_SYS_FLASH_SIZE 0x800000 /* Max size that the board might have */
|
|
|
|
# define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_16BIT
|
|
|
|
# define CONFIG_SYS_MAX_FLASH_SECT 137 /* max number of sectors on one chip */
|
|
|
|
#endif
|
2004-02-12 00:47:09 +00:00
|
|
|
|
|
|
|
/*-----------------------------------------------------------------------
|
|
|
|
* Cache Configuration
|
|
|
|
*/
|
|
|
|
|
2010-03-12 04:12:53 +00:00
|
|
|
#define ICACHE_STATUS (CONFIG_SYS_INIT_RAM_ADDR + \
|
2010-10-26 11:32:32 +00:00
|
|
|
CONFIG_SYS_INIT_RAM_SIZE - 8)
|
2010-03-12 04:12:53 +00:00
|
|
|
#define DCACHE_STATUS (CONFIG_SYS_INIT_RAM_ADDR + \
|
2010-10-26 11:32:32 +00:00
|
|
|
CONFIG_SYS_INIT_RAM_SIZE - 4)
|
2010-03-12 04:12:53 +00:00
|
|
|
#define CONFIG_SYS_ICACHE_INV (CF_CACR_CINV | CF_CACR_INVI)
|
|
|
|
#define CONFIG_SYS_CACHE_ACR0 (CONFIG_SYS_SDRAM_BASE | \
|
|
|
|
CF_ADDRMASK(CONFIG_SYS_SDRAM_SIZE) | \
|
|
|
|
CF_ACR_EN | CF_ACR_SM_ALL)
|
|
|
|
#define CONFIG_SYS_CACHE_ICACR (CF_CACR_CENB | CF_CACR_CINV | \
|
|
|
|
CF_CACR_DISD | CF_CACR_INVI | \
|
|
|
|
CF_CACR_CEIB | CF_CACR_DCM | \
|
|
|
|
CF_CACR_EUSP)
|
|
|
|
|
2004-02-12 00:47:09 +00:00
|
|
|
/*-----------------------------------------------------------------------
|
|
|
|
* Port configuration
|
|
|
|
*/
|
2008-10-16 13:01:15 +00:00
|
|
|
#define CONFIG_SYS_PACNT 0x00000000
|
|
|
|
#define CONFIG_SYS_PADDR 0x0000
|
|
|
|
#define CONFIG_SYS_PADAT 0x0000
|
|
|
|
#define CONFIG_SYS_PBCNT 0x55554155 /* Ethernet/UART configuration */
|
|
|
|
#define CONFIG_SYS_PBDDR 0x0000
|
|
|
|
#define CONFIG_SYS_PBDAT 0x0000
|
|
|
|
#define CONFIG_SYS_PDCNT 0x00000000
|
2007-08-16 01:32:06 +00:00
|
|
|
#endif /* _M5272C3_H */
|