Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

watchdog: Enable COMPILE_TEST for more drivers

There's quite a few watchdog drivers which are easily enabled for
COMPILE_TEST, so let's enable them.

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230728195022.1198555-1-robh@kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>

authored by

Rob Herring and committed by
Wim Van Sebroeck
f1a43aad 6eb28a38

+41 -40
+40 -40
drivers/watchdog/Kconfig
··· 307 307 config XILINX_WINDOW_WATCHDOG 308 308 tristate "Xilinx window watchdog timer" 309 309 depends on HAS_IOMEM 310 - depends on ARM64 310 + depends on ARM64 || COMPILE_TEST 311 311 select WATCHDOG_CORE 312 312 help 313 313 Window watchdog driver for the versal_wwdt IP core. ··· 343 343 344 344 config MLX_WDT 345 345 tristate "Mellanox Watchdog" 346 - depends on MELLANOX_PLATFORM 346 + depends on MELLANOX_PLATFORM || COMPILE_TEST 347 347 select WATCHDOG_CORE 348 348 select REGMAP 349 349 help ··· 493 493 494 494 config IXP4XX_WATCHDOG 495 495 tristate "IXP4xx Watchdog" 496 - depends on ARCH_IXP4XX 496 + depends on ARCH_IXP4XX || (ARM && COMPILE_TEST) 497 497 select WATCHDOG_CORE 498 498 help 499 499 Say Y here if to include support for the watchdog timer ··· 529 529 530 530 config SA1100_WATCHDOG 531 531 tristate "SA1100/PXA2xx watchdog" 532 - depends on ARCH_SA1100 || ARCH_PXA 532 + depends on ARCH_SA1100 || ARCH_PXA || COMPILE_TEST 533 533 help 534 534 Watchdog timer embedded into SA11x0 and PXA2xx chips. This will 535 535 reboot your system when timeout is reached. ··· 720 720 config IMX_SC_WDT 721 721 tristate "IMX SC Watchdog" 722 722 depends on HAVE_ARM_SMCCC 723 - depends on IMX_SCU 723 + depends on IMX_SCU || COMPILE_TEST 724 724 select WATCHDOG_CORE 725 725 help 726 726 This is the driver for the system controller watchdog ··· 931 931 932 932 config STM32_WATCHDOG 933 933 tristate "STM32 Independent WatchDoG (IWDG) support" 934 - depends on ARCH_STM32 934 + depends on ARCH_STM32 || COMPILE_TEST 935 935 select WATCHDOG_CORE 936 936 default y 937 937 help ··· 1065 1065 1066 1066 config ADVANTECH_WDT 1067 1067 tristate "Advantech SBC Watchdog Timer" 1068 - depends on X86 1068 + depends on X86 || COMPILE_TEST 1069 1069 help 1070 1070 If you are configuring a Linux kernel for the Advantech single-board 1071 1071 computer, say `Y' here to support its built-in watchdog timer ··· 1074 1074 1075 1075 config ADVANTECH_EC_WDT 1076 1076 tristate "Advantech Embedded Controller Watchdog Timer" 1077 - depends on X86 1077 + depends on X86 || COMPILE_TEST 1078 1078 select ISA_BUS_API 1079 1079 select WATCHDOG_CORE 1080 1080 help ··· 1083 1083 1084 1084 config ALIM1535_WDT 1085 1085 tristate "ALi M1535 PMU Watchdog Timer" 1086 - depends on X86 && PCI 1086 + depends on (X86 || COMPILE_TEST) && PCI 1087 1087 help 1088 1088 This is the driver for the hardware watchdog on the ALi M1535 PMU. 1089 1089 ··· 1107 1107 1108 1108 config EBC_C384_WDT 1109 1109 tristate "WinSystems EBC-C384 Watchdog Timer" 1110 - depends on X86 1110 + depends on X86 || COMPILE_TEST 1111 1111 select ISA_BUS_API 1112 1112 select WATCHDOG_CORE 1113 1113 help ··· 1117 1117 1118 1118 config EXAR_WDT 1119 1119 tristate "Exar Watchdog Timer" 1120 - depends on X86 1120 + depends on X86 || COMPILE_TEST 1121 1121 select WATCHDOG_CORE 1122 1122 help 1123 1123 Enables watchdog timer support for the watchdog timer present ··· 1128 1128 1129 1129 config F71808E_WDT 1130 1130 tristate "Fintek F718xx, F818xx Super I/O Watchdog" 1131 - depends on X86 1131 + depends on X86 || COMPILE_TEST 1132 1132 select WATCHDOG_CORE 1133 1133 help 1134 1134 This is the driver for the hardware watchdog on the Fintek F71808E, ··· 1140 1140 1141 1141 config SP5100_TCO 1142 1142 tristate "AMD/ATI SP5100 TCO Timer/Watchdog" 1143 - depends on X86 && PCI 1143 + depends on (X86 || COMPILE_TEST) && PCI 1144 1144 select WATCHDOG_CORE 1145 1145 help 1146 1146 Hardware watchdog driver for the AMD/ATI SP5100 chipset. The TCO ··· 1179 1179 1180 1180 config SBC_FITPC2_WATCHDOG 1181 1181 tristate "Compulab SBC-FITPC2 watchdog" 1182 - depends on X86 1182 + depends on X86 || COMPILE_TEST 1183 1183 help 1184 1184 This is the driver for the built-in watchdog timer on the fit-PC2, 1185 1185 fit-PC2i, CM-iAM single-board computers made by Compulab. ··· 1204 1204 1205 1205 config EUROTECH_WDT 1206 1206 tristate "Eurotech CPU-1220/1410 Watchdog Timer" 1207 - depends on X86 1207 + depends on X86 || COMPILE_TEST 1208 1208 help 1209 1209 Enable support for the watchdog timer on the Eurotech CPU-1220 and 1210 1210 CPU-1410 cards. These are PC/104 SBCs. Spec sheets and product ··· 1212 1212 1213 1213 config IB700_WDT 1214 1214 tristate "IB700 SBC Watchdog Timer" 1215 - depends on X86 1215 + depends on X86 || COMPILE_TEST 1216 1216 help 1217 1217 This is the driver for the hardware watchdog on the IB700 Single 1218 1218 Board Computer produced by TMC Technology (www.tmc-uk.com). This ··· 1229 1229 1230 1230 config IBMASR 1231 1231 tristate "IBM Automatic Server Restart" 1232 - depends on X86 1232 + depends on X86 || COMPILE_TEST 1233 1233 help 1234 1234 This is the driver for the IBM Automatic Server Restart watchdog 1235 1235 timer built-in into some eServer xSeries machines. ··· 1239 1239 1240 1240 config WAFER_WDT 1241 1241 tristate "ICP Single Board Computer Watchdog Timer" 1242 - depends on X86 1242 + depends on X86 || COMPILE_TEST 1243 1243 help 1244 1244 This is a driver for the hardware watchdog on the ICP Single 1245 1245 Board Computer. This driver is working on (at least) the following ··· 1261 1261 1262 1262 config IE6XX_WDT 1263 1263 tristate "Intel Atom E6xx Watchdog" 1264 - depends on X86 && PCI 1264 + depends on (X86 || COMPILE_TEST) && PCI 1265 1265 select WATCHDOG_CORE 1266 1266 select MFD_CORE 1267 1267 select LPC_SCH ··· 1321 1321 1322 1322 config IT8712F_WDT 1323 1323 tristate "IT8712F (Smart Guardian) Watchdog Timer" 1324 - depends on X86 1324 + depends on X86 || COMPILE_TEST 1325 1325 help 1326 1326 This is the driver for the built-in watchdog timer on the IT8712F 1327 1327 Super I/0 chipset used on many motherboards. ··· 1334 1334 1335 1335 config IT87_WDT 1336 1336 tristate "IT87 Watchdog Timer" 1337 - depends on X86 1337 + depends on X86 || COMPILE_TEST 1338 1338 select WATCHDOG_CORE 1339 1339 help 1340 1340 This is the driver for the hardware watchdog on the ITE IT8607, ··· 1352 1352 config HP_WATCHDOG 1353 1353 tristate "HP ProLiant iLO2+ Hardware Watchdog Timer" 1354 1354 select WATCHDOG_CORE 1355 - depends on (ARM64 || X86) && PCI 1355 + depends on (ARM64 || X86 || COMPILE_TEST) && PCI 1356 1356 help 1357 1357 A software monitoring watchdog and NMI handling driver. This driver 1358 1358 will detect lockups and provide a stack trace. This is a driver that ··· 1382 1382 1383 1383 config SC1200_WDT 1384 1384 tristate "National Semiconductor PC87307/PC97307 (ala SC1200) Watchdog" 1385 - depends on X86 1385 + depends on X86 || COMPILE_TEST 1386 1386 help 1387 1387 This is a driver for National Semiconductor PC87307/PC97307 hardware 1388 1388 watchdog cards as found on the SC1200. This watchdog is mainly used ··· 1405 1405 1406 1406 config PC87413_WDT 1407 1407 tristate "NS PC87413 watchdog" 1408 - depends on X86 1408 + depends on X86 || COMPILE_TEST 1409 1409 help 1410 1410 This is the driver for the hardware watchdog on the PC87413 chipset 1411 1411 This watchdog simply watches your kernel to make sure it doesn't ··· 1419 1419 1420 1420 config NV_TCO 1421 1421 tristate "nVidia TCO Timer/Watchdog" 1422 - depends on X86 && PCI 1422 + depends on (X86 || COMPILE_TEST) && PCI 1423 1423 help 1424 1424 Hardware driver for the TCO timer built into the nVidia Hub family 1425 1425 (such as the MCP51). The TCO (Total Cost of Ownership) timer is a ··· 1448 1448 1449 1449 config 60XX_WDT 1450 1450 tristate "SBC-60XX Watchdog Timer" 1451 - depends on X86 1451 + depends on X86 || COMPILE_TEST 1452 1452 help 1453 1453 This driver can be used with the watchdog timer found on some 1454 1454 single board computers, namely the 6010 PII based computer. ··· 1488 1488 1489 1489 config CPU5_WDT 1490 1490 tristate "SMA CPU5 Watchdog" 1491 - depends on X86 1491 + depends on X86 || COMPILE_TEST 1492 1492 help 1493 1493 TBD. 1494 1494 To compile this driver as a module, choose M here: the ··· 1496 1496 1497 1497 config SMSC_SCH311X_WDT 1498 1498 tristate "SMSC SCH311X Watchdog Timer" 1499 - depends on X86 1499 + depends on X86 || COMPILE_TEST 1500 1500 help 1501 1501 This is the driver for the hardware watchdog timer on the 1502 1502 SMSC SCH3112, SCH3114 and SCH3116 Super IO chipset ··· 1508 1508 1509 1509 config SMSC37B787_WDT 1510 1510 tristate "Winbond SMsC37B787 Watchdog Timer" 1511 - depends on X86 1511 + depends on X86 || COMPILE_TEST 1512 1512 help 1513 1513 This is the driver for the hardware watchdog component on the 1514 1514 Winbond SMsC37B787 chipset as used on the NetRunner Mainboard ··· 1528 1528 1529 1529 config TQMX86_WDT 1530 1530 tristate "TQ-Systems TQMX86 Watchdog Timer" 1531 - depends on X86 1531 + depends on X86 || COMPILE_TEST 1532 1532 select WATCHDOG_CORE 1533 1533 help 1534 1534 This is the driver for the hardware watchdog timer in the TQMX86 IO ··· 1541 1541 1542 1542 config VIA_WDT 1543 1543 tristate "VIA Watchdog Timer" 1544 - depends on X86 && PCI 1544 + depends on (X86 || COMPILE_TEST) && PCI 1545 1545 select WATCHDOG_CORE 1546 1546 help 1547 1547 This is the driver for the hardware watchdog timer on VIA ··· 1554 1554 1555 1555 config W83627HF_WDT 1556 1556 tristate "Watchdog timer for W83627HF/W83627DHG and compatibles" 1557 - depends on X86 1557 + depends on X86 || COMPILE_TEST 1558 1558 select WATCHDOG_CORE 1559 1559 help 1560 1560 This is the driver for the hardware watchdog on the following ··· 1584 1584 1585 1585 config W83877F_WDT 1586 1586 tristate "W83877F (EMACS) Watchdog Timer" 1587 - depends on X86 1587 + depends on X86 || COMPILE_TEST 1588 1588 help 1589 1589 This is the driver for the hardware watchdog on the W83877F chipset 1590 1590 as used in EMACS PC-104 motherboards (and likely others). This ··· 1599 1599 1600 1600 config W83977F_WDT 1601 1601 tristate "W83977F (PCM-5335) Watchdog Timer" 1602 - depends on X86 1602 + depends on X86 || COMPILE_TEST 1603 1603 help 1604 1604 This is the driver for the hardware watchdog on the W83977F I/O chip 1605 1605 as used in AAEON's PCM-5335 SBC (and likely others). This ··· 1612 1612 1613 1613 config MACHZ_WDT 1614 1614 tristate "ZF MachZ Watchdog" 1615 - depends on X86 1615 + depends on X86 || COMPILE_TEST 1616 1616 help 1617 1617 If you are using a ZF Micro MachZ processor, say Y here, otherwise 1618 1618 N. This is the driver for the watchdog timer built-in on that ··· 1625 1625 1626 1626 config SBC_EPX_C3_WATCHDOG 1627 1627 tristate "Winsystems SBC EPX-C3 watchdog" 1628 - depends on X86 1628 + depends on X86 || COMPILE_TEST 1629 1629 help 1630 1630 This is the driver for the built-in watchdog timer on the EPX-C3 1631 1631 Single-board computer made by Winsystems, Inc. ··· 1740 1740 1741 1741 config JZ4740_WDT 1742 1742 tristate "Ingenic jz4740 SoC hardware watchdog" 1743 - depends on MIPS 1743 + depends on MIPS || COMPILE_TEST 1744 1744 depends on COMMON_CLK 1745 1745 select WATCHDOG_CORE 1746 1746 select MFD_SYSCON ··· 1837 1837 1838 1838 config BCM_KONA_WDT_DEBUG 1839 1839 bool "DEBUGFS support for BCM Kona Watchdog" 1840 - depends on BCM_KONA_WDT 1840 + depends on BCM_KONA_WDT || COMPILE_TEST 1841 1841 help 1842 1842 If enabled, adds /sys/kernel/debug/bcm_kona_wdt/info which provides 1843 1843 access to the driver's internal data structures as well as watchdog ··· 1878 1878 1879 1879 config LOONGSON1_WDT 1880 1880 tristate "Loongson1 SoC hardware watchdog" 1881 - depends on MACH_LOONGSON32 1881 + depends on MACH_LOONGSON32 || COMPILE_TEST 1882 1882 select WATCHDOG_CORE 1883 1883 help 1884 1884 Hardware driver for the Loongson1 SoC Watchdog Timer. ··· 1892 1892 1893 1893 config GXP_WATCHDOG 1894 1894 tristate "HPE GXP watchdog support" 1895 - depends on ARCH_HPE_GXP 1895 + depends on ARCH_HPE_GXP || COMPILE_TEST 1896 1896 select WATCHDOG_CORE 1897 1897 help 1898 1898 Say Y here to include support for the watchdog timer
+1
drivers/watchdog/loongson1_wdt.c
··· 4 4 */ 5 5 6 6 #include <linux/clk.h> 7 + #include <linux/io.h> 7 8 #include <linux/module.h> 8 9 #include <linux/of.h> 9 10 #include <linux/platform_device.h>