]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: imx8mn_var_som: clean up board watchdog code
authorPeng Fan <peng.fan@nxp.com>
Sat, 11 Jun 2022 12:21:07 +0000 (20:21 +0800)
committerStefano Babic <sbabic@denx.de>
Tue, 14 Jun 2022 19:33:14 +0000 (21:33 +0200)
pinctrl_wdog already marked u-boot,dm-spl, so clean up board code.

The set_wdog_reset() function is not necessary as this is handled by
the imx_watchdog.c driver due to the 'fsl,ext-reset-output' property
being set.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Tested-by: Ariel D'Alessandro <ariel.dalessandro@collabora.com>
board/variscite/imx8mn_var_som/spl.c

index 1a8b64fc0a92db40b16934dd03e47a5a17154f78..41e70505774d7f2f807ff9cbdeae9f58a191f143 100644 (file)
@@ -40,19 +40,8 @@ void spl_board_init(void)
                puts("Failed to find clock node. Check device tree\n");
 }
 
-#define WDOG_PAD_CTRL  (PAD_CTL_DSE6 | PAD_CTL_ODE | PAD_CTL_PUE | PAD_CTL_PE)
-
-static const iomux_v3_cfg_t wdog_pads[] = {
-       IMX8MN_PAD_GPIO1_IO02__WDOG1_WDOG_B | MUX_PAD_CTRL(WDOG_PAD_CTRL),
-};
-
 int board_early_init_f(void)
 {
-       struct wdog_regs *wdog = (struct wdog_regs *)WDOG1_BASE_ADDR;
-
-       imx_iomux_v3_setup_multiple_pads(wdog_pads, ARRAY_SIZE(wdog_pads));
-       set_wdog_reset(wdog);
-
        init_uart_clk(3);
 
        return 0;