forked from OERV-BSP/u-boot
Merge patch series "arch: arm: dts: k3-am625-phyboard-lyra: Disable unused watchdogs in U-Boot"
This series from Wadim Egorov <w.egorov@phytec.de> cleans up how watchdogs are handled on some phytec TI K3 platforms. Link: https://lore.kernel.org/r/20250730154217.1116751-1-w.egorov@phytec.de
This commit is contained in:
@@ -95,6 +95,22 @@
|
||||
bootph-all;
|
||||
};
|
||||
|
||||
&main_rti1 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&main_rti2 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&main_rti3 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&main_rti15 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&main_uart0 {
|
||||
bootph-all;
|
||||
};
|
||||
|
||||
@@ -156,6 +156,22 @@
|
||||
bootph-all;
|
||||
};
|
||||
|
||||
&main_rti1 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&main_rti2 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&main_rti3 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&main_rti4 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&main_uart0 {
|
||||
bootph-all;
|
||||
};
|
||||
|
||||
@@ -156,6 +156,10 @@
|
||||
bootph-all;
|
||||
};
|
||||
|
||||
&main_rti1 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&sdhci0 {
|
||||
bootph-all;
|
||||
};
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include <env/phytec/k3_mmc.env>
|
||||
#include <env/phytec/k3_net.env>
|
||||
#include <env/phytec/k3_spi.env>
|
||||
#include <env/phytec/watchdog.env>
|
||||
|
||||
fdtaddr=0x88000000
|
||||
loadaddr=0x82000000
|
||||
@@ -27,3 +28,5 @@ spi_ramdisk_addr=0x2200000
|
||||
|
||||
bootmeths=script efi extlinux pxe
|
||||
boot_targets=mmc1 mmc0 spi_flash dhcp
|
||||
|
||||
watchdog=watchdog@e000000
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include <env/phytec/k3_mmc.env>
|
||||
#include <env/phytec/k3_net.env>
|
||||
#include <env/phytec/k3_spi.env>
|
||||
#include <env/phytec/watchdog.env>
|
||||
|
||||
fdtaddr=0x88000000
|
||||
loadaddr=0x82000000
|
||||
@@ -27,3 +28,5 @@ spi_ramdisk_addr=0x2200000
|
||||
|
||||
bootmeths=script efi extlinux pxe
|
||||
boot_targets=mmc1 mmc0 spi_flash dhcp
|
||||
|
||||
watchdog=watchdog@e000000
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include <env/phytec/k3_mmc.env>
|
||||
#include <env/phytec/k3_net.env>
|
||||
#include <env/phytec/k3_spi.env>
|
||||
#include <env/phytec/watchdog.env>
|
||||
|
||||
fdtaddr=0x88000000
|
||||
loadaddr=0x82000000
|
||||
@@ -26,3 +27,5 @@ spi_ramdisk_addr=0x2200000
|
||||
|
||||
bootmeths=script efi extlinux pxe
|
||||
boot_targets=mmc1 mmc0 spi_flash dhcp
|
||||
|
||||
watchdog=watchdog@e000000
|
||||
|
||||
@@ -40,7 +40,7 @@ CONFIG_SPL_LOAD_FIT=y
|
||||
CONFIG_SPL_LOAD_FIT_ADDRESS=0x81000000
|
||||
CONFIG_BOOTSTD_FULL=y
|
||||
CONFIG_OF_BOARD_SETUP=y
|
||||
CONFIG_BOOTCOMMAND="bootflow scan -lb; run ${boot}boot"
|
||||
CONFIG_BOOTCOMMAND="run start_watchdog; bootflow scan -lb; run ${boot}boot"
|
||||
CONFIG_DEFAULT_FDT_FILE="oftree"
|
||||
# CONFIG_BOARD_INIT is not set
|
||||
CONFIG_BOARD_LATE_INIT=y
|
||||
@@ -75,6 +75,7 @@ CONFIG_CMD_MTD=y
|
||||
# CONFIG_CMD_POWEROFF is not set
|
||||
CONFIG_CMD_USB=y
|
||||
CONFIG_CMD_USB_MASS_STORAGE=y
|
||||
CONFIG_CMD_WDT=y
|
||||
CONFIG_CMD_CACHE=y
|
||||
CONFIG_CMD_EFIDEBUG=y
|
||||
CONFIG_CMD_RTC=y
|
||||
@@ -185,5 +186,9 @@ CONFIG_USB_GADGET_MANUFACTURER="PHYTEC"
|
||||
CONFIG_USB_GADGET_VENDOR_NUM=0x0451
|
||||
CONFIG_USB_GADGET_PRODUCT_NUM=0x6165
|
||||
CONFIG_SPL_DFU=y
|
||||
# CONFIG_WATCHDOG is not set
|
||||
# CONFIG_WATCHDOG_AUTOSTART is not set
|
||||
CONFIG_WDT=y
|
||||
CONFIG_WDT_K3_RTI=y
|
||||
CONFIG_FS_FAT_MAX_CLUSTSIZE=16384
|
||||
# CONFIG_HEXDUMP is not set
|
||||
|
||||
@@ -43,7 +43,7 @@ CONFIG_SPL_LOAD_FIT=y
|
||||
CONFIG_SPL_LOAD_FIT_ADDRESS=0x81000000
|
||||
CONFIG_BOOTSTD_FULL=y
|
||||
CONFIG_OF_BOARD_SETUP=y
|
||||
CONFIG_BOOTCOMMAND="bootflow scan -lb; run ${boot}boot"
|
||||
CONFIG_BOOTCOMMAND="run start_watchdog; bootflow scan -lb; run ${boot}boot"
|
||||
CONFIG_DEFAULT_FDT_FILE="oftree"
|
||||
# CONFIG_BOARD_INIT is not set
|
||||
CONFIG_BOARD_LATE_INIT=y
|
||||
@@ -78,6 +78,7 @@ CONFIG_CMD_I2C=y
|
||||
CONFIG_CMD_MMC=y
|
||||
CONFIG_CMD_MTD=y
|
||||
CONFIG_CMD_USB=y
|
||||
CONFIG_CMD_WDT=y
|
||||
CONFIG_CMD_CACHE=y
|
||||
CONFIG_CMD_EFIDEBUG=y
|
||||
CONFIG_CMD_RTC=y
|
||||
@@ -174,5 +175,9 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0451
|
||||
CONFIG_USB_GADGET_PRODUCT_NUM=0x6165
|
||||
CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
CONFIG_SPL_DFU=y
|
||||
# CONFIG_WATCHDOG is not set
|
||||
# CONFIG_WATCHDOG_AUTOSTART is not set
|
||||
CONFIG_WDT=y
|
||||
CONFIG_WDT_K3_RTI=y
|
||||
CONFIG_FS_FAT_MAX_CLUSTSIZE=16384
|
||||
# CONFIG_HEXDUMP is not set
|
||||
|
||||
@@ -39,7 +39,7 @@ CONFIG_SPL_LOAD_FIT=y
|
||||
CONFIG_SPL_LOAD_FIT_ADDRESS=0x81000000
|
||||
CONFIG_BOOTSTD_FULL=y
|
||||
CONFIG_OF_BOARD_SETUP=y
|
||||
CONFIG_BOOTCOMMAND="bootflow scan -lb; run ${boot}boot"
|
||||
CONFIG_BOOTCOMMAND="run start_watchdog; bootflow scan -lb; run ${boot}boot"
|
||||
CONFIG_DEFAULT_FDT_FILE="oftree"
|
||||
# CONFIG_BOARD_INIT is not set
|
||||
CONFIG_BOARD_LATE_INIT=y
|
||||
@@ -77,6 +77,7 @@ CONFIG_CMD_I2C=y
|
||||
CONFIG_CMD_MMC=y
|
||||
CONFIG_CMD_MTD=y
|
||||
CONFIG_CMD_USB=y
|
||||
CONFIG_CMD_WDT=y
|
||||
CONFIG_CMD_CACHE=y
|
||||
CONFIG_CMD_EFIDEBUG=y
|
||||
CONFIG_CMD_RTC=y
|
||||
@@ -182,4 +183,8 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0451
|
||||
CONFIG_USB_GADGET_PRODUCT_NUM=0x6165
|
||||
CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
CONFIG_USB_FUNCTION_MASS_STORAGE=y
|
||||
# CONFIG_WATCHDOG is not set
|
||||
# CONFIG_WATCHDOG_AUTOSTART is not set
|
||||
CONFIG_WDT=y
|
||||
CONFIG_WDT_K3_RTI=y
|
||||
CONFIG_FS_FAT_MAX_CLUSTSIZE=16384
|
||||
|
||||
3
include/env/phytec/k3_mmc.env
vendored
3
include/env/phytec/k3_mmc.env
vendored
@@ -14,7 +14,8 @@ mmcargs=setenv bootargs console=${console} earlycon=${earlycon}
|
||||
${optargs}
|
||||
mmcloadimage=load mmc ${mmcdev}:${mmcpart} ${kernel_addr_r} Image
|
||||
mmcloadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr_r} ${fdtfile}
|
||||
mmcboot=if test ${doraucboot} = 1; then run raucinit; fi;
|
||||
mmcboot=echo DEPRECATION WARNING: mmcboot will be removed in future versions. Use standard boot instead.;
|
||||
if test ${doraucboot} = 1; then run raucinit; fi;
|
||||
run mmcargs;
|
||||
mmc dev ${mmcdev};
|
||||
mmc rescan;
|
||||
|
||||
3
include/env/phytec/k3_net.env
vendored
3
include/env/phytec/k3_net.env
vendored
@@ -12,7 +12,8 @@ netargs=setenv bootargs console=${console} root=/dev/nfs ip=dhcp rw
|
||||
nfsroot=${serverip}:${nfsroot},vers=4,tcp ${optargs}
|
||||
netloadimage=${get_cmd} ${kernel_addr_r} ${serverip}:/Image
|
||||
netloadfdt=${get_cmd} ${fdt_addr_r} ${serverip}:/${fdtfile}
|
||||
netboot=run netargs;
|
||||
netboot=echo DEPRECATION WARNING: netboot will be removed in future versions. Use standard boot instead.;
|
||||
run netargs;
|
||||
setenv autoload no;
|
||||
dhcp;
|
||||
run netloadimage;
|
||||
|
||||
4
include/env/phytec/k3_spi.env
vendored
4
include/env/phytec/k3_spi.env
vendored
@@ -10,7 +10,9 @@ spiargs=setenv bootargs console=${console} earlycon=${earlycon} ${optargs}
|
||||
spiloadimage=sf read ${kernel_addr_r} ${spi_image_addr} ${size_kern}
|
||||
spiloadfdt=sf read ${fdt_addr_r} ${spi_fdt_addr} ${size_fdt}
|
||||
spiloadramdisk=sf read ${ramdisk_addr_r} ${spi_ramdisk_addr} ${size_fs}
|
||||
spiboot=run spiargs;
|
||||
|
||||
spiboot=echo DEPRECATION WARNING: spiboot will be removed in future versions. Use standard boot instead.;
|
||||
run spiargs;
|
||||
sf probe;
|
||||
run spiloadimage;
|
||||
run spiloadfdt;
|
||||
|
||||
11
include/env/phytec/watchdog.env
vendored
Normal file
11
include/env/phytec/watchdog.env
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
watchdog_timeout_ms=CONFIG_WATCHDOG_TIMEOUT_MSECS
|
||||
start_watchdog=
|
||||
if test ${watchdog_timeout_ms} -gt 0; then;
|
||||
if test -z "${watchdog}"; then;
|
||||
echo No watchdog device set, skipping watchdog start;
|
||||
else;
|
||||
wdt dev ${watchdog};
|
||||
wdt start ${watchdog_timeout_ms};
|
||||
echo Watchdog started, timeout ${watchdog_timeout_ms} ms;
|
||||
fi;
|
||||
fi;
|
||||
Reference in New Issue
Block a user