ldr r1, =0x10001111 @ A, M, E, VPLL Muxing
str r1, [r0, #0x200] @ S5PC1XX_CLK_SRC0
+ ldr r1, =0x66667777 @ S5PC110_CLK_SRC4 (UART/MMC)
+ str r1, [r0, #0x210]
+
/* OneDRAM(DMC0) clock setting */
ldr r1, =0x01000000 @ ONEDRAM_SEL[25:24] 1 SCLKMPLL
str r1, [r0, #0x218] @ S5PC110_CLK_SRC6
/* Haydn MP0_4[0] == 1 */
gpio_direction_input(&gpio->gpio_mp0_4, 0);
- if (gpio_get_value(&gpio->gpio_mp0_4, 0) == 1) {
+ if (gpio_get_value(&gpio->gpio_mp0_4, 0) == 1)
board_rev |= HAYDN_BOARD;
else
board_rev |= SDK_BOARD;
+
}
}
if (mach_is_wmg160())
return -1;
- /* MMC0 Clock source = SCLKMPLL */
- reg = readl(&clk->src4);
- reg &= ~0xf;
- reg |= 0x6;
- writel(reg, &clk->src4);
-
- reg = readl(&clk->div4);
- reg &= ~0xf;
-
- /* set div value near 50MHz */
- clock = get_pll_clk(MPLL) / 1000000;
- for (i = 0; i < 0xf; i++) {
- if ((clock / (i + 1)) <= 50) {
- reg |= i << 0;
- break;
- }
- }
-
- writel(reg, &clk->div4);
-
/*
* MMC0 GPIO
* GPG0[0] SD_0_CLK