ar71xx: create image for the TP-Link TL-WR740N v3
[openwrt.git] / package / nvram / src / sdinitvals.h
1 /*
2 * SDRAM init values
3 *
4 * Copyright 2007, Broadcom Corporation
5 * Copyright 2009, OpenWrt.org
6 * All Rights Reserved.
7 *
8 * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
9 * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
10 * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
11 * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
12 *
13 */
14
15 #ifndef _sdinitvals_h_
16 #define _sdinitvals_h_
17
18 /* SDRAM refresh control (refresh) register bits */
19 #define SDRAM_REF(p) (((p)&0xff) | SDRAM_REF_EN) /* Refresh period */
20 #define SDRAM_REF_EN 0x8000 /* Writing 1 enables periodic refresh */
21
22 /* SDRAM Core default Init values (OCP ID 0x803) */
23 #define MEM4MX16X2 0x419 /* 16 MB */
24
25 #define SDRAM_INIT MEM4MX16X2
26 #define SDRAM_BURSTFULL 0x0000 /* Use full page bursts */
27 #define SDRAM_CONFIG SDRAM_BURSTFULL
28 #define SDRAM_REFRESH SDRAM_REF(0x40)
29
30 #endif /* _sdinitvals_h_ */
This page took 0.048625 seconds and 5 git commands to generate.