Root/usbboot/xburst_include/configs.h

1/*
2 * device board
3 *
4 * Copyright 2009 (C) Qi Hardware Inc.,
5 * Author: Xiangfu Liu <xiangfu@qi-hardware.com>
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#define CONFIG_NR_DRAM_BANKS 1 /* SDRAM BANK Number: 1, 2*/
28#define SDRAM_CASL 3 /* CAS latency: 2 or 3 */
29/* SDRAM Timings, unit: ns */
30#define SDRAM_TRAS 45 /* RAS# Active Time */
31#define SDRAM_RCD 20 /* RAS# to CAS# Delay */
32#define SDRAM_TPC 20 /* RAS# Precharge Time */
33#define SDRAM_TRWL 7 /* Write Latency Time */
34#define SDRAM_TREF 15625 /* Refresh period: 4096 refresh cycles/64ms */
35
36extern volatile u32 CPU_ID;
37extern volatile u8 SDRAM_BW16;
38extern volatile u8 SDRAM_BANK4;
39extern volatile u8 SDRAM_ROW;
40extern volatile u8 SDRAM_COL;
41extern volatile u8 CONFIG_MOBILE_SDRAM;
42extern volatile u32 CFG_CPU_SPEED;
43extern volatile u8 PHM_DIV;
44extern volatile u32 CFG_EXTAL;
45extern volatile u32 CONFIG_BAUDRATE;
46extern volatile u32 UART_BASE;
47extern volatile u8 CONFIG_MOBILE_SDRAM;
48extern volatile u8 IS_SHARE;
49
50extern void gpio_init_4740(void);
51extern void sdram_init_4740(void);
52extern void serial_init_4740(void);
53extern void pll_init_4740(void);
54
55extern void gpio_init_4750(void);
56extern void sdram_init_4750(void);
57extern void serial_init_4750(void);
58extern void pll_init_4750(void);
59
60extern void serial_puts(const char *s);
61
62#endif
63

Archive Download this file



interactive