mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
The bq25890_charger code supports enabling/disabling the boost converter based on usb-phy notifications. But the usb-phy framework is not used on all boards/platforms. At support for registering the Vbus boost converter as a standard regulator when there is no usb-phy on the board. Also add support for providing regulator_init_data through platform_data for use on boards where device-tree is not used and the platform code must thus provide the regulator_init_data. Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
15 lines
296 B
C
15 lines
296 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Platform data for the TI bq25890 battery charger driver.
|
|
*/
|
|
|
|
#ifndef _BQ25890_CHARGER_H_
|
|
#define _BQ25890_CHARGER_H_
|
|
|
|
struct regulator_init_data;
|
|
|
|
struct bq25890_platform_data {
|
|
const struct regulator_init_data *regulator_init_data;
|
|
};
|
|
|
|
#endif
|