| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Internal interface between the core pin control system and the |
|---|
| 3 | 4 | * pinmux portions |
|---|
| .. | .. |
|---|
| 7 | 8 | * Based on bits of regulator core, gpio core and clk core |
|---|
| 8 | 9 | * |
|---|
| 9 | 10 | * Author: Linus Walleij <linus.walleij@linaro.org> |
|---|
| 10 | | - * |
|---|
| 11 | | - * License terms: GNU General Public License (GPL) version 2 |
|---|
| 12 | 11 | */ |
|---|
| 13 | 12 | #ifdef CONFIG_PINMUX |
|---|
| 14 | 13 | |
|---|
| 15 | 14 | int pinmux_check_ops(struct pinctrl_dev *pctldev); |
|---|
| 16 | 15 | |
|---|
| 17 | 16 | int pinmux_validate_map(const struct pinctrl_map *map, int i); |
|---|
| 17 | + |
|---|
| 18 | +bool pinmux_can_be_used_for_gpio(struct pinctrl_dev *pctldev, unsigned pin); |
|---|
| 18 | 19 | |
|---|
| 19 | 20 | int pinmux_request_gpio(struct pinctrl_dev *pctldev, |
|---|
| 20 | 21 | struct pinctrl_gpio_range *range, |
|---|
| .. | .. |
|---|
| 43 | 44 | return 0; |
|---|
| 44 | 45 | } |
|---|
| 45 | 46 | |
|---|
| 47 | +static inline bool pinmux_can_be_used_for_gpio(struct pinctrl_dev *pctldev, |
|---|
| 48 | + unsigned pin) |
|---|
| 49 | +{ |
|---|
| 50 | + return true; |
|---|
| 51 | +} |
|---|
| 52 | + |
|---|
| 46 | 53 | static inline int pinmux_request_gpio(struct pinctrl_dev *pctldev, |
|---|
| 47 | 54 | struct pinctrl_gpio_range *range, |
|---|
| 48 | 55 | unsigned pin, unsigned gpio) |
|---|