Lines Matching refs:dc_base

80 static int umc_dramcont_init(void __iomem *dc_base, void __iomem *ca_base,  in umc_dramcont_init()  argument
117 writel(umc_cmdctla_plus[freq_e], dc_base + UMC_CMDCTLA); in umc_dramcont_init()
118 writel(umc_cmdctlb_plus[freq_e], dc_base + UMC_CMDCTLB); in umc_dramcont_init()
119 writel(umc_spcctla[freq_e][size_e], dc_base + UMC_SPCCTLA); in umc_dramcont_init()
120 writel(umc_spcctlb[freq_e], dc_base + UMC_SPCCTLB); in umc_dramcont_init()
121 writel(umc_rdatactl[freq_e], dc_base + UMC_RDATACTL_D0); in umc_dramcont_init()
122 writel(0x04060806, dc_base + UMC_WDATACTL_D0); in umc_dramcont_init()
123 writel(0x04a02000, dc_base + UMC_DATASET); in umc_dramcont_init()
125 writel(0x00400020, dc_base + UMC_DCCGCTL); in umc_dramcont_init()
126 writel(0x00000003, dc_base + 0x7000); in umc_dramcont_init()
127 writel(0x0000000f, dc_base + 0x8000); in umc_dramcont_init()
128 writel(0x000000c3, dc_base + 0x8004); in umc_dramcont_init()
129 writel(0x00000071, dc_base + 0x8008); in umc_dramcont_init()
130 writel(0x0000003b, dc_base + UMC_DICGCTLA); in umc_dramcont_init()
131 writel(0x020a0808, dc_base + UMC_DICGCTLB); in umc_dramcont_init()
132 writel(0x00000004, dc_base + UMC_FLOWCTLG); in umc_dramcont_init()
134 writel(0x0801e01e, dc_base + UMC_FLOWCTLA); in umc_dramcont_init()
135 writel(0x00200000, dc_base + UMC_FLOWCTLB); in umc_dramcont_init()
136 writel(0x00004444, dc_base + UMC_FLOWCTLC); in umc_dramcont_init()
137 writel(0x200a0a00, dc_base + UMC_SPCSETB); in umc_dramcont_init()
138 writel(0x00000000, dc_base + UMC_SPCSETD); in umc_dramcont_init()
139 writel(0x00000520, dc_base + UMC_DFICUPDCTLA); in umc_dramcont_init()
144 static int umc_ch_init(void __iomem *dc_base, void __iomem *ca_base, in umc_ch_init() argument
147 void __iomem *phy_base = dc_base + 0x00001000; in umc_ch_init()
150 writel(UMC_INITSET_INIT1EN, dc_base + UMC_INITSET); in umc_ch_init()
151 while (readl(dc_base + UMC_INITSTAT) & UMC_INITSTAT_INIT1ST) in umc_ch_init()
154 writel(0x00000101, dc_base + UMC_DIOCTLA); in umc_ch_init()
165 return umc_dramcont_init(dc_base, ca_base, freq, size, ddr3plus); in umc_ch_init()
172 void __iomem *dc_base = umc_base + 0x00400000; in uniphier_ld4_umc_init() local
177 ret = umc_ch_init(dc_base, ca_base, bd->dram_freq, in uniphier_ld4_umc_init()
186 dc_base += 0x00200000; in uniphier_ld4_umc_init()