]> git.sur5r.net Git - u-boot/blobdiff - board/samsung/trats/trats.c
Merge branch 'master' of git://git.denx.de/u-boot-x86
[u-boot] / board / samsung / trats / trats.c
index 2925cffcfa3cc33a5c2fa53c101cdbac12b0a679..aa4291df4aba82a484172b507646d15abf24d099 100644 (file)
@@ -310,14 +310,6 @@ static void board_clock_init(void)
        writel(CLK_GATE_BLOCK_VAL, (unsigned int)&clk->gate_block);
 }
 
-static void board_watchdog_disable(void)
-{
-       struct exynos4_watchdog *wd =
-               (struct exynos4_watchdog *)samsung_get_base_watchdog();
-
-       writel(~(WTCON_EN | WTCON_INT), (unsigned int)&wd->wtcon);
-}
-
 static void board_power_init(void)
 {
        struct exynos4_power *pwr =
@@ -344,21 +336,17 @@ static void board_uart_init(void)
                (struct exynos4_gpio_part2 *)samsung_get_base_gpio_part2();
        int i;
 
-       /* UART0-UART1 GPIOs (part1) : 0x22222222 */
-       for (i = 0; i < 7; i++) {
-               s5p_gpio_set_pull(&gpio1->a0, i, GPIO_PULL_NONE);
-               s5p_gpio_cfg_pin(&gpio1->a0, i, GPIO_FUNC(0x2));
-       }
-
        /*
-        * UART2-UART3 GPIOs (part2) : 0x00223322
-        * GPA1CON[3] = I2C_3_SCL (3)
+        * UART2 GPIOs
+        * GPA1CON[0] = UART_2_RXD(2)
+        * GPA1CON[1] = UART_2_TXD(2)
         * GPA1CON[2] = I2C_3_SDA (3)
+        * GPA1CON[3] = I2C_3_SCL (3)
         */
-       for (i = 0; i < 5; i++) {
+
+       for (i = 0; i < 4; i++) {
                s5p_gpio_set_pull(&gpio1->a1, i, GPIO_PULL_NONE);
-               s5p_gpio_cfg_pin(&gpio1->a1, i,
-                               GPIO_FUNC((i == 2 || i == 3) ? 0x3 : 0x2));
+               s5p_gpio_cfg_pin(&gpio1->a1, i, GPIO_FUNC((i > 1) ? 0x3 : 0x2));
        }
 
        /* UART_SEL GPY4[7] (part2) at EXYNOS4 */
@@ -368,8 +356,7 @@ static void board_uart_init(void)
 
 int board_early_init_f(void)
 {
-       board_watchdog_disable();
-
+       wdt_stop();
        pmic_reset();
        board_clock_init();
        board_uart_init();