linux/drivers/pinctrl/stm32/pinctrl-stm32.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (C) Maxime Coquelin 2015
 * Copyright (C) STMicroelectronics 2017
 * Author:  Maxime Coquelin <[email protected]>
 */
#ifndef __PINCTRL_STM32_H
#define __PINCTRL_STM32_H

#include <linux/pinctrl/pinctrl.h>
#include <linux/pinctrl/pinconf-generic.h>

#define STM32_PIN_NO(x)
#define STM32_GET_PIN_NO(x)
#define STM32_GET_PIN_FUNC(x)

#define STM32_PIN_GPIO
#define STM32_PIN_AF(x)
#define STM32_PIN_ANALOG
#define STM32_CONFIG_NUM

/*  package information */
#define STM32MP_PKG_AA
#define STM32MP_PKG_AB
#define STM32MP_PKG_AC
#define STM32MP_PKG_AD
#define STM32MP_PKG_AI
#define STM32MP_PKG_AK
#define STM32MP_PKG_AL

struct stm32_desc_function {};

struct stm32_desc_pin {};

#define STM32_PIN(_pin, ...)

#define STM32_PIN_PKG(_pin, _pkg, ...)
#define STM32_FUNCTION(_num, _name)

struct stm32_pinctrl_match_data {};

struct stm32_gpio_bank;

int stm32_pctl_probe(struct platform_device *pdev);
void stm32_pmx_get_mode(struct stm32_gpio_bank *bank,
			int pin, u32 *mode, u32 *alt);
int stm32_pinctrl_suspend(struct device *dev);
int stm32_pinctrl_resume(struct device *dev);

#endif /* __PINCTRL_STM32_H */