linux/drivers/platform/x86/x86-android-tablets/shared-psy-info.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Shared psy info for X86 tablets which ship with Android as the factory image
 * and which have broken DSDT tables. The factory kernels shipped on these
 * devices typically have a bunch of things hardcoded, rather than specified
 * in their DSDT.
 *
 * Copyright (C) 2021-2023 Hans de Goede <[email protected]>
 */

#include <linux/gpio/machine.h>
#include <linux/platform_device.h>
#include <linux/power/bq24190_charger.h>
#include <linux/property.h>
#include <linux/regulator/machine.h>

#include "shared-psy-info.h"

/* Generic / shared charger / battery settings */
const char * const tusb1211_chg_det_psy[] =;
const char * const bq24190_psy[] =;
const char * const bq25890_psy[] =;

static const struct property_entry fg_bq24190_supply_props[] =;

const struct software_node fg_bq24190_supply_node =;

static const struct property_entry fg_bq25890_supply_props[] =;

const struct software_node fg_bq25890_supply_node =;

/* LiPo HighVoltage (max 4.35V) settings used by most devs with a HV battery */
static const struct property_entry generic_lipo_hv_4v35_battery_props[] =;

const struct software_node generic_lipo_hv_4v35_battery_node =;

/* For enabling the bq24190 5V boost based on id-pin */
static struct regulator_consumer_supply intel_int3496_consumer =;

static const struct regulator_init_data bq24190_vbus_init_data =;

struct bq24190_platform_data bq24190_pdata =;

const char * const bq24190_modules[] __initconst =;

/* Generic platform device array and GPIO lookup table for micro USB ID pin handling */
const struct platform_device_info int3496_pdevs[] __initconst =;

struct gpiod_lookup_table int3496_reference_gpios =;