diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-04-27 12:58:54 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-04-27 12:58:54 +0000 |
commit | 69decd27e2c8d7e71bf8124274f788cd518c36d4 (patch) | |
tree | 6b4f935300fcaa950a2037fe55af76188f43dc1c /package/nvram/src/sdinitvals.h | |
parent | ace455e0c0a91444b232688a014cd358847f3c69 (diff) | |
download | mtk-20170518-69decd27e2c8d7e71bf8124274f788cd518c36d4.zip mtk-20170518-69decd27e2c8d7e71bf8124274f788cd518c36d4.tar.gz mtk-20170518-69decd27e2c8d7e71bf8124274f788cd518c36d4.tar.bz2 |
rename unvram to nvram
SVN-Revision: 15437
Diffstat (limited to 'package/nvram/src/sdinitvals.h')
-rw-r--r-- | package/nvram/src/sdinitvals.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/package/nvram/src/sdinitvals.h b/package/nvram/src/sdinitvals.h new file mode 100644 index 0000000..5a289ad --- /dev/null +++ b/package/nvram/src/sdinitvals.h @@ -0,0 +1,30 @@ +/* + * SDRAM init values + * + * Copyright 2007, Broadcom Corporation + * Copyright 2009, OpenWrt.org + * All Rights Reserved. + * + * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY + * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM + * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE. + * + */ + +#ifndef _sdinitvals_h_ +#define _sdinitvals_h_ + +/* SDRAM refresh control (refresh) register bits */ +#define SDRAM_REF(p) (((p)&0xff) | SDRAM_REF_EN) /* Refresh period */ +#define SDRAM_REF_EN 0x8000 /* Writing 1 enables periodic refresh */ + +/* SDRAM Core default Init values (OCP ID 0x803) */ +#define MEM4MX16X2 0x419 /* 16 MB */ + +#define SDRAM_INIT MEM4MX16X2 +#define SDRAM_BURSTFULL 0x0000 /* Use full page bursts */ +#define SDRAM_CONFIG SDRAM_BURSTFULL +#define SDRAM_REFRESH SDRAM_REF(0x40) + +#endif /* _sdinitvals_h_ */ |