Ramon Fried | e43d8e7 | 2018-05-16 12:13:40 +0300 | [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 | |
Simon Glass | 3ba929a | 2020-10-30 21:38:53 -0600 | [diff] [blame] | 11 | struct udevice; |
Ramon Fried | e43d8e7 | 2018-05-16 12:13:40 +0300 | [diff] [blame] | 12 | |
| 13 | struct msm_pinctrl_data { |
| 14 | int pin_count; |
| 15 | int functions_count; |
| 16 | const char *(*get_function_name)(struct udevice *dev, |
| 17 | unsigned int selector); |
| 18 | unsigned int (*get_function_mux)(unsigned int selector); |
| 19 | const char *(*get_pin_name)(struct udevice *dev, |
| 20 | unsigned int selector); |
| 21 | }; |
| 22 | |
| 23 | struct pinctrl_function { |
| 24 | const char *name; |
| 25 | int val; |
| 26 | }; |
| 27 | |
| 28 | extern struct msm_pinctrl_data apq8016_data; |
Ramon Fried | f518086 | 2019-01-12 11:47:25 +0200 | [diff] [blame] | 29 | extern struct msm_pinctrl_data apq8096_data; |
Ramon Fried | e43d8e7 | 2018-05-16 12:13:40 +0300 | [diff] [blame] | 30 | |
| 31 | #endif |