]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/mach-sunxi/clock_sun6i.c
Move dram_init_banksize() to a common header
[u-boot] / arch / arm / mach-sunxi / clock_sun6i.c
index 80cfc0be8943327458977d8a7a081fb38f52b517..d123b3acb2f1c8bd579637ef4509694878518baa 100644 (file)
@@ -217,14 +217,14 @@ done:
 }
 #endif
 
-#ifdef CONFIG_MACH_SUN8I_A33
+#if defined(CONFIG_MACH_SUN8I_A33) || defined(CONFIG_MACH_SUN50I)
 void clock_set_pll11(unsigned int clk, bool sigma_delta_enable)
 {
        struct sunxi_ccm_reg * const ccm =
                (struct sunxi_ccm_reg *)SUNXI_CCM_BASE;
 
        if (sigma_delta_enable)
-               writel(CCM_PLL11_PATTERN, &ccm->pll5_pattern_cfg);
+               writel(CCM_PLL11_PATTERN, &ccm->pll11_pattern_cfg0);
 
        writel(CCM_PLL11_CTRL_EN | CCM_PLL11_CTRL_UPD |
               (sigma_delta_enable ? CCM_PLL11_CTRL_SIGMA_DELTA_EN : 0) |