blob: 85648baa98330296fc601699c6662328eb497f7f [file] [log] [blame]
/*
* Copyright Codito Technologies (www.codito.com)
*
* include/configs/aa3.h
*
* Copyright (C)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* Authors : Sandeep Patil (sandeep.patil@codito.com)
* Pradeep Sawlani (pradeep.sawlani@codito.com)
*/
#ifndef __CONFIG_H
#define __CONFIG_H
#define CONFIG_ARC 1 /* This is an ARC cpu */
#define CONFIG_ARC_ML50X_BOARD 1
#define CONFIG_SYS_NO_FLASH
#include <config_cmd_default.h>
/* disable some default commands to decrease size */
#undef CONFIG_CMD_BDI /* bdinfo */
#undef CONFIG_CMD_BOOTD /* bootd */
#undef CONFIG_CMD_CONSOLE /* coninfo */
#undef CONFIG_CMD_ECHO /* echo arguments */
#undef CONFIG_CMD_SAVEENV /* saveenv */
#undef CONFIG_CMD_FLASH /* flinfo, erase, protect */
#undef CONFIG_CMD_IMI /* iminfo */
#undef CONFIG_CMD_ITEST /* Integer (and string) test */
#undef CONFIG_CMD_LOADB /* loadb */
#undef CONFIG_CMD_LOADS /* loads */
#undef CONFIG_CMD_MEMORY /* md mm nm mw cp cmp crc base loop mtest */
#undef CONFIG_CMD_MISC /* Misc functions like sleep etc*/
#undef CONFIG_CMD_NET /* bootp, tftpboot, rarpboot */
#undef CONFIG_CMD_NFS /* NFS support */
#undef CONFIG_CMD_RUN /* run command in env variable */
#undef CONFIG_CMD_SOURCE /* "source" command support */
#undef CONFIG_CMD_XIMG /* Load part of Multi Image */
#define CONFIG_CMD_ELF
#define CONFIG_ELF_GUARD
#define CONFIG_BOOTMQX
#define CONFIG_CMD_FAT
#define CONFIG_DOS_PARTITION
#undef CONFIG_SYS_LONGHELP
#define CONFIG_CRC32_VERIFY
#define CONFIG_SHOW_BOOT_PROGRESS
/* System ACE controller configuration */
#define CONFIG_SYSTEMACE
#define CONFIG_SYS_SYSTEMACE_BASE (ARC_CPU_PERIPHERAL_BASE + 0x8000)
#define CONFIG_SYS_SYSTEMACE_WIDTH 16
#define SYSTEMACE_FORCE_LOCK 0
/* Serial port configuartion */
#define CONFIG_ARC_SERIAL_BAUD 115200
#define UART_BASEADDR (ARC_CPU_PERIPHERAL_BASE + 0x1000)
#if 0
/* Doesn't work because there are some BCVI bridge troubles */
/* XEMACS configuration */
#define CONFIG_XILINX_EMAC
#define XILINX_EMAC_BASEADDR (ARC_CPU_PERIPHERAL_BASE + 0x2000)
#define CONFIG_HOSTNAME ml50x_board
#define CONFIG_ETHADDR 00:01:02:03:04:80 /* Ethernet address */
#define CONFIG_IPADDR 192.168.100.99 /* Our ip address */
#define CONFIG_SERVERIP 192.168.100.1 /* Tftp server ip address */
#define CONFIG_NETMASK 255.255.255.0
#define CONFIG_CMD_PING
#define CONFIG_CMD_MII
#endif
#define CONFIG_BOOTDELAY 5
#define CONFIG_BOOTCOMMAND "fatload ace 0:0 ${loadaddr} app.elf; bootmqx"
/*
* Size of malloc pool
*/
#define CONFIG_SYS_MALLOC_LEN 0x8000 /* Malloc size = 32k */
/*
* Physical memory map
*/
/*This clock speed is for u-boot */
#define CONFIG_ARC_CLK 70000000 /* 70MHz default clock speed */
#define CONFIG_NR_DRAM_BANKS 1 /* We have 1 bank of DRAM */
#define PHYS_SDRAM_1 0x00000000 /* SDRAM Bank #1 */
#define PHYS_SDRAM_1_SIZE 0x200000
/*
* Environment variables
*/
#define CONFIG_AUTO_COMPLETE 1 /* Auto complete commands */
/*
* Miscellaneous configurable options
*/
#define CONFIG_SYS_HZ CONFIG_ARC_CLK
#define CONFIG_SYS_PROMPT "ML50X # "
#define CONFIG_SYS_CBSIZE 256 /* Size of console buffer */
#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
#define CONFIG_SYS_MAXARGS 16 /* Max number of command args */
#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */
#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR /* Default load address for bootm command */
#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
#define CONFIG_SYS_MEMTEST_START 0x200 /* Exception table starts at 0x0 */ /* memtest works on */
#define CONFIG_SYS_MEMTEST_END (PHYS_SDRAM_1_SIZE - (350 << 10) /* code + stack area */ - (CONFIG_SYS_MALLOC_LEN << 10)/* malloc area */ )/* size of memory (not accurate)*/
#define CONFIG_ENV_SIZE 512
#define CONFIG_SYS_ENV_SIZE 512
#define CONFIG_ENV_IS_NOWHERE 1
#define CONFIG_SYS_KERN_PARM 0
#endif /* __CONFIG_H */