rockchip: rk3368: remove uart iomux init in SPL
authorKever Yang <kever.yang@rock-chips.com>
Fri, 29 Mar 2019 14:48:30 +0000 (22:48 +0800)
committerKever Yang <kever.yang@rock-chips.com>
Wed, 8 May 2019 09:34:12 +0000 (17:34 +0800)
The iomux should have been set in board_debug_uart_init(),
do not set in board_init_f(), remove it.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/mach-rockchip/rk3368-board-spl.c

index b055ed4aee00d09c39d4e70eb9546f0950c1a4ad..c6511937123bc7807ec6432e304f196a8a443c71 100644 (file)
 #include <spl.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/periph.h>
-#include <dm/pinctrl.h>
 
 void board_init_f(ulong dummy)
 {
-       struct udevice *pinctrl;
        struct udevice *dev;
        int ret;
 
@@ -24,19 +22,6 @@ void board_init_f(ulong dummy)
                hang();
        }
 
-       /* Set up our preloader console */
-       ret = uclass_get_device(UCLASS_PINCTRL, 0, &pinctrl);
-       if (ret) {
-               pr_err("%s: pinctrl init failed: %d\n", __func__, ret);
-               hang();
-       }
-
-       ret = pinctrl_request_noflags(pinctrl, PERIPH_ID_UART0);
-       if (ret) {
-               pr_err("%s: failed to set up console UART\n", __func__);
-               hang();
-       }
-
        preloader_console_init();
 
        ret = uclass_get_device(UCLASS_RAM, 0, &dev);