]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: imx8mp_rsb7320a1: enable wdog driver model in SPL
authorPeng Fan <peng.fan@nxp.com>
Sat, 11 Jun 2022 12:21:08 +0000 (20:21 +0800)
committerStefano Babic <sbabic@denx.de>
Tue, 14 Jun 2022 19:33:14 +0000 (21:33 +0200)
Mark wdog1/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/imx8mp-rsb3720-a1-u-boot.dtsi
board/advantech/imx8mp_rsb3720a1/imx8mp_rsb3720a1.c

index 2848b24f65530369598de50d46f6c2c9b79d01fe..4419967ee42dceafb5e8ad991117133643ddaa31 100644 (file)
        u-boot,dm-spl;
 };
 
+&wdog1 {
+       u-boot,dm-spl;
+};
+
+&pinctrl_wdog {
+       u-boot,dm-spl;
+};
+
 &pinctrl_i2c1 {
        u-boot,dm-spl;
 };
index f129ebd429bdb6191624e418f29c3bc8d3a9c04e..0a1b2c94161904a9f93e12704e6c771636f86168 100644 (file)
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#define WDOG_PAD_CTRL  (PAD_CTL_DSE6 | PAD_CTL_ODE | PAD_CTL_PUE | PAD_CTL_PE)
-
-static const iomux_v3_cfg_t wdog_pads[] = {
-       MX8MP_PAD_GPIO1_IO02__WDOG1_WDOG_B  | MUX_PAD_CTRL(WDOG_PAD_CTRL),
-};
-
 #ifdef CONFIG_NAND_MXS
 static void setup_gpmi_nand(void)
 {
@@ -69,12 +63,6 @@ u8 num_image_type_guids = ARRAY_SIZE(fw_images);
 
 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(2);
 
        return 0;