linux/drivers/pinctrl/intel/pinctrl-sunrisepoint.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Intel Sunrisepoint PCH pinctrl/GPIO driver
 *
 * Copyright (C) 2015, Intel Corporation
 * Authors: Mathias Nyman <[email protected]>
 *          Mika Westerberg <[email protected]>
 */

#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/pm.h>

#include <linux/pinctrl/pinctrl.h>

#include "pinctrl-intel.h"

#define SPT_H_PAD_OWN
#define SPT_H_PADCFGLOCK
#define SPT_H_HOSTSW_OWN
#define SPT_H_GPI_IS
#define SPT_H_GPI_IE

#define SPT_LP_PAD_OWN
#define SPT_LP_PADCFGLOCK
#define SPT_LP_HOSTSW_OWN
#define SPT_LP_GPI_IS
#define SPT_LP_GPI_IE

#define SPT_H_GPP(r, s, e, g)

#define SPT_H_COMMUNITY(b, s, e, g)

#define SPT_LP_COMMUNITY(b, s, e)

/* Sunrisepoint-LP */
static const struct pinctrl_pin_desc sptlp_pins[] =;

static const unsigned sptlp_spi0_pins[] =;
static const unsigned sptlp_spi1_pins[] =;
static const unsigned sptlp_uart0_pins[] =;
static const unsigned sptlp_uart1_pins[] =;
static const unsigned sptlp_uart2_pins[] =;
static const unsigned sptlp_i2c0_pins[] =;
static const unsigned sptlp_i2c1_pins[] =;
static const unsigned sptlp_i2c2_pins[] =;
static const unsigned sptlp_i2c3_pins[] =;
static const unsigned sptlp_i2c4_pins[] =;
static const unsigned sptlp_i2c4b_pins[] =;
static const unsigned sptlp_i2c5_pins[] =;
static const unsigned sptlp_ssp2_pins[] =;
static const unsigned sptlp_emmc_pins[] =;
static const unsigned sptlp_sd_pins[] =;

static const struct intel_pingroup sptlp_groups[] =;

static const char * const sptlp_spi0_groups[] =;
static const char * const sptlp_spi1_groups[] =;
static const char * const sptlp_uart0_groups[] =;
static const char * const sptlp_uart1_groups[] =;
static const char * const sptlp_uart2_groups[] =;
static const char * const sptlp_i2c0_groups[] =;
static const char * const sptlp_i2c1_groups[] =;
static const char * const sptlp_i2c2_groups[] =;
static const char * const sptlp_i2c3_groups[] =;
static const char * const sptlp_i2c4_groups[] =;
static const char * const sptlp_i2c5_groups[] =;
static const char * const sptlp_ssp2_groups[] =;
static const char * const sptlp_emmc_groups[] =;
static const char * const sptlp_sd_groups[] =;

static const struct intel_function sptlp_functions[] =;

static const struct intel_community sptlp_communities[] =;

static const struct intel_pinctrl_soc_data sptlp_soc_data =;

/* Sunrisepoint-H */
static const struct pinctrl_pin_desc spth_pins[] =;

static const unsigned spth_spi0_pins[] =;
static const unsigned spth_spi1_pins[] =;
static const unsigned spth_uart0_pins[] =;
static const unsigned spth_uart1_pins[] =;
static const unsigned spth_uart2_pins[] =;
static const unsigned spth_i2c0_pins[] =;
static const unsigned spth_i2c1_pins[] =;
static const unsigned spth_i2c2_pins[] =;

static const struct intel_pingroup spth_groups[] =;

static const char * const spth_spi0_groups[] =;
static const char * const spth_spi1_groups[] =;
static const char * const spth_uart0_groups[] =;
static const char * const spth_uart1_groups[] =;
static const char * const spth_uart2_groups[] =;
static const char * const spth_i2c0_groups[] =;
static const char * const spth_i2c1_groups[] =;
static const char * const spth_i2c2_groups[] =;

static const struct intel_function spth_functions[] =;

static const struct intel_padgroup spth_community0_gpps[] =;

static const struct intel_padgroup spth_community1_gpps[] =;

static const struct intel_padgroup spth_community3_gpps[] =;

static const struct intel_community spth_communities[] =;

static const struct intel_pinctrl_soc_data spth_soc_data =;

static const struct acpi_device_id spt_pinctrl_acpi_match[] =;
MODULE_DEVICE_TABLE(acpi, spt_pinctrl_acpi_match);

static struct platform_driver spt_pinctrl_driver =;

static int __init spt_pinctrl_init(void)
{}
subsys_initcall(spt_pinctrl_init);

static void __exit spt_pinctrl_exit(void)
{}
module_exit(spt_pinctrl_exit);

MODULE_AUTHOR();
MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_IMPORT_NS();