2019-05-20 14:19:02 +07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2011-12-12 21:36:56 +07:00
|
|
|
/*
|
|
|
|
* Platform data declarations for DA9052 PMICs.
|
|
|
|
*
|
|
|
|
* Copyright(c) 2011 Dialog Semiconductor Ltd.
|
|
|
|
*
|
|
|
|
* Author: David Dajun Chen <dchen@diasemi.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __MFD_DA9052_PDATA_H__
|
|
|
|
#define __MFD_DA9052_PDATA_H__
|
|
|
|
|
|
|
|
#define DA9052_MAX_REGULATORS 14
|
|
|
|
|
|
|
|
struct da9052;
|
|
|
|
|
|
|
|
struct da9052_pdata {
|
|
|
|
struct led_platform_data *pled;
|
|
|
|
int (*init) (struct da9052 *da9052);
|
|
|
|
int irq_base;
|
|
|
|
int gpio_base;
|
|
|
|
int use_for_apm;
|
|
|
|
struct regulator_init_data *regulators[DA9052_MAX_REGULATORS];
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|