]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: imx8mn-beacon: enable pinctrl_wdog in SPL
authorPeng Fan <peng.fan@nxp.com>
Sat, 11 Jun 2022 12:21:06 +0000 (20:21 +0800)
committerStefano Babic <sbabic@denx.de>
Tue, 14 Jun 2022 19:33:14 +0000 (21:33 +0200)
Mark pinctrl_wdog as u-boot,dm-spl to 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>
arch/arm/dts/imx8mn-beacon-kit-u-boot.dtsi
board/beacon/imx8mn/spl.c

index 69fd69c8d0255557d1e3c711e8ca8b33904e0a2a..eb1dd8debbaf238227d0ee8f4d0708fd2a1a5da0 100644 (file)
        u-boot,dm-spl;
 };
 
+&pinctrl_wdog {
+       u-boot,dm-spl;
+};
+
 &binman {
         u-boot-spl-ddr {
                filename = "u-boot-spl-ddr.bin";
index 4563446db196884ee19577dc142db4af0a5fcdad..029f71bc9950a2cb2b07b4a325ff9b4aab435d3b 100644 (file)
@@ -68,27 +68,17 @@ int board_fit_config_name_match(const char *name)
 }
 #endif
 
-#define WDOG_PAD_CTRL  (PAD_CTL_DSE6 | PAD_CTL_ODE | PAD_CTL_PUE | PAD_CTL_PE)
 #define PWM1_PAD_CTRL (PAD_CTL_FSEL2 | PAD_CTL_DSE6)
 
 static iomux_v3_cfg_t const pwm_pads[] = {
        IMX8MN_PAD_GPIO1_IO01__PWM1_OUT | MUX_PAD_CTRL(PWM1_PAD_CTRL),
 };
 
-static iomux_v3_cfg_t const 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;
-
        /* Claiming pwm pins prevents LCD flicker during startup*/
        imx_iomux_v3_setup_multiple_pads(pwm_pads, ARRAY_SIZE(pwm_pads));
 
-       imx_iomux_v3_setup_multiple_pads(wdog_pads, ARRAY_SIZE(wdog_pads));
-       set_wdog_reset(wdog);
-
        init_uart_clk(1);
 
        return 0;