Home
last modified time | relevance | path

Searched refs:mctl_phy (Results 1 – 4 of 4) sorted by relevance

/openbmc/u-boot/arch/arm/mach-sunxi/
H A Ddram_sun6i.c53 struct sunxi_mctl_phy_reg *mctl_phy; in mctl_dll_init() local
56 mctl_phy = (struct sunxi_mctl_phy_reg *)SUNXI_DRAM_PHY0_BASE; in mctl_dll_init()
58 mctl_phy = (struct sunxi_mctl_phy_reg *)SUNXI_DRAM_PHY1_BASE; in mctl_dll_init()
61 writel(MCTL_DLLCR_DISABLE, &mctl_phy->acdllcr); in mctl_dll_init()
62 writel(MCTL_DLLCR_DISABLE, &mctl_phy->dx0dllcr); in mctl_dll_init()
63 writel(MCTL_DLLCR_DISABLE, &mctl_phy->dx1dllcr); in mctl_dll_init()
65 writel(MCTL_DLLCR_DISABLE, &mctl_phy->dx2dllcr); in mctl_dll_init()
66 writel(MCTL_DLLCR_DISABLE, &mctl_phy->dx3dllcr); in mctl_dll_init()
71 writel(0, &mctl_phy->acdllcr); in mctl_dll_init()
72 writel(0, &mctl_phy->dx0dllcr); in mctl_dll_init()
[all …]
H A Ddram_sun50i_h6.c80 struct sunxi_mctl_phy_reg * const mctl_phy = in mctl_phy_pir_init() local
83 writel(val | BIT(0), &mctl_phy->pir); in mctl_phy_pir_init()
84 mctl_await_completion(&mctl_phy->pgsr[0], BIT(0), BIT(0)); in mctl_phy_pir_init()
183 struct sunxi_mctl_phy_reg * const mctl_phy = in mctl_set_timing_lpddr3() local
241 memcpy(mctl_phy->mr, mr_lpddr3, sizeof(mr_lpddr3)); in mctl_set_timing_lpddr3()
269 &mctl_phy->dtpr[0]); in mctl_set_timing_lpddr3()
270 writel((tfaw << 17) | 0x28000400 | (tmrd << 1), &mctl_phy->dtpr[1]); in mctl_set_timing_lpddr3()
271 writel(((txs << 6) - 1) | (tcke << 17), &mctl_phy->dtpr[2]); in mctl_set_timing_lpddr3()
273 &mctl_phy->dtpr[3]); in mctl_set_timing_lpddr3()
274 writel((txp << 1) | (trfc << 17) | 0x800, &mctl_phy->dtpr[4]); in mctl_set_timing_lpddr3()
[all …]
H A Ddram_sun8i_a23.c98 struct sunxi_mctl_phy_reg * const mctl_phy = in mctl_init() local
102 writel(0x40b, &mctl_phy->dcr); in mctl_init()
104 writel(0x1000040b, &mctl_phy->dcr); in mctl_init()
107 writel(0x5c000, &mctl_phy->dllgcr); in mctl_init()
109 writel(0xdc000, &mctl_phy->dllgcr); in mctl_init()
111 writel(0x0a003e3f, &mctl_phy->pgcr0); in mctl_init()
112 writel(0x03008421, &mctl_phy->pgcr1); in mctl_init()
114 writel(dram_para.mr0, &mctl_phy->mr0); in mctl_init()
115 writel(dram_para.mr1, &mctl_phy->mr1); in mctl_init()
116 writel(dram_para.mr2, &mctl_phy->mr2); in mctl_init()
[all …]
H A Ddram_sun9i.c358 struct sunxi_mctl_phy_reg *mctl_phy; in mctl_channel_init() local
453 mctl_phy = (struct sunxi_mctl_phy_reg *)SUNXI_DRAM_PHY0_BASE; in mctl_channel_init()
456 mctl_phy = (struct sunxi_mctl_phy_reg *)SUNXI_DRAM_PHY1_BASE; in mctl_channel_init()
626 &mctl_phy->dcr); in mctl_channel_init()
630 clrbits_le32(&mctl_phy->dsgcr, (3 << 6)); in mctl_channel_init()
632 writel(mr[0], &mctl_phy->mr0); in mctl_channel_init()
633 writel(mr[1], &mctl_phy->mr1); in mctl_channel_init()
634 writel(mr[2], &mctl_phy->mr2); in mctl_channel_init()
635 writel(mr[3], &mctl_phy->mr3); in mctl_channel_init()
643 &mctl_phy->dtpr[0]); in mctl_channel_init()
[all …]