18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0+ */
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ci/*
48c2ecf20Sopenharmony_ci * AMD FCH gpio driver platform-data
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * Copyright (C) 2018 metux IT consult
78c2ecf20Sopenharmony_ci * Author: Enrico Weigelt <info@metux.net>
88c2ecf20Sopenharmony_ci *
98c2ecf20Sopenharmony_ci */
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#ifndef __LINUX_PLATFORM_DATA_GPIO_AMD_FCH_H
128c2ecf20Sopenharmony_ci#define __LINUX_PLATFORM_DATA_GPIO_AMD_FCH_H
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci#define AMD_FCH_GPIO_DRIVER_NAME "gpio_amd_fch"
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci/*
178c2ecf20Sopenharmony_ci * gpio register index definitions
188c2ecf20Sopenharmony_ci */
198c2ecf20Sopenharmony_ci#define AMD_FCH_GPIO_REG_GPIO49		0x40
208c2ecf20Sopenharmony_ci#define AMD_FCH_GPIO_REG_GPIO50		0x41
218c2ecf20Sopenharmony_ci#define AMD_FCH_GPIO_REG_GPIO51		0x42
228c2ecf20Sopenharmony_ci#define AMD_FCH_GPIO_REG_GPIO55_DEVSLP0	0x43
238c2ecf20Sopenharmony_ci#define AMD_FCH_GPIO_REG_GPIO57		0x44
248c2ecf20Sopenharmony_ci#define AMD_FCH_GPIO_REG_GPIO58		0x45
258c2ecf20Sopenharmony_ci#define AMD_FCH_GPIO_REG_GPIO59_DEVSLP1	0x46
268c2ecf20Sopenharmony_ci#define AMD_FCH_GPIO_REG_GPIO64		0x47
278c2ecf20Sopenharmony_ci#define AMD_FCH_GPIO_REG_GPIO68		0x48
288c2ecf20Sopenharmony_ci#define AMD_FCH_GPIO_REG_GPIO66_SPKR	0x5B
298c2ecf20Sopenharmony_ci#define AMD_FCH_GPIO_REG_GPIO71		0x4D
308c2ecf20Sopenharmony_ci#define AMD_FCH_GPIO_REG_GPIO32_GE1	0x59
318c2ecf20Sopenharmony_ci#define AMD_FCH_GPIO_REG_GPIO33_GE2	0x5A
328c2ecf20Sopenharmony_ci#define AMT_FCH_GPIO_REG_GEVT22		0x09
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci/*
358c2ecf20Sopenharmony_ci * struct amd_fch_gpio_pdata - GPIO chip platform data
368c2ecf20Sopenharmony_ci * @gpio_num: number of entries
378c2ecf20Sopenharmony_ci * @gpio_reg: array of gpio registers
388c2ecf20Sopenharmony_ci * @gpio_names: array of gpio names
398c2ecf20Sopenharmony_ci */
408c2ecf20Sopenharmony_cistruct amd_fch_gpio_pdata {
418c2ecf20Sopenharmony_ci	int			gpio_num;
428c2ecf20Sopenharmony_ci	int			*gpio_reg;
438c2ecf20Sopenharmony_ci	const char * const	*gpio_names;
448c2ecf20Sopenharmony_ci};
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ci#endif /* __LINUX_PLATFORM_DATA_GPIO_AMD_FCH_H */
47