]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: clk: pll: Fix constant typo
authorMichal Suchanek <msuchanek@suse.de>
Wed, 28 Sep 2022 10:41:29 +0000 (12:41 +0200)
committerSean Anderson <seanga2@gmail.com>
Wed, 19 Oct 2022 16:06:48 +0000 (12:06 -0400)
Fixes: bbda2ed584 ("rockchip: clk: pll: add common pll setting funcs")
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Link: https://lore.kernel.org/r/20220928104129.13240-1-msuchanek@suse.de
drivers/clk/rockchip/clk_pll.c

index 8d2aaf5b843df0faa3471a26a6522e42443a42dc..09b97cf57a2e821f2d985ae3d7a7a7c7ca3129f2 100644 (file)
@@ -31,7 +31,7 @@ static struct rockchip_pll_rate_table rockchip_auto_table;
 #define RK3036_PLLCON1_DSMPD_SHIFT             12
 #define RK3036_PLLCON2_FRAC_MASK               0xffffff
 #define RK3036_PLLCON2_FRAC_SHIFT              0
-#define RK3036_PLLCON1_PWRDOWN_SHI           13
+#define RK3036_PLLCON1_PWRDOWN_SHIFT           13
 
 #define MHZ            1000000
 #define KHZ            1000
@@ -207,7 +207,7 @@ static int rk3036_pll_set_rate(struct rockchip_pll_clock *pll,
 
        /* Power down */
        rk_setreg(base + pll->con_offset + 0x4,
-                 1 << RK3036_PLLCON1_PWRDOWN_SHIT);
+                 1 << RK3036_PLLCON1_PWRDOWN_SHIFT);
 
        rk_clrsetreg(base + pll->con_offset,
                     (RK3036_PLLCON0_POSTDIV1_MASK |
@@ -231,7 +231,7 @@ static int rk3036_pll_set_rate(struct rockchip_pll_clock *pll,
 
        /* Power Up */
        rk_clrreg(base + pll->con_offset + 0x4,
-                 1 << RK3036_PLLCON1_PWRDOWN_SHIT);
+                 1 << RK3036_PLLCON1_PWRDOWN_SHIFT);
 
        /* waiting for pll lock */
        while (!(readl(base + pll->con_offset + 0x4) & (1 << pll->lock_shift)))