Pass tps68470_regulator_platform_data to the tps68470-regulator MFD-cell, specifying the voltages of the various regulators and tying the regulators to the sensor supplies so that sensors which use the TPS68470 can find their regulators. Since the voltages and supply connections are board-specific, this introduces a DMI matches int3472_tps68470_board_data struct which contains the necessary per-board info. This per-board info also includes GPIO lookup information for the sensor IO lines which may be connected to the tps68470 GPIOs. Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20211203102857.44539-11-hdegoede@redhat.com
25 lines
638 B
C
25 lines
638 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* TI TPS68470 PMIC platform data definition.
|
|
*
|
|
* Copyright (c) 2021 Red Hat Inc.
|
|
*
|
|
* Red Hat authors:
|
|
* Hans de Goede <hdegoede@redhat.com>
|
|
*/
|
|
|
|
#ifndef _INTEL_SKL_INT3472_TPS68470_H
|
|
#define _INTEL_SKL_INT3472_TPS68470_H
|
|
|
|
struct gpiod_lookup_table;
|
|
struct tps68470_regulator_platform_data;
|
|
|
|
struct int3472_tps68470_board_data {
|
|
const char *dev_name;
|
|
struct gpiod_lookup_table *tps68470_gpio_lookup_table;
|
|
const struct tps68470_regulator_platform_data *tps68470_regulator_pdata;
|
|
};
|
|
|
|
const struct int3472_tps68470_board_data *int3472_tps68470_get_board_data(const char *dev_name);
|
|
|
|
#endif
|