summaryrefslogtreecommitdiff
path: root/src/cpu/samsung
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2013-07-24 04:06:37 -0700
committerPatrick Georgi <patrick@georgi-clan.de>2013-12-21 10:49:00 +0100
commitad88fda1cf8ad21db47be4a212e1d6e6239d058b (patch)
treedbffe0fac23a33c75d7f0c4336e1083f076dc8b8 /src/cpu/samsung
parentdd8f60363a007b43714fa8c0a6044fb6c7fb9866 (diff)
downloadcoreboot-ad88fda1cf8ad21db47be4a212e1d6e6239d058b.tar.xz
exynos5420: Fix the clock divisor mask
The divisor mask had been set to 0xff, but the bitfield is 4 bits wide. Change-Id: Id8a205c80ca2fb0b6f0d86a0c3be4bba9527c0b5 Signed-off-by: Gabe Black <gabeblack@google.com> Reviewed-on: https://gerrit.chromium.org/gerrit/63188 Reviewed-by: David Hendricks <dhendrix@chromium.org> Commit-Queue: Gabe Black <gabeblack@chromium.org> Tested-by: Gabe Black <gabeblack@chromium.org> Reviewed-on: http://review.coreboot.org/4384 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src/cpu/samsung')
-rw-r--r--src/cpu/samsung/exynos5420/clock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/samsung/exynos5420/clock.c b/src/cpu/samsung/exynos5420/clock.c
index b75540e099..11e46d1b52 100644
--- a/src/cpu/samsung/exynos5420/clock.c
+++ b/src/cpu/samsung/exynos5420/clock.c
@@ -359,7 +359,7 @@ void clock_ll_set_ratio(enum periph_id periph_id, unsigned divisor)
{
struct exynos5420_clock *clk = samsung_get_base_clock();
unsigned shift;
- unsigned mask = 0xff;
+ unsigned mask = 0xf;
u32 *reg;
switch (periph_id) {