⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 davincihd_ddr.h

📁 用于dm6467 开发平台的uboot源码
💻 H
字号:
/*
 *  Copyright 2007 by Spectrum Digital Incorporated.
 *  All rights reserved. Property of Spectrum Digital Incorporated.
 */

/*
 *  DDR header file
 *
 */

#ifndef DDR_
#define DDR_

#ifdef __cplusplus
extern "C" {
#endif

#include "davincihd.h"

/* ------------------------------------------------------------------------ *
 *  DDR Memory Space                                                        *
 * ------------------------------------------------------------------------ */
#define DDR_BASE                0x80000000  // Start of DDR
#define DDR_SIZE                0x10000000  // 256 MB

/* ------------------------------------------------------------------------ *
 *  DDR Controller                                                          *
 * ------------------------------------------------------------------------ */
#define DDR_REG_BASE            0x20000000
#define DDR_SDRSTAT             *( volatile Uint32* )( DDR_REG_BASE + 0x4 )
#define DDR_SDBCR               *( volatile Uint32* )( DDR_REG_BASE + 0x8 )
#define DDR_SDRCR               *( volatile Uint32* )( DDR_REG_BASE + 0x0c )
#define DDR_SDTIMR              *( volatile Uint32* )( DDR_REG_BASE + 0x10 )
#define DDR_SDTIMR2             *( volatile Uint32* )( DDR_REG_BASE + 0x14 )
#define DDR_PBBPR               *( volatile Uint32* )( DDR_REG_BASE + 0x20 )
#define DDR_IRR                 *( volatile Uint32* )( DDR_REG_BASE + 0xc0 )
#define DDR_IMR                 *( volatile Uint32* )( DDR_REG_BASE + 0xc4 )
#define DDR_IMSR                *( volatile Uint32* )( DDR_REG_BASE + 0xc8 )
#define DDR_IMCR                *( volatile Uint32* )( DDR_REG_BASE + 0xcc )

/* DDR PHY */
#define DDR_DDRPHYCR            *( volatile Uint32* )( DDR_REG_BASE + 0xe4 )
#define DDR_VTPIOCR             *( volatile Uint32* )( DDR_REG_BASE + 0xf0 )

/* ------------------------------------------------------------------------ *
 *  Prototypes                                                              *
 * ------------------------------------------------------------------------ */
Int16 DAVINCIHD_DDR_init( Int32 freq );

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -