s5pc210: universal: moved source setting for vpll and epll to lowlevel_init.S
authordaeinki <inki.dae@samsung.com>
Mon, 4 Oct 2010 03:30:05 +0000 (12:30 +0900)
committerdaeinki <inki.dae@samsung.com>
Mon, 4 Oct 2010 03:30:05 +0000 (12:30 +0900)
Signed-off-by: daeinki <inki.dae@samsung.com>
board/samsung/universal_c210/lowlevel_init.S
board/samsung/universal_c210/universal.c

index 208e317..e0f40d9 100644 (file)
@@ -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]
 
index 5f20ea0..974145e 100644 (file)
@@ -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;
 }