Lines Matching refs:dc_base
72 static int umc_dramcont_init(void __iomem *dc_base, void __iomem *ca_base, in umc_dramcont_init() argument
102 writel(0x66bb0f17, dc_base + UMC_CMDCTLA); in umc_dramcont_init()
103 writel(0x18c6aa44, dc_base + UMC_CMDCTLB); in umc_dramcont_init()
104 writel(umc_spcctla[size_e], dc_base + UMC_SPCCTLA); in umc_dramcont_init()
105 writel(0x00ff0008, dc_base + UMC_SPCCTLB); in umc_dramcont_init()
106 writel(0x000c00ae, dc_base + UMC_RDATACTL_D0); in umc_dramcont_init()
107 writel(0x000c00ae, dc_base + UMC_RDATACTL_D1); in umc_dramcont_init()
108 writel(0x04060802, dc_base + UMC_WDATACTL_D0); in umc_dramcont_init()
109 writel(0x04060802, dc_base + UMC_WDATACTL_D1); in umc_dramcont_init()
110 writel(0x04a02000, dc_base + UMC_DATASET); in umc_dramcont_init()
112 writel(0x00400020, dc_base + UMC_DCCGCTL); in umc_dramcont_init()
113 writel(0x0000000f, dc_base + 0x7000); in umc_dramcont_init()
114 writel(0x0000000f, dc_base + 0x8000); in umc_dramcont_init()
115 writel(0x000000c3, dc_base + 0x8004); in umc_dramcont_init()
116 writel(0x00000071, dc_base + 0x8008); in umc_dramcont_init()
117 writel(0x00000004, dc_base + UMC_FLOWCTLG); in umc_dramcont_init()
118 writel(0x00000000, dc_base + 0x0060); in umc_dramcont_init()
120 writel(0x0801e01e, dc_base + UMC_FLOWCTLA); in umc_dramcont_init()
121 writel(0x00200000, dc_base + UMC_FLOWCTLB); in umc_dramcont_init()
122 writel(0x00004444, dc_base + UMC_FLOWCTLC); in umc_dramcont_init()
123 writel(0x200a0a00, dc_base + UMC_SPCSETB); in umc_dramcont_init()
124 writel(0x00010000, dc_base + UMC_SPCSETD); in umc_dramcont_init()
125 writel(0x80000020, dc_base + UMC_DFICUPDCTLA); in umc_dramcont_init()
130 static int umc_ch_init(void __iomem *dc_base, void __iomem *ca_base, in umc_ch_init() argument
134 void __iomem *phy_base = dc_base + 0x00001000; in umc_ch_init()
138 writel(UMC_INITSET_INIT1EN, dc_base + UMC_INITSET); in umc_ch_init()
139 while (readl(dc_base + UMC_INITSTAT) & UMC_INITSTAT_INIT1ST) in umc_ch_init()
144 dc_base + UMC_DIOCTLA); in umc_ch_init()
158 return umc_dramcont_init(dc_base, ca_base, freq, size / (width / 16), in umc_ch_init()
166 void __iomem *dc_base = umc_base + 0x00400000; in uniphier_pro4_umc_init() local
171 ret = umc_ch_init(dc_base, ca_base, bd->dram_freq, in uniphier_pro4_umc_init()
181 dc_base += 0x00200000; in uniphier_pro4_umc_init()