mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-07-01 23:53:16 -04:00
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>
29 lines
676 B
C
29 lines
676 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Siemens SIMATIC IPC drivers
|
|
*
|
|
* Copyright (c) Siemens AG, 2018-2021
|
|
*
|
|
* Authors:
|
|
* Henning Schild <henning.schild@siemens.com>
|
|
* Gerd Haeussler <gerd.haeussler.ext@siemens.com>
|
|
*/
|
|
|
|
#ifndef __PLATFORM_DATA_X86_SIMATIC_IPC_BASE_H
|
|
#define __PLATFORM_DATA_X86_SIMATIC_IPC_BASE_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
#define SIMATIC_IPC_DEVICE_NONE 0
|
|
#define SIMATIC_IPC_DEVICE_227D 1
|
|
#define SIMATIC_IPC_DEVICE_427E 2
|
|
#define SIMATIC_IPC_DEVICE_127E 3
|
|
#define SIMATIC_IPC_DEVICE_227E 4
|
|
|
|
struct simatic_ipc_platform {
|
|
u8 devmode;
|
|
};
|
|
|
|
u32 simatic_ipc_get_membase0(unsigned int p2sb);
|
|
|
|
#endif /* __PLATFORM_DATA_X86_SIMATIC_IPC_BASE_H */
|