Robert Marko | e7a34f1 | 2020-07-06 10:37:54 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Qualcomm Pin control |
| 4 | * |
| 5 | * (C) Copyright 2018 Ramon Fried <ramon.fried@gmail.com> |
| 6 | * |
| 7 | */ |
| 8 | #ifndef _PINCTRL_SNAPDRAGON_H |
| 9 | #define _PINCTRL_SNAPDRAGON_H |
| 10 | |
Robert Marko | e7a34f1 | 2020-07-06 10:37:54 +0200 | [diff] [blame] | 11 | struct msm_pinctrl_data { |
| 12 | int pin_count; |
| 13 | int functions_count; |
| 14 | const char *(*get_function_name)(struct udevice *dev, |
| 15 | unsigned int selector); |
| 16 | unsigned int (*get_function_mux)(unsigned int selector); |
| 17 | const char *(*get_pin_name)(struct udevice *dev, |
| 18 | unsigned int selector); |
| 19 | }; |
| 20 | |
| 21 | struct pinctrl_function { |
| 22 | const char *name; |
| 23 | int val; |
| 24 | }; |
| 25 | |
| 26 | extern struct msm_pinctrl_data ipq4019_data; |
| 27 | |
| 28 | #endif |