exynos5420: Fix some problems with the clock management code.
The code which figured out the rate of the input clock to a peripheral was doing several things wrong. First, it was using the wrong values when determing what the source of a clock was set to. Second, it was using the wrong offset into that register to find the current source setting. This change fixes the constants which select a clock source which get some more things working, but doesn't attempt to fix the bit position table. Change-Id: Id7482ee1c78cec274353bae3ce2dccb84705c66a Signed-off-by: Gabe Black <gabeblack@chromium.org> Reviewed-on: http://review.coreboot.org/3665 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
committed by
Stefan Reinauer
parent
d63bddc499
commit
1162103958
@@ -35,9 +35,13 @@ enum periph_id;
|
||||
#define SPLL 7
|
||||
|
||||
enum pll_src_bit {
|
||||
EXYNOS_SRC_MPLL = 6,
|
||||
EXYNOS_SRC_EPLL,
|
||||
EXYNOS_SRC_VPLL,
|
||||
EXYNOS_SRC_CPLL = 1,
|
||||
EXYNOS_SRC_DPLL = 2,
|
||||
EXYNOS_SRC_MPLL = 3,
|
||||
EXYNOS_SRC_SPLL = 4,
|
||||
EXYNOS_SRC_IPLL = 5,
|
||||
EXYNOS_SRC_EPLL = 6,
|
||||
EXYNOS_SRC_RPLL = 7,
|
||||
};
|
||||
|
||||
/* *
|
||||
@@ -46,7 +50,6 @@ enum pll_src_bit {
|
||||
*/
|
||||
struct clk_bit_info {
|
||||
s8 src_bit; /* offset in register to clock source field */
|
||||
s8 n_src_bits; /* number of bits in 'src_bit' field */
|
||||
s8 div_bit;
|
||||
s8 prediv_bit;
|
||||
};
|
||||
|
Reference in New Issue
Block a user