mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-12 13:21:53 +02:00
05c930e80a
attention: if caches enabled the network is broken attention: the network of the flash image doesn't work because of enabled caches git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20606 3c298f89-4303-0410-b956-a3cf2f4a3e73
105 lines
3.1 KiB
C
105 lines
3.1 KiB
C
/*
|
|
* (C) Copyright 2003-2005
|
|
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
*
|
|
* 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
|
|
*/
|
|
|
|
/*
|
|
* This file contains the configuration parameters for the Danube reference board.
|
|
*/
|
|
|
|
#ifndef __CONFIG_H
|
|
#define __CONFIG_H
|
|
|
|
/* #define DEBUG */
|
|
|
|
#define CONFIG_MIPS32 1 /* MIPS32 CPU compatible */
|
|
#define CONFIG_MIPS34KC 1 /* MIPS 34Kc CPU core */
|
|
#define CONFIG_AR9 1 /* an AR9 device */
|
|
#define CONFIG_EASY50812 1 /* on the AR9 reference board */
|
|
#define CONFIG_SYS_MAX_RAM 32*1024*1024 /* 32 MB */
|
|
#define CONFIG_FLASH_CFI_DRIVER 1 /* using CFI flash driver */
|
|
|
|
#define CONFIG_SYS_INIT_RAM_LOCK_MIPS
|
|
|
|
/* use PPL1 and fixed values for CPU / DDR and bus speed */
|
|
#define CONFIG_USE_PLL1
|
|
#define CONFIG_CPU_333M_RAM_166M
|
|
#define CONFIG_CLASS_II_DDR_PAD
|
|
|
|
#ifdef CONFIG_SYS_RAMBOOT
|
|
#define CONFIG_SKIP_LOWLEVEL_INIT /* no cache */
|
|
#else
|
|
#define CONFIG_SYS_EBU_BOOT
|
|
#define INFINEON_EBU_BOOTCFG 0x688C688C /* CMULT = 8 for 150 MHz */
|
|
#endif
|
|
|
|
#ifndef CPU_CLOCK_RATE
|
|
#define CPU_CLOCK_RATE (ifx_get_cpuclk())
|
|
#endif
|
|
|
|
#define CONFIG_SYS_PROMPT "AR9 => " /* Monitor Command Prompt */
|
|
#undef CONFIG_SYS_HUSH_PARSER /* Use the HUSH parser */
|
|
|
|
/*
|
|
* Include common defines/options for all Lantiq boards
|
|
*/
|
|
#include "ifx-common.h"
|
|
|
|
/*
|
|
* Cache Configuration (cpu/chip specific, ar9)
|
|
*/
|
|
#define CONFIG_SYS_DCACHE_SIZE (16384)
|
|
#define CONFIG_SYS_ICACHE_SIZE (16384)
|
|
#define CONFIG_SYS_CACHELINE_SIZE (32)
|
|
#define CONFIG_SYS_MIPS_CACHE_OPER_MODE CONF_CM_CACHABLE_NO_WA
|
|
|
|
#define CONFIG_NET_MULTI
|
|
#if 0
|
|
#define CONFIG_M4530_ETH
|
|
#define CONFIG_M4530_FPGA
|
|
#endif
|
|
|
|
#define CONFIG_IFX_ETOP /* lantiq ethernet cpe interface */
|
|
#define CLK_OUT2_25MHZ
|
|
#define CONFIG_EXTRA_SWITCH /* search for external switches like tantos */
|
|
#define CONFIG_RMII /* use interface in RMII mode */
|
|
#define CONFIG_MII
|
|
#define CONFIG_CMD_MII /* enable MII command */
|
|
|
|
#define CONFIG_IFX_ASC /* use lantiq ASC driver */
|
|
#ifdef CONFIG_USE_ASC0
|
|
#define CONFIG_SYS_IFX_ASC_BASE 0x1E100400
|
|
#else
|
|
#define CONFIG_SYS_IFX_ASC_BASE 0x1E100C00
|
|
#endif
|
|
|
|
#ifdef CONFIG_SYS_RAMBOOT
|
|
/* Configuration of EBU: */
|
|
/* starting address from 0xb0000000 */
|
|
/* make the flash available from RAM boot */
|
|
# define CONFIG_EBU_ADDSEL0 0x10000031
|
|
# define CONFIG_EBU_BUSCON0 0x0001D7FF
|
|
#endif
|
|
|
|
#define CONFIG_CMD_HTTPD /* enable upgrade via HTTPD */
|
|
|
|
#endif /* __CONFIG_H */
|