From 47a78badf9603825f2a22201cf40f64ad0ec2c65 Mon Sep 17 00:00:00 2001 From: daeinki Date: Mon, 4 Oct 2010 12:30:05 +0900 Subject: [PATCH] s5pc210: universal: moved source setting for vpll and epll to lowlevel_init.S Signed-off-by: daeinki --- board/samsung/universal_c210/lowlevel_init.S | 4 +++- board/samsung/universal_c210/universal.c | 18 ------------------ 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/board/samsung/universal_c210/lowlevel_init.S b/board/samsung/universal_c210/lowlevel_init.S index 208e317..e0f40d9 100644 --- a/board/samsung/universal_c210/lowlevel_init.S +++ b/board/samsung/universal_c210/lowlevel_init.S @@ -237,8 +237,10 @@ system_clock_init: /* * CLK_SRC_TOP0 * MUX_ONENAND_SEL[28] 0: DOUT133, 1: DOUT166 + * MUX_VPLL_SEL[8] 0: FINPLL, 1: FOUTVPLL + * MUX_EPLL_SEL[4] 0: FINPLL, 1: FOUTEPLL */ - ldr r1, =0x10000000 + ldr r1, =0x10000110 ldr r2, =0x0C210 @ CLK_SRC_TOP str r1, [r0, r2] diff --git a/board/samsung/universal_c210/universal.c b/board/samsung/universal_c210/universal.c index 5f20ea0..974145e 100644 --- a/board/samsung/universal_c210/universal.c +++ b/board/samsung/universal_c210/universal.c @@ -186,21 +186,6 @@ void i2c_init_board(void) check_battery(1); } -/** - * setup machine specific clocks. - */ -static void setup_clock(void) -{ - struct s5pc210_clock *clk = - (struct s5pc210_clock *)samsung_get_base_clock(); - unsigned int sel; - - sel = readl(&clk->src_top0); - /* set source clock for VPLL to FOUTVPLL. */ - sel |= (1 << 8); - writel(sel, &clk->src_top0); -} - int board_init(void) { gpio1 = (struct s5pc210_gpio_part1 *) S5PC210_GPIO_PART1_BASE; @@ -209,9 +194,6 @@ int board_init(void) gd->bd->bi_arch_number = MACH_TYPE; gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100; - /* setup machine specific clocks. */ - setup_clock(); - return 0; } -- 2.7.4