diff options
| author | Simon Glass <[email protected]> | 2024-07-31 08:44:08 -0600 |
|---|---|---|
| committer | Anatolij Gustschin <[email protected]> | 2024-07-31 16:51:54 +0200 |
| commit | 8ada14b4d9dcdf9d0efa902d80f40b7d3e7b678d (patch) | |
| tree | f8622524fef28392e08f4ce06d023448e5bdf0f4 /common/Kconfig | |
| parent | 8877bc51a8a4d921ba2f163208b8b1a57ba47c18 (diff) | |
cyclic: Add a symbol for SPL
The cyclic subsystem is currently enabled either in all build phases
or none. For tools this should not be enabled, but since lib/shc256.c
and other files include watchdog.h in the host build, we must make
sure that it is not enabled there.
Add an SPL symbol so that there is more control of this.
Add an include into cyclic.h so that tools can include this file.
Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Devarsh Thakkar <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Diffstat (limited to 'common/Kconfig')
| -rw-r--r-- | common/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig index 4bb9f08977a..87b0ec3ea8f 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -626,6 +626,14 @@ config CYCLIC if CYCLIC +config SPL_CYCLIC + bool "General-purpose cyclic execution mechanism (SPL)" + help + This enables a general-purpose cyclic execution infrastructure in SPL, + to allow "small" (run-time wise) functions to be executed at + a specified frequency. Things like LED blinking or watchdog + triggering are examples for such tasks. + config CYCLIC_MAX_CPU_TIME_US int "Sets the max allowed time for a cyclic function in us" default 5000 |
