Root/usbboot/xburst_include/target/configs.h

1/*
2 * device board
3 *
4 * Copyright 2009 (C) Qi Hardware Inc.,
5 * Author: Xiangfu Liu <xiangfu@sharism.cc>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * version 3 as published by the Free Software Foundation.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA
20 */
21#ifndef _CONFIGS_H
22#define _CONFIGS_H
23
24/* Here are these common definitions */
25/* Once your system configration change, just modify the file */
26
27#include "target/xburst_types.h"
28
29#define CONFIG_NR_DRAM_BANKS 1 /* SDRAM BANK Number: 1, 2*/
30#define SDRAM_CASL 3 /* CAS latency: 2 or 3 */
31/* SDRAM Timings, unit: ns */
32#define SDRAM_TRAS 45 /* RAS# Active Time */
33#define SDRAM_RCD 20 /* RAS# to CAS# Delay */
34#define SDRAM_TPC 20 /* RAS# Precharge Time */
35#define SDRAM_TRWL 7 /* Write Latency Time */
36#define SDRAM_TREF 15625 /* Refresh period: 4096 refresh cycles/64ms */
37
38extern volatile u32 CPU_ID;
39extern volatile u8 SDRAM_BW16;
40extern volatile u8 SDRAM_BANK4;
41extern volatile u8 SDRAM_ROW;
42extern volatile u8 SDRAM_COL;
43extern volatile u8 CONFIG_MOBILE_SDRAM;
44extern volatile u32 CFG_CPU_SPEED;
45extern volatile u8 PHM_DIV;
46extern volatile u32 CFG_EXTAL;
47extern volatile u32 CONFIG_BAUDRATE;
48extern volatile u32 UART_BASE;
49extern volatile u8 CONFIG_MOBILE_SDRAM;
50extern volatile u8 IS_SHARE;
51#endif
52

Archive Download this file



interactive