ARM: uniphier: de-couple SG macros into base address and offset
[oweals/u-boot.git] / arch / arm / mach-uniphier / clk / pll-ld4.c
index 6a145a3baa12752daf1c9abe63e3692d308d2406..34f1c9cc28987284c6dc0c92f95a4e7d23a26347 100644 (file)
@@ -16,7 +16,7 @@ static void upll_init(void)
 {
        u32 tmp, clk_mode_upll, clk_mode_axosel;
 
-       tmp = readl(SG_PINMON0);
+       tmp = readl(sg_base + SG_PINMON0);
        clk_mode_upll   = tmp & SG_PINMON0_CLK_MODE_UPLLSRC_MASK;
        clk_mode_axosel = tmp & SG_PINMON0_CLK_MODE_AXOSEL_MASK;
 
@@ -56,7 +56,7 @@ static void vpll_init(void)
 {
        u32 tmp, clk_mode_axosel;
 
-       tmp = readl(SG_PINMON0);
+       tmp = readl(sg_base + SG_PINMON0);
        clk_mode_axosel = tmp & SG_PINMON0_CLK_MODE_AXOSEL_MASK;
 
        /* set 1 to VPLA27WP and VPLA27WP */