mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-05-05 09:57:21 +02:00
0735e3007c
One of the users of this driver - meraki-mx100 - abuses the software node API by setting up a dummy software node without any logical link to this GPIO controller and uses the fact that the GPIO core matches the controller's label against the swnode's name to make the lookup work. We want to remove this behavior from GPIOLIB in favor of actual matching of firmware nodes but that would break this user. To facilitate that: create a software node for the GPIO controller cell and expose its address in the provided MFD header. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20260218-meraki-swnodes-v2-1-92c521da241c@oss.qualcomm.com Signed-off-by: Lee Jones <lee@kernel.org>
43 lines
810 B
C
43 lines
810 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* linux/drivers/mfd/lpc_ich.h
|
|
*
|
|
* Copyright (c) 2012 Extreme Engineering Solution, Inc.
|
|
* Author: Aaron Sierra <asierra@xes-inc.com>
|
|
*/
|
|
#ifndef LPC_ICH_H
|
|
#define LPC_ICH_H
|
|
|
|
#include <linux/platform_data/x86/spi-intel.h>
|
|
|
|
/* GPIO resources */
|
|
#define ICH_RES_GPIO 0
|
|
#define ICH_RES_GPE0 1
|
|
|
|
/* GPIO compatibility */
|
|
enum lpc_gpio_versions {
|
|
ICH_I3100_GPIO,
|
|
ICH_V5_GPIO,
|
|
ICH_V6_GPIO,
|
|
ICH_V7_GPIO,
|
|
ICH_V9_GPIO,
|
|
ICH_V10CORP_GPIO,
|
|
ICH_V10CONS_GPIO,
|
|
AVOTON_GPIO,
|
|
};
|
|
|
|
struct lpc_ich_gpio_info;
|
|
|
|
struct lpc_ich_info {
|
|
char name[32];
|
|
unsigned int iTCO_version;
|
|
enum lpc_gpio_versions gpio_version;
|
|
enum intel_spi_type spi_type;
|
|
const struct lpc_ich_gpio_info *gpio_info;
|
|
u8 use_gpio;
|
|
};
|
|
|
|
extern const struct software_node lpc_ich_gpio_swnode;
|
|
|
|
#endif
|