]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: imx: pllv3: set div_mask differently if PLLV3 is GENERIC or USB
authorGiulio Benetti <giulio.benetti@benettiengineering.com>
Fri, 10 Jan 2020 14:46:54 +0000 (15:46 +0100)
committerStefano Babic <sbabic@denx.de>
Tue, 14 Jan 2020 21:53:59 +0000 (22:53 +0100)
div_mask is different for GENERIC and USB pll, so set it according.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
drivers/clk/imx/clk-pllv3.c

index d1e4c3fe303c0849e532e3e90889f9f7ad9c1306..02c75c37eaf85f8dd7c2945efd90cb9dc15f3432 100644 (file)
@@ -55,9 +55,11 @@ struct clk *imx_clk_pllv3(enum imx_pllv3_type type, const char *name,
        switch (type) {
        case IMX_PLLV3_GENERIC:
                drv_name = UBOOT_DM_CLK_IMX_PLLV3_GENERIC;
+               pll->div_shift = 0;
                break;
        case IMX_PLLV3_USB:
                drv_name = UBOOT_DM_CLK_IMX_PLLV3_USB;
+               pll->div_shift = 1;
                break;
        default:
                kfree(pll);