diff options
author | Henning Schild <henning.schild@siemens.com> | 2023-07-06 17:48:31 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2023-07-14 15:06:40 +0200 |
commit | 917f543407947a007052edf7f89854259e6be008 (patch) | |
tree | 8d4b704b0ddea5ed0faaf44dab53975f35ae382f /include/linux/platform_data | |
parent | 15fe994ee53a0093f4f7771100cd4ca9c1597748 (diff) | |
download | lwn-917f543407947a007052edf7f89854259e6be008.tar.gz lwn-917f543407947a007052edf7f89854259e6be008.zip |
platform/x86: simatic-ipc: add CMOS battery monitoring
Siemens Simatic Industrial PCs can monitor the voltage of the CMOS
battery with two bits that indicate low or empty state. This can be GPIO
or PortIO based.
Here we model that as a hwmon voltage. The core driver does the PortIO
and provides boilerplate for the GPIO versions. Which are split out to
model runtime dependencies while allowing fine-grained kernel
configuration.
Signed-off-by: Henning Schild <henning.schild@siemens.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20230706154831.19100-3-henning.schild@siemens.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r-- | include/linux/platform_data/x86/simatic-ipc-base.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/platform_data/x86/simatic-ipc-base.h b/include/linux/platform_data/x86/simatic-ipc-base.h index 68c455f5edad..4ca21065c862 100644 --- a/include/linux/platform_data/x86/simatic-ipc-base.h +++ b/include/linux/platform_data/x86/simatic-ipc-base.h @@ -21,6 +21,7 @@ #define SIMATIC_IPC_DEVICE_227E 4 #define SIMATIC_IPC_DEVICE_227G 5 #define SIMATIC_IPC_DEVICE_BX_21A 6 +#define SIMATIC_IPC_DEVICE_BX_39A 7 struct simatic_ipc_platform { u8 devmode; |