1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/include/configs.h Fri May 22 18:37:44 2015 +0200
1.3 @@ -0,0 +1,51 @@
1.4 +/*
1.5 + * device board
1.6 + *
1.7 + * Copyright 2009 (C) Qi Hardware Inc.,
1.8 + * Author: Xiangfu Liu <xiangfu@sharism.cc>
1.9 + *
1.10 + * This program is free software; you can redistribute it and/or
1.11 + * modify it under the terms of the GNU General Public License
1.12 + * version 3 as published by the Free Software Foundation.
1.13 + *
1.14 + * This program is distributed in the hope that it will be useful,
1.15 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.16 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.17 + * GNU General Public License for more details.
1.18 + *
1.19 + * You should have received a copy of the GNU General Public License
1.20 + * along with this program; if not, write to the Free Software
1.21 + * Foundation, Inc., 51 Franklin Street, Fifth Floor,
1.22 + * Boston, MA 02110-1301, USA
1.23 + */
1.24 +#ifndef _CONFIGS_H
1.25 +#define _CONFIGS_H
1.26 +
1.27 +/* Here are these common definitions */
1.28 +/* Once your system configration change, just modify the file */
1.29 +
1.30 +#include "target/xburst_types.h"
1.31 +
1.32 +#define CONFIG_NR_DRAM_BANKS 1 /* SDRAM BANK Number: 1, 2*/
1.33 +#define SDRAM_CASL 3 /* CAS latency: 2 or 3 */
1.34 +/* SDRAM Timings, unit: ns */
1.35 +#define SDRAM_TRAS 45 /* RAS# Active Time */
1.36 +#define SDRAM_RCD 20 /* RAS# to CAS# Delay */
1.37 +#define SDRAM_TPC 20 /* RAS# Precharge Time */
1.38 +#define SDRAM_TRWL 7 /* Write Latency Time */
1.39 +#define SDRAM_TREF 15625 /* Refresh period: 4096 refresh cycles/64ms */
1.40 +
1.41 +extern volatile u32 CPU_ID;
1.42 +extern volatile u8 SDRAM_BW16;
1.43 +extern volatile u8 SDRAM_BANK4;
1.44 +extern volatile u8 SDRAM_ROW;
1.45 +extern volatile u8 SDRAM_COL;
1.46 +extern volatile u8 CONFIG_MOBILE_SDRAM;
1.47 +extern volatile u32 CFG_CPU_SPEED;
1.48 +extern volatile u8 PHM_DIV;
1.49 +extern volatile u32 CFG_EXTAL;
1.50 +extern volatile u32 CONFIG_BAUDRATE;
1.51 +extern volatile u32 UART_BASE;
1.52 +extern volatile u8 CONFIG_MOBILE_SDRAM;
1.53 +extern volatile u8 IS_SHARE;
1.54 +#endif