platform/x86: simatic-ipc: add main driver for Siemens devices
authorHenning Schild <henning.schild@siemens.com>
Mon, 13 Dec 2021 12:04:59 +0000 (13:04 +0100)
committerHans de Goede <hdegoede@redhat.com>
Thu, 23 Dec 2021 17:09:06 +0000 (18:09 +0100)
commitdd123e62bdedcd3a486e48e883ec63138ec2c14c
treed46accfbf4a598f2b0c29707affac82f300754be
parentc0518b21fba5351c8544a18c1bdf20b73088d5d9
platform/x86: simatic-ipc: add main driver for Siemens devices

This mainly implements detection of these devices and will allow
secondary drivers to work on such machines.

The identification is DMI-based with a vendor specific way to tell them
apart in a reliable way.

Drivers for LEDs and Watchdogs will follow to make use of that platform
detection.

There is also some code to allow secondary drivers to find GPIO memory,
that needs to be in place because the pinctrl drivers do not come up.

Signed-off-by: Henning Schild <henning.schild@siemens.com>
Link: https://lore.kernel.org/r/20211213120502.20661-2-henning.schild@siemens.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/Kconfig
drivers/platform/x86/Makefile
drivers/platform/x86/simatic-ipc.c [new file with mode: 0644]
include/linux/platform_data/x86/simatic-ipc-base.h [new file with mode: 0644]
include/linux/platform_data/x86/simatic-ipc.h [new file with mode: 0644]