]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/arm/cpu/tegra20-common/clock.c
ARM: zynq: Fix sparse warnings in slcr.c
[karo-tx-uboot.git] / arch / arm / cpu / tegra20-common / clock.c
index 34124f9bbac3a3c1e855ea86288e8c5ecfc6dfd2..0c4f5fb288a05d47d5ba97cfaae13d17b9f96668 100644 (file)
@@ -412,9 +412,9 @@ int get_periph_clock_source(enum periph_id periph_id,
         * with its 16-bit divisor
         */
        if (type == CLOCK_TYPE_PCXTS)
-               *mux_bits = 4;
+               *mux_bits = MASK_BITS_31_28;
        else
-               *mux_bits = 2;
+               *mux_bits = MASK_BITS_31_30;
        if (type == CLOCK_TYPE_PCMT16)
                *divider_bits = 16;
        else