adding uC5274/5275 dimm module support
PATCH 4/6 adding uC5274/5275 dimm module support
---
Makefile | 21 +++
board/Arcturus/uC5275/Makefile | 44 +++++++
board/Arcturus/uC5275/config.mk | 23 ++++
board/Arcturus/uC5275/u-boot.lds | 139 ++++++++++++++++++++
board/Arcturus/uC5275/uC5275.c | 118 +++++++++++++++++
include/configs/uC5275.h | 263
++++++++++++++++++++++++++++++++++++++
6 files changed, 608 insertions(+), 0 deletions(-)
create mode 100644 board/Arcturus/uC5275/Makefile
create mode 100644 board/Arcturus/uC5275/config.mk
create mode 100644 board/Arcturus/uC5275/u-boot.lds
create mode 100644 board/Arcturus/uC5275/uC5275.c
create mode 100644 include/configs/uC5275.hMakefile +5 -0
@@ -2268,6 +2268,27 @@ uC5272-8EE32U66_config: unconfig fi ; @$(MKCONFIG) -a uC5272 m68k mcf52x2 uC5272 Arcturus +uC5274-16E322T150_config \ +uC5275-16EE32U150_config \ +uC5275-16EE32M150_config: unconfig + @mkdir -p $(obj)include + @echo "#define PRODUCTION_STRING " \"$(@:_config=)\"
Quoted 1 line
Quoted 1 line
$(obj)include/config.h
+ @if [ "$(findstring 5274,$@)" ] ; then \
+ echo "#define CONFIG_M5274 " >>$(obj)include/config.h ;\
+ fi ;
+ @if [ "$(findstring EE,$@)" ] ; then \
+ echo "#define CONFIG_HAS_ETH1 " >>$(obj)include/config.h ;\
+ fi ;
+ @if [ "$(findstring 16E,$@)" ] ; then \
+ echo "#define __16MFlash__ " >>$(obj)include/config.h ;\
+ echo "#define CONFIG_SYS_FLASH_SIZE 0x01000000"
Quoted 1 line
Quoted 1 line
$(obj)include/config.h ;\
+ fi ;
+ @if [ "$(findstring E32,$@)" ] ; then \
+ echo "#define __32MRam__ " >>$(obj)include/config.h ;\
+ echo "#define CONFIG_SYS_SDRAM_SIZE 32" >>$(obj)include/config.h ;\
+ fi ;
+ @$(MKCONFIG) -a uC5275 m68k mcf52x2 uC5275 Arcturus
+
#########################################################################
## MPC83xx Systems
#########################################################################(quoted diff) +0 -0
b/board/Arcturus/uC5275/Makefile
new file mode 100644
index 0000000..981763d
board/Arcturus/uC5275/Makefile new file +44 -0
44 lines not on this page · raw message
(quoted diff) +0 -0
b/board/Arcturus/uC5275/config.mk
new file mode 100644
index 0000000..4605e0e
board/Arcturus/uC5275/config.mk new file +23 -0
@@ -0,0 +1,23 @@ +# +# (c) Copyright 2010 Arcturus Networks Inc. +# by David Wu <www.ArcturusNetworks.com> +# +# See file CREDITS for list of people who contributed to this +# project. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# +TEXT_BASE = 0xf0000000
(quoted diff) +0 -0
b/board/Arcturus/uC5275/u-boot.lds
new file mode 100644
index 0000000..daf8724
board/Arcturus/uC5275/u-boot.lds new file +139 -0
139 lines not on this page · raw message
(quoted diff) +0 -0
b/board/Arcturus/uC5275/uC5275.c
new file mode 100644
index 0000000..0dc168e
board/Arcturus/uC5275/uC5275.c new file +118 -0
118 lines not on this page · raw message
include/configs/uC5275.h new file +58 -0
58 lines not on this page · raw message
Flash
+ */
+#define CONFIG_ENV_ADDR 0xf0040000
+#define CONFIG_ENV_SIZE 0x40000
+#define CONFIG_ENV_IS_IN_FLASH 1
+
+/*
+ * BOOTP options
+ */
+#define CONFIG_BOOTP_BOOTFILESIZE
+#define CONFIG_BOOTP_BOOTPATH
+#define CONFIG_BOOTP_GATEWAY
+#define CONFIG_BOOTP_HOSTNAME
+
+/* Available command configuration */
+#include <config_cmd_default.h>
+
+#define CONFIG_CMD_CACHE
+#define CONFIG_CMD_PING
+#define CONFIG_CMD_MII
+#define CONFIG_CMD_NET
+#define CONFIG_CMD_ELF
+#define CONFIG_CMD_FLASH
+#define CONFIG_CMD_MEMORY
+#define CONFIG_CMD_DHCP
+
+#undef CONFIG_CMD_LOADS
+#undef CONFIG_CMD_LOADB
+
+#define CONFIG_MCFFEC
+#ifdef CONFIG_MCFFEC
+#define CONFIG_NET_MULTI 1
+#define CONFIG_MII 1
+#define CONFIG_MII_INIT 1
+#define CONFIG_SYS_DISCOVER_PHY
+#define CONFIG_SYS_RX_ETH_BUFFER 8
+#define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
+#define CONFIG_SYS_FEC0_PINMUX 0
+#define CONFIG_SYS_FEC0_MIIBASE CONFIG_SYS_FEC0_IOBASE
+#define CONFIG_SYS_FEC1_PINMUX 0
+#define CONFIG_SYS_FEC1_MIIBASE CONFIG_SYS_FEC1_IOBASE
+#define MCFFEC_TOUT_LOOP 50000
+/* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */ +#ifndef CONFIG_SYS_DISCOVER_PHY
+#define FECDUPLEX FULL
+#define FECSPEED _100BASET
+#else
+#ifndef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
+#define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
+#endif
+#endif
+#endif
+
+#ifdef CONFIG_M5274
+#define CONFIG_SYS_PROMPT "uC5274-> "
+#else
+#define CONFIG_SYS_PROMPT "uC5275-> "
+#endif
+#define CONFIG_SYS_LONGHELP /* undef to save memory */
+
+#if (CONFIG_CMD_KGDB)
+# define CONFIG_SYS_CBSIZE 1024
+#else
+# define CONFIG_SYS_CBSIZE 256
+#endif
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
+#define CONFIG_SYS_MAXARGS 16
+#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
+
+#define CONFIG_SYS_LOAD_ADDR (CONFIG_ENV_ADDR + CONFIG_ENV_SIZE)
+ /* default kernel image address, end of ENV */
+
+#define CONFIG_BOOTDELAY 5
+#define CONFIG_SYS_MEMTEST_START 0x400
+#define CONFIG_SYS_MEMTEST_END 0x380000
+
+#ifdef CONFIG_MCFFEC
+# define CONFIG_NET_RETRY_COUNT 5
+# define CONFIG_ETHADDR 00:00:00:00:00:00
+#ifdef CONFIG_HAS_ETH1
+# define CONFIG_ETH1ADDR 00:00:00:00:00:00
+#endif
+# define CONFIG_IPADDR 192.168.1.200
+# define CONFIG_NETMASK 255.255.255.0
+# define CONFIG_SERVERIP 192.168.1.1
+# define CONFIG_GATEWAYIP 192.168.1.1
+# define CONFIG_OVERWRITE_ETHADDR_ONCE
+#endif /* FEC_ENET */
+
+#define CONFIG_EXTRA_ENV_SETTINGS \
+ "REVISION="PRODUCT_REVISION"\0" \
+ "netdev=eth0\0" \
+ "loadaddr=10000\0" \
+ "uboot=u-boot.bin\0" \
+ "load=tftp ${loadaddr} ${uboot}\0" \
+ "upd=run load; run prog\0" \
+ "prog=prot off f0000000 f003ffff;" \
+ "era f0000000 f003ffff;" \
+ "cp.b ${loadaddr} f0000000 ${filesize};"\
+ "setenv filesize;save\0" \
+ ""
+
+#define CONFIG_SYS_HZ 1000
+#define CONFIG_SYS_CLK 150000000
+
+/*
+ * Low Level Configuration Settings
+ * (address mappings, register initial values, etc.)
+ * You should know what you are doing if you make changes here.
+ */
+#define CONFIG_SYS_MBAR 0x40000000
+ +/*-----------------------------------------------------------------------
+ * Definitions for initial stack pointer and data area (in DPRAM)
+ */
+#define CONFIG_SYS_INIT_RAM_ADDR 0x20000000
+#define CONFIG_SYS_INIT_RAM_END 0x10000 /* End of used area in internal
SRAM */
+#define CONFIG_SYS_GBL_DATA_SIZE 1000 /* bytes reserved for initial data
*/
+#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END - \
+ CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
+ +/*-----------------------------------------------------------------------
+ * Start addresses for the final memory configuration
+ * (Set up by the startup code)
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
+ */
+#define CONFIG_SYS_SDRAM_BASE 0x00000000
+#if !defined(CONFIG_SYS_SDRAM_SIZE)
+#define CONFIG_SYS_SDRAM_SIZE 32 /* SDRAM size in MB */
+#endif
+
+#ifdef __DOUBLE_MAP__
+#ifdef __64MRam__
+#define CONFIG_SYS_SDRAM_SDMR0 0x07FC0001
+#elif defined(__32MRam__)
+#define CONFIG_SYS_SDRAM_SDMR0 0x03FC0001
+#else
+#define CONFIG_SYS_SDRAM_SDMR0 0x01FC0001
+#endif
+#else
+#ifdef defined(__64MRam__)
+#define CONFIG_SYS_SDRAM_SDMR0 0x03FC0001
+#elif defined(__32MRam__)
+#define CONFIG_SYS_SDRAM_SDMR0 0x01FC0001
+#else
+#define CONFIG_SYS_SDRAM_SDMR0 0x00FC0001
+#endif
+#endif
+
+#define CONFIG_SYS_FLASH_BASE CONFIG_SYS_CS0_BASE
+
+#ifdef CONFIG_MONITOR_IS_IN_RAM
+#define CONFIG_SYS_MONITOR_BASE 0x20000
+#else
+#define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_FLASH_BASE + 0x400)
+#endif
+
+#define CONFIG_SYS_MONITOR_LEN 0x20000
+#define CONFIG_SYS_MALLOC_LEN (256 << 10)
+#define CONFIG_SYS_BOOTPARAMS_LEN (64*1024)
+
+#define CONFIG_SYS_BOOTMAPSZ (CONFIG_SYS_SDRAM_BASE+(CONFIG_SYS_SDRAM_SIZE<<20))
+#define CONFIG_SYS_BOOTM_LEN (CONFIG_SYS_SDRAM_SIZE << 20)
+ +/*-----------------------------------------------------------------------
+ * FLASH organization
+ */
+#define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max number of memory banks */
+#if !defined(CONFIG_SYS_MAX_FLASH_SECT)
+# define CONFIG_SYS_MAX_FLASH_SECT 264 /* max number of sectors on one
chip */
+#endif
+#define CONFIG_SYS_FLASH_ERASE_TOUT 1000
+
+#define CONFIG_SYS_FLASH_CFI 1
+#define CONFIG_FLASH_CFI_DRIVER 1
+#if !defined(CONFIG_SYS_SDRAM_SIZE)
+#define CONFIG_SYS_SDRAM_SIZE 0x01000000
+#endif
+ +/*-----------------------------------------------------------------------
+ * Cache Configuration
+ */
+#define CONFIG_SYS_CACHELINE_SIZE 16
+
+#define ICACHE_STATUS (CONFIG_SYS_INIT_RAM_ADDR + \
+ CONFIG_SYS_INIT_RAM_END - 8)
+#define DCACHE_STATUS (CONFIG_SYS_INIT_RAM_ADDR + \
+ CONFIG_SYS_INIT_RAM_END - 4)
+#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)
+ +/*-----------------------------------------------------------------------
+ * Memory bank definitions
+ */
+#define CONFIG_SYS_CS0_BASE 0xf0000000
+#define CONFIG_SYS_CS0_CTRL 0x00002980
+#define CONFIG_SYS_CS0_MASK 0x00FF0001
+
+#endif /* _uC5275_H */
Signature · 1 line
1.5.6