1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 28c0984e5SSebastian Reichelsubdir-ccflags-$(CONFIG_POWER_SUPPLY_DEBUG) := -DDEBUG 38c0984e5SSebastian Reichel 48c0984e5SSebastian Reichelpower_supply-y := power_supply_core.o 58c0984e5SSebastian Reichelpower_supply-$(CONFIG_SYSFS) += power_supply_sysfs.o 68c0984e5SSebastian Reichelpower_supply-$(CONFIG_LEDS_TRIGGERS) += power_supply_leds.o 78c0984e5SSebastian Reichel 88c0984e5SSebastian Reichelobj-$(CONFIG_POWER_SUPPLY) += power_supply.o 9e67d4dfcSAndrey Smirnovobj-$(CONFIG_POWER_SUPPLY_HWMON) += power_supply_hwmon.o 108c0984e5SSebastian Reichelobj-$(CONFIG_GENERIC_ADC_BATTERY) += generic-adc-battery.o 118c0984e5SSebastian Reichel 128c0984e5SSebastian Reichelobj-$(CONFIG_APM_POWER) += apm_power.o 138c0984e5SSebastian Reichelobj-$(CONFIG_AXP20X_POWER) += axp20x_usb_power.o 1475853406SSamuel Hollandobj-$(CONFIG_IP5XXX_POWER) += ip5xxx_power.o 158c0984e5SSebastian Reichelobj-$(CONFIG_MAX8925_POWER) += max8925_power.o 168c0984e5SSebastian Reichelobj-$(CONFIG_WM831X_BACKUP) += wm831x_backup.o 178c0984e5SSebastian Reichelobj-$(CONFIG_WM831X_POWER) += wm831x_power.o 188c0984e5SSebastian Reichelobj-$(CONFIG_WM8350_POWER) += wm8350_power.o 198c0984e5SSebastian Reichelobj-$(CONFIG_TEST_POWER) += test_power.o 208c0984e5SSebastian Reichel 218c0984e5SSebastian Reichelobj-$(CONFIG_BATTERY_88PM860X) += 88pm860x_battery.o 22fe8e81b7SStefan Popaobj-$(CONFIG_CHARGER_ADP5061) += adp5061.o 238c0984e5SSebastian Reichelobj-$(CONFIG_BATTERY_ACT8945A) += act8945a_charger.o 2446c202b5SQuentin Schulzobj-$(CONFIG_BATTERY_AXP20X) += axp20x_battery.o 25744cc304SQuentin Schulzobj-$(CONFIG_CHARGER_AXP20X) += axp20x_ac_power.o 26874b2adbSTony Lindgrenobj-$(CONFIG_BATTERY_CPCAP) += cpcap-battery.o 27b4c7715cSTobias Schrammobj-$(CONFIG_BATTERY_CW2015) += cw2015_battery.o 288c0984e5SSebastian Reichelobj-$(CONFIG_BATTERY_DS2760) += ds2760_battery.o 298c0984e5SSebastian Reichelobj-$(CONFIG_BATTERY_DS2780) += ds2780_battery.o 308c0984e5SSebastian Reichelobj-$(CONFIG_BATTERY_DS2781) += ds2781_battery.o 318c0984e5SSebastian Reichelobj-$(CONFIG_BATTERY_DS2782) += ds2782_battery.o 328c0984e5SSebastian Reichelobj-$(CONFIG_BATTERY_GAUGE_LTC2941) += ltc2941-battery-gauge.o 338c0984e5SSebastian Reichelobj-$(CONFIG_BATTERY_GOLDFISH) += goldfish_battery.o 3453db8858SDavid Lechnerobj-$(CONFIG_BATTERY_LEGO_EV3) += lego_ev3_battery.o 35db9cc848SDmitry Baryshkovobj-$(CONFIG_BATTERY_LENOVO_YOGA_C630) += lenovo_yoga_c630_battery.o 368c0984e5SSebastian Reichelobj-$(CONFIG_BATTERY_PMU) += pmu_battery.o 3729e8142bSBjorn Anderssonobj-$(CONFIG_BATTERY_QCOM_BATTMGR) += qcom_battmgr.o 388c0984e5SSebastian Reichelobj-$(CONFIG_BATTERY_OLPC) += olpc_battery.o 39c8aee3f4SLinus Walleijobj-$(CONFIG_BATTERY_SAMSUNG_SDI) += samsung-sdi-battery.o 408c0984e5SSebastian Reichelobj-$(CONFIG_BATTERY_COLLIE) += collie_battery.o 41fb24ccfbSArtur Rojekobj-$(CONFIG_BATTERY_INGENIC) += ingenic-battery.o 428c0984e5SSebastian Reichelobj-$(CONFIG_BATTERY_IPAQ_MICRO) += ipaq_micro_battery.o 438c0984e5SSebastian Reichelobj-$(CONFIG_BATTERY_WM97XX) += wm97xx_battery.o 448c0984e5SSebastian Reichelobj-$(CONFIG_BATTERY_SBS) += sbs-battery.o 45feb583e3SNicolas Saenz Julienneobj-$(CONFIG_CHARGER_SBS) += sbs-charger.o 46dbc4dedaSKarl-Heinz Schneiderobj-$(CONFIG_MANAGER_SBS) += sbs-manager.o 478c0984e5SSebastian Reichelobj-$(CONFIG_BATTERY_BQ27XXX) += bq27xxx_battery.o 488c0984e5SSebastian Reichelobj-$(CONFIG_BATTERY_BQ27XXX_I2C) += bq27xxx_battery_i2c.o 4955a9db67SAndrew F. Davisobj-$(CONFIG_BATTERY_BQ27XXX_HDQ) += bq27xxx_battery_hdq.o 508c0984e5SSebastian Reichelobj-$(CONFIG_BATTERY_DA9030) += da9030_battery.o 518c0984e5SSebastian Reichelobj-$(CONFIG_BATTERY_DA9052) += da9052-battery.o 528c0984e5SSebastian Reichelobj-$(CONFIG_CHARGER_DA9150) += da9150-charger.o 538c0984e5SSebastian Reichelobj-$(CONFIG_BATTERY_DA9150) += da9150-fg.o 548c0984e5SSebastian Reichelobj-$(CONFIG_BATTERY_MAX17040) += max17040_battery.o 558c0984e5SSebastian Reichelobj-$(CONFIG_BATTERY_MAX17042) += max17042_battery.o 56479b6d04SDimitri Fedrauobj-$(CONFIG_BATTERY_MAX1720X) += max1720x_battery.o 5710e48b7dSAlex A. Mihaylovobj-$(CONFIG_BATTERY_MAX1721X) += max1721x_battery.o 588c0984e5SSebastian Reichelobj-$(CONFIG_BATTERY_RT5033) += rt5033_battery.o 59b7653853SJakob Hauserobj-$(CONFIG_CHARGER_RT5033) += rt5033_charger.o 608c0984e5SSebastian Reichelobj-$(CONFIG_CHARGER_RT9455) += rt9455_charger.o 616f7f70e3SChiaEn Wuobj-$(CONFIG_CHARGER_RT9467) += rt9467-charger.o 624a1a5f67SChiYuan Huangobj-$(CONFIG_CHARGER_RT9471) += rt9471.o 638c0984e5SSebastian Reichelobj-$(CONFIG_BATTERY_TWL4030_MADC) += twl4030_madc_battery.o 648c0984e5SSebastian Reichelobj-$(CONFIG_CHARGER_88PM860X) += 88pm860x_charger.o 658c0984e5SSebastian Reichelobj-$(CONFIG_CHARGER_PCF50633) += pcf50633-charger.o 668c0984e5SSebastian Reichelobj-$(CONFIG_BATTERY_RX51) += rx51_battery.o 67c5b64a99SLinus Walleijobj-$(CONFIG_AB8500_BM) += ab8500_bmdata.o ab8500_charger.o ab8500_fg.o ab8500_btemp.o ab8500_chargalg.o 680c9888e3STony Lindgrenobj-$(CONFIG_CHARGER_CPCAP) += cpcap-charger.o 698c0984e5SSebastian Reichelobj-$(CONFIG_CHARGER_ISP1704) += isp1704_charger.o 708c0984e5SSebastian Reichelobj-$(CONFIG_CHARGER_MAX8903) += max8903_charger.o 718c0984e5SSebastian Reichelobj-$(CONFIG_CHARGER_TWL4030) += twl4030_charger.o 72*b45cdcebSAndreas Kemnadeobj-$(CONFIG_CHARGER_TWL6030) += twl6030_charger.o 738c0984e5SSebastian Reichelobj-$(CONFIG_CHARGER_LP8727) += lp8727_charger.o 748c0984e5SSebastian Reichelobj-$(CONFIG_CHARGER_LP8788) += lp8788-charger.o 758c0984e5SSebastian Reichelobj-$(CONFIG_CHARGER_GPIO) += gpio-charger.o 768c0984e5SSebastian Reichelobj-$(CONFIG_CHARGER_MANAGER) += charger-manager.o 77d7830ce3SMichael Hennerichobj-$(CONFIG_CHARGER_LT3651) += lt3651-charger.o 78cd900f18SMike Looijmansobj-$(CONFIG_CHARGER_LTC4162L) += ltc4162-l-charger.o 798c0984e5SSebastian Reichelobj-$(CONFIG_CHARGER_MAX14577) += max14577_charger.o 809d60595aSAlexander Kurzobj-$(CONFIG_CHARGER_DETECTOR_MAX14656) += max14656_charger_detector.o 81e85e17daSBartosz Golaszewskiobj-$(CONFIG_CHARGER_MAX77650) += max77650-charger.o 828c0984e5SSebastian Reichelobj-$(CONFIG_CHARGER_MAX77693) += max77693_charger.o 83715ecbc1SLuca Ceresoliobj-$(CONFIG_CHARGER_MAX77976) += max77976_charger.o 848c0984e5SSebastian Reichelobj-$(CONFIG_CHARGER_MAX8997) += max8997_charger.o 858c0984e5SSebastian Reichelobj-$(CONFIG_CHARGER_MAX8998) += max8998_charger.o 863bc6d790SSaravanan Sekarobj-$(CONFIG_CHARGER_MP2629) += mp2629_charger.o 870402e8ebSGene Chenobj-$(CONFIG_CHARGER_MT6360) += mt6360_charger.o 88233cb8a4SChiaEn Wuobj-$(CONFIG_CHARGER_MT6370) += mt6370-charger.o 898c0984e5SSebastian Reichelobj-$(CONFIG_CHARGER_QCOM_SMBB) += qcom_smbb.o 90098bce18SNikita Travkinobj-$(CONFIG_BATTERY_PM8916_BMS_VM) += pm8916_bms_vm.o 91f8d7a3d2SNikita Travkinobj-$(CONFIG_CHARGER_PM8916_LBC) += pm8916_lbc.o 928c0984e5SSebastian Reichelobj-$(CONFIG_CHARGER_BQ2415X) += bq2415x_charger.o 938c0984e5SSebastian Reichelobj-$(CONFIG_CHARGER_BQ24190) += bq24190_charger.o 948c0984e5SSebastian Reichelobj-$(CONFIG_CHARGER_BQ24257) += bq24257_charger.o 958c0984e5SSebastian Reichelobj-$(CONFIG_CHARGER_BQ24735) += bq24735-charger.o 9644908459SRicardo Rivera-Matosobj-$(CONFIG_CHARGER_BQ2515X) += bq2515x_charger.o 978c0984e5SSebastian Reichelobj-$(CONFIG_CHARGER_BQ25890) += bq25890_charger.o 985069185fSDan Murphyobj-$(CONFIG_CHARGER_BQ25980) += bq25980_charger.o 9932e4978bSRicardo Rivera-Matosobj-$(CONFIG_CHARGER_BQ256XX) += bq256xx_charger.o 10011cb8da0SChris Morganobj-$(CONFIG_CHARGER_RK817) += rk817_charger.o 1018c0984e5SSebastian Reichelobj-$(CONFIG_CHARGER_SMB347) += smb347-charger.o 1028c0984e5SSebastian Reichelobj-$(CONFIG_CHARGER_TPS65090) += tps65090-charger.o 1038c0984e5SSebastian Reichelobj-$(CONFIG_CHARGER_TPS65217) += tps65217_charger.o 1048c0984e5SSebastian Reichelobj-$(CONFIG_AXP288_FUEL_GAUGE) += axp288_fuel_gauge.o 1058c0984e5SSebastian Reichelobj-$(CONFIG_AXP288_CHARGER) += axp288_charger.o 106c6ed48efSThomas Weißschuhobj-$(CONFIG_CHARGER_CROS_CONTROL) += cros_charge-control.o 107f68b883eSSameer Nandaobj-$(CONFIG_CHARGER_CROS_USBPD) += cros_usbpd-charger.o 10856d629afSDaisuke Nojiriobj-$(CONFIG_CHARGER_CROS_PCHG) += cros_peripheral_charger.o 1091c3d7b03SBaolin Wangobj-$(CONFIG_CHARGER_SC2731) += sc2731_charger.o 110195ca170SBaolin Wangobj-$(CONFIG_FUEL_GAUGE_SC27XX) += sc27xx_fuel_gauge.o 1119a2688e4SAndrey Smirnovobj-$(CONFIG_CHARGER_UCS1002) += ucs1002_power.o 1120902f836SMatti Vaittinenobj-$(CONFIG_CHARGER_BD99954) += bd99954-charger.o 1133f57fe28SNick Crewsobj-$(CONFIG_CHARGER_WILCO) += wilco-charger.o 1141426dffaSAndreas Kemnadeobj-$(CONFIG_RN5T618_POWER) += rn5t618_power.o 115c82a2fbeSDmitry Osipenkoobj-$(CONFIG_BATTERY_ACER_A500) += acer_a500_battery.o 116167f77f7SMaximilian Luzobj-$(CONFIG_BATTERY_SURFACE) += surface_battery.o 117e61ffb34SMaximilian Luzobj-$(CONFIG_CHARGER_SURFACE) += surface_charger.o 118f059b46eSHans de Goedeobj-$(CONFIG_BATTERY_UG3105) += ug3105_battery.o 1198648aeb5SCaleb Connollyobj-$(CONFIG_CHARGER_QCOM_SMB2) += qcom_pmi8998_charger.o 120c75f4bf6SKonrad Dybcioobj-$(CONFIG_FUEL_GAUGE_MM8013) += mm8013.o 121