Exynos5420: Add DDR3 initialization for 5420
This patch intends to add DDR3 initialization code for Exynos5420. Signed-off-by: Akshay Saraswat <akshay.s@samsung.com> Signed-off-by: Rajeshwari S Shinde <rajeshwari.s@samsung.com> Acked-by: Simon Glass <sjg@chromium.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
This commit is contained in:

committed by
Minkyu Kang

parent
060c227a28
commit
f3d7c2fe9d
@@ -53,6 +53,7 @@
|
||||
#define EXYNOS4_AUDIOSS_BASE DEVICE_NOT_AVAILABLE
|
||||
#define EXYNOS4_USB_HOST_XHCI_BASE DEVICE_NOT_AVAILABLE
|
||||
#define EXYNOS4_USB3PHY_BASE DEVICE_NOT_AVAILABLE
|
||||
#define EXYNOS4_DMC_TZASC_BASE DEVICE_NOT_AVAILABLE
|
||||
|
||||
/* EXYNOS4X12 */
|
||||
#define EXYNOS4X12_GPIO_PART3_BASE 0x03860000
|
||||
@@ -91,6 +92,7 @@
|
||||
#define EXYNOS4X12_AUDIOSS_BASE DEVICE_NOT_AVAILABLE
|
||||
#define EXYNOS4X12_USB_HOST_XHCI_BASE DEVICE_NOT_AVAILABLE
|
||||
#define EXYNOS4X12_USB3PHY_BASE DEVICE_NOT_AVAILABLE
|
||||
#define EXYNOS4X12_DMC_TZASC_BASE DEVICE_NOT_AVAILABLE
|
||||
|
||||
/* EXYNOS5 */
|
||||
#define EXYNOS5_I2C_SPACING 0x10000
|
||||
@@ -129,6 +131,7 @@
|
||||
|
||||
#define EXYNOS5_ADC_BASE DEVICE_NOT_AVAILABLE
|
||||
#define EXYNOS5_MODEM_BASE DEVICE_NOT_AVAILABLE
|
||||
#define EXYNOS5_DMC_TZASC_BASE DEVICE_NOT_AVAILABLE
|
||||
|
||||
/* EXYNOS5420 */
|
||||
#define EXYNOS5420_AUDIOSS_BASE 0x03810000
|
||||
@@ -143,8 +146,7 @@
|
||||
#define EXYNOS5420_ACE_SFR_BASE 0x10830000
|
||||
#define EXYNOS5420_DMC_PHY_BASE 0x10C00000
|
||||
#define EXYNOS5420_DMC_CTRL_BASE 0x10C20000
|
||||
#define EXYNOS5420_DMC_TZASC0_BASE 0x10D40000
|
||||
#define EXYNOS5420_DMC_TZASC1_BASE 0x10D50000
|
||||
#define EXYNOS5420_DMC_TZASC_BASE 0x10D40000
|
||||
#define EXYNOS5420_USB_HOST_EHCI_BASE 0x12110000
|
||||
#define EXYNOS5420_MMC_BASE 0x12200000
|
||||
#define EXYNOS5420_SROMC_BASE 0x12250000
|
||||
@@ -284,6 +286,7 @@ SAMSUNG_BASE(spi_isp, SPI_ISP_BASE)
|
||||
SAMSUNG_BASE(tzpc, TZPC_BASE)
|
||||
SAMSUNG_BASE(dmc_ctrl, DMC_CTRL_BASE)
|
||||
SAMSUNG_BASE(dmc_phy, DMC_PHY_BASE)
|
||||
SAMSUNG_BASE(dmc_tzasc, DMC_TZASC_BASE)
|
||||
SAMSUNG_BASE(audio_ass, AUDIOSS_BASE)
|
||||
#endif
|
||||
|
||||
|
@@ -419,6 +419,15 @@ struct exynos5420_phy_control {
|
||||
unsigned int phy_con42;
|
||||
};
|
||||
|
||||
struct exynos5420_tzasc {
|
||||
unsigned char res1[0xf00];
|
||||
unsigned int membaseconfig0;
|
||||
unsigned int membaseconfig1;
|
||||
unsigned char res2[0x8];
|
||||
unsigned int memconfig0;
|
||||
unsigned int memconfig1;
|
||||
};
|
||||
|
||||
enum ddr_mode {
|
||||
DDR_MODE_DDR2,
|
||||
DDR_MODE_DDR3,
|
||||
@@ -453,6 +462,7 @@ enum mem_manuf {
|
||||
#define PHY_CON0_T_WRRDCMD_SHIFT 17
|
||||
#define PHY_CON0_T_WRRDCMD_MASK (0x7 << PHY_CON0_T_WRRDCMD_SHIFT)
|
||||
#define PHY_CON0_CTRL_DDR_MODE_SHIFT 11
|
||||
#define PHY_CON0_CTRL_DDR_MODE_MASK 0x3
|
||||
|
||||
/* PHY_CON1 register fields */
|
||||
#define PHY_CON1_RDLVL_RDDATA_ADJ_SHIFT 0
|
||||
|
Reference in New Issue
Block a user