summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2013-06-22 20:05:37 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2013-07-10 22:50:27 +0200
commit2d2e37fc526741a7308b88c794729295a2c5e3cd (patch)
treee54aa41a1bafe30939065c0fc1f68246c40623da /src
parentcf7509cfd1c775f4ee664f7784257c73bffd1513 (diff)
downloadcoreboot-2d2e37fc526741a7308b88c794729295a2c5e3cd.tar.xz
exynos5420: Change some clock settings.
This change adjusts some clock settings so that they match U-Boot. There are three different changes. 1. Change the source for psgen from the oscillator clock to the pclk. 2. Change the pll feeding the SPI busses from epll to mpll, as suggested in the manual. 3. Change the SPI prescaller. Change-Id: Ib54a255bc14fc286629dac86db9b8cf8e75a610b Signed-off-by: Gabe Black <gabeblack@chromium.org> Reviewed-on: http://review.coreboot.org/3700 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/cpu/samsung/exynos5420/setup.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/cpu/samsung/exynos5420/setup.h b/src/cpu/samsung/exynos5420/setup.h
index 7d486f0c15..7d63772832 100644
--- a/src/cpu/samsung/exynos5420/setup.h
+++ b/src/cpu/samsung/exynos5420/setup.h
@@ -227,7 +227,7 @@ struct exynos5_phy_control;
#define CLK_SRC_TOP2_VAL 0x11101000
#define CLK_SRC_TOP3_VAL 0x11111111
#define CLK_SRC_TOP4_VAL 0x11110111
-#define CLK_SRC_TOP5_VAL 0x11111100
+#define CLK_SRC_TOP5_VAL 0x11111110
#define CLK_SRC_TOP7_VAL 0x00022200
/* CLK_DIV_TOP */
@@ -332,10 +332,11 @@ struct exynos5_phy_control;
| (UART0_SEL << 4))
/* CLK_SRC_PERIC1 */
+/* SRC_CLOCK = SCLK_MPLL */
+#define SPI0_SEL 3
+#define SPI1_SEL 3
+#define SPI2_SEL 3
/* SRC_CLOCK = SCLK_EPLL */
-#define SPI0_SEL 6
-#define SPI1_SEL 6
-#define SPI2_SEL 6
#define AUDIO0_SEL 6
#define AUDIO1_SEL 6
#define AUDIO2_SEL 6
@@ -395,9 +396,9 @@ struct exynos5_phy_control;
| (AUDIO0_RATIO << 20))
/* CLK_DIV_PERIC4 */
-#define SPI2_PRE_RATIO 0x2
-#define SPI1_PRE_RATIO 0x2
-#define SPI0_PRE_RATIO 0x2
+#define SPI2_PRE_RATIO 0x3
+#define SPI1_PRE_RATIO 0x3
+#define SPI0_PRE_RATIO 0x3
#define CLK_DIV_PERIC4_VAL ((SPI2_PRE_RATIO << 24) \
| (SPI1_PRE_RATIO << 16) \
| (SPI0_PRE_RATIO << 8))