summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakjoo Kim <ruppi.kim@hardkernel.com>2014-03-28 11:45:09 +0400
committerHakjoo Kim <ruppi.kim@hardkernel.com>2014-03-28 11:45:09 +0400
commit58ce8991b5c3c42a6b9855de173cfb06257ea499 (patch)
treeeaa3c3d8dd52b2dc1af4f3b77ac57a17f0a126f2
parent0f19502e6ce1f3383dbedcedef9b247a436560df (diff)
downloadu-boot-odroid-v2012.07.tar.xz
Temporarily set the clock to the default value for exynos5410 HDMIodroid-v2012.07
output
-rw-r--r--board/samsung/smdk5410/smdk5410.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/board/samsung/smdk5410/smdk5410.c b/board/samsung/smdk5410/smdk5410.c
index 44eaf38875..a01ad9caf8 100644
--- a/board/samsung/smdk5410/smdk5410.c
+++ b/board/samsung/smdk5410/smdk5410.c
@@ -315,11 +315,32 @@ void update_raw_image (const unsigned char *partition)
#define OPTION_ERASE_FAT 0x02
#define OPTION_ERASE_ENV 0x04
#define OPTION_UPDATE_UBOOT 0x08
+#define CLK_DIV_TOP0 0x10020510
+#define CLK_SRC_TOP0 0x10020210
+#define CLK_SRC_TOP2 0x10020218
+#define CLK_SRC_TOP3 0x1002021C
+#define CLK_DIV_DISP10 0x1002052C
int board_late_init(void)
{
+ unsigned int reg;
struct exynos5_power *pmu = (struct exynos5_power *)EXYNOS5_POWER_BASE;
+ reg = readl(CLK_SRC_TOP0);
+ reg |= (0x1 << 12 | 0x1 <<20);
+ reg &= ~((0x1 << 16) | (0x1 <<8));
+ writel(reg, CLK_SRC_TOP0);
+ reg = readl(CLK_SRC_TOP2);
+ reg |= 0x1 << 16;
+ reg |= 0x1 << 10;
+ writel(reg, CLK_SRC_TOP2);
+ reg = readl(CLK_SRC_TOP3);
+ reg |= 0x1 << 4 | 0x1 <<5 | 0x1 | 0x1 << 17 | 0x1 << 18 | 0x1 << 19 | 0x1 <<24 | 0x1 << 26 | 0x1 << 8;
+ writel(reg, CLK_SRC_TOP3);
+ reg = readl(CLK_DIV_DISP10);
+ reg |= 0xf << 28;
+ writel(reg, CLK_DIV_DISP10);
+
#ifdef CONFIG_RAMDUMP_MODE
struct exynos5_gpio_part1 *gpio1 =
(struct exynos5_gpio_part1 *)samsung_get_base_gpio_part1();