David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Platform data declarations for DA9052 PMICs. |
| 4 | * |
| 5 | * Copyright(c) 2011 Dialog Semiconductor Ltd. |
| 6 | * |
| 7 | * Author: David Dajun Chen <dchen@diasemi.com> |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #ifndef __MFD_DA9052_PDATA_H__ |
| 11 | #define __MFD_DA9052_PDATA_H__ |
| 12 | |
| 13 | #define DA9052_MAX_REGULATORS 14 |
| 14 | |
| 15 | struct da9052; |
| 16 | |
| 17 | struct da9052_pdata { |
| 18 | struct led_platform_data *pled; |
| 19 | int (*init) (struct da9052 *da9052); |
| 20 | int irq_base; |
| 21 | int gpio_base; |
| 22 | int use_for_apm; |
| 23 | struct regulator_init_data *regulators[DA9052_MAX_REGULATORS]; |
| 24 | }; |
| 25 | |
| 26 | #endif |