Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Cory Maccarrone | 6048a3d | 2010-01-19 11:22:45 +0100 | [diff] [blame] | 2 | #ifndef __LINUX_HTCPLD_H |
| 3 | #define __LINUX_HTCPLD_H |
| 4 | |
| 5 | struct htcpld_chip_platform_data { |
| 6 | unsigned int addr; |
| 7 | unsigned int reset; |
| 8 | unsigned int num_gpios; |
| 9 | unsigned int gpio_out_base; |
| 10 | unsigned int gpio_in_base; |
| 11 | unsigned int irq_base; |
| 12 | unsigned int num_irqs; |
| 13 | }; |
| 14 | |
| 15 | struct htcpld_core_platform_data { |
| 16 | unsigned int int_reset_gpio_hi; |
| 17 | unsigned int int_reset_gpio_lo; |
| 18 | unsigned int i2c_adapter_id; |
| 19 | |
| 20 | struct htcpld_chip_platform_data *chip; |
| 21 | unsigned int num_chip; |
| 22 | }; |
| 23 | |
| 24 | #endif /* __LINUX_HTCPLD_H */ |
| 25 | |