2018-02-23 12:13:18 +00:00
|
|
|
#ifndef EXOSPHERE_BPMPFW_EMC_H
|
|
|
|
#define EXOSPHERE_BPMPFW_EMC_H
|
|
|
|
|
2018-03-03 19:23:13 +00:00
|
|
|
#include "utils.h"
|
2018-02-23 12:13:18 +00:00
|
|
|
|
|
|
|
#define EMC_BASE (0x7001B000)
|
|
|
|
|
|
|
|
#define EMC0_BASE (0x7001E000)
|
|
|
|
#define EMC1_BASE (0x7001F000)
|
|
|
|
|
|
|
|
|
2018-03-03 19:23:13 +00:00
|
|
|
#define MAKE_EMC_REG(ofs) (MAKE_REG32(EMC_BASE + ofs))
|
2018-02-23 12:13:18 +00:00
|
|
|
|
2018-03-03 19:23:13 +00:00
|
|
|
#define MAKE_EMC0_REG(ofs) (MAKE_REG32(EMC0_BASE + ofs))
|
|
|
|
#define MAKE_EMC1_REG(ofs) (MAKE_REG32(EMC1_BASE + ofs))
|
2018-02-23 12:13:18 +00:00
|
|
|
|
|
|
|
#define EMC_CFG_0 MAKE_EMC_REG(0x00C)
|
|
|
|
|
|
|
|
#define EMC_ADR_CFG_0 MAKE_EMC_REG(0x10)
|
|
|
|
|
|
|
|
#define EMC_TIMING_CONTROL_0 MAKE_EMC_REG(0x028)
|
|
|
|
|
|
|
|
#define EMC_SELF_REF_0 MAKE_EMC_REG(0x0E0)
|
|
|
|
|
|
|
|
#define EMC_MRW_0 MAKE_EMC_REG(0x0E8)
|
|
|
|
|
|
|
|
#define EMC_FBIO_CFG5_0 MAKE_EMC_REG(0x104)
|
|
|
|
|
|
|
|
#define EMC_MRW3_0 MAKE_EMC_REG(0x138)
|
|
|
|
|
|
|
|
#define EMC_AUTO_CAL_CONFIG_0 MAKE_EMC_REG(0x2A4)
|
|
|
|
|
|
|
|
#define EMC_REQ_CTRL_0 MAKE_EMC_REG(0x2B0)
|
|
|
|
|
|
|
|
#define EMC_EMC_STATUS_0 MAKE_EMC_REG(0x2B4)
|
|
|
|
#define EMC0_EMC_STATUS_0 MAKE_EMC0_REG(0x2B4)
|
|
|
|
#define EMC1_EMC_STATUS_0 MAKE_EMC1_REG(0x2B4)
|
|
|
|
|
|
|
|
#define EMC_CFG_DIG_DLL_0 MAKE_EMC_REG(0x2BC)
|
|
|
|
#define EMC0_CFG_DIG_DLL_0 MAKE_EMC0_REG(0x2BC)
|
|
|
|
#define EMC1_CFG_DIG_DLL_0 MAKE_EMC1_REG(0x2BC)
|
|
|
|
|
|
|
|
#define EMC_ZCAL_INTERVAL_0 MAKE_EMC_REG(0x2E0)
|
|
|
|
|
|
|
|
#define EMC_PMC_SCRATCH3_0 MAKE_EMC_REG(0x448)
|
|
|
|
|
|
|
|
#define EMC_FBIO_CFG7_0 MAKE_EMC_REG(0x584)
|
|
|
|
|
|
|
|
void emc_put_dram_in_self_refresh_mode(void);
|
|
|
|
|
2018-03-03 19:23:13 +00:00
|
|
|
#endif
|