blob: 01b5c1e46892f0e5f56197067f563d448d046ef4 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001ccflags-$(CONFIG_POWER_SUPPLY_DEBUG) := -DDEBUG
2
3power_supply-y := power_supply_core.o
4power_supply-$(CONFIG_SYSFS) += power_supply_sysfs.o
5#power_supply-$(CONFIG_LEDS_TRIGGERS) += power_supply_leds.o
6
7obj-$(CONFIG_POWER_SUPPLY) += power_supply.o
8
9obj-$(CONFIG_PDA_POWER) += pda_power.o
10obj-$(CONFIG_APM_POWER) += apm_power.o
11obj-$(CONFIG_MAX8925_POWER) += max8925_power.o
12obj-$(CONFIG_WM831X_BACKUP) += wm831x_backup.o
13obj-$(CONFIG_WM831X_POWER) += wm831x_power.o
14obj-$(CONFIG_WM8350_POWER) += wm8350_power.o
15obj-$(CONFIG_TEST_POWER) += test_power.o
16
17obj-$(CONFIG_BATTERY_DS2760) += ds2760_battery.o
18obj-$(CONFIG_BATTERY_DS2780) += ds2780_battery.o
19obj-$(CONFIG_BATTERY_DS2781) += ds2781_battery.o
20obj-$(CONFIG_BATTERY_DS2782) += ds2782_battery.o
21obj-$(CONFIG_BATTERY_PMU) += pmu_battery.o
22obj-$(CONFIG_BATTERY_OLPC) += olpc_battery.o
23obj-$(CONFIG_BATTERY_TOSA) += tosa_battery.o
24obj-$(CONFIG_BATTERY_COLLIE) += collie_battery.o
25obj-$(CONFIG_BATTERY_WM97XX) += wm97xx_battery.o
26obj-$(CONFIG_BATTERY_SBS) += sbs-battery.o
27obj-$(CONFIG_BATTERY_BQ27x00) += bq27x00_battery.o
28obj-$(CONFIG_BATTERY_DA9030) += da9030_battery.o
29obj-$(CONFIG_BATTERY_DA9052) += da9052-battery.o
30obj-$(CONFIG_BATTERY_MAX17040) += max17040_battery.o
31obj-$(CONFIG_BATTERY_MAX17042) += max17042_battery.o
32obj-$(CONFIG_BATTERY_Z2) += z2_battery.o
33obj-$(CONFIG_BATTERY_S3C_ADC) += s3c_adc_battery.o
34obj-$(CONFIG_CHARGER_PCF50633) += pcf50633-charger.o
35obj-$(CONFIG_BATTERY_JZ4740) += jz4740-battery.o
36obj-$(CONFIG_BATTERY_INTEL_MID) += intel_mid_battery.o
37obj-$(CONFIG_AB8500_BM) += ab8500_charger.o ab8500_btemp.o ab8500_fg.o abx500_chargalg.o
38obj-$(CONFIG_CHARGER_ISP1704) += isp1704_charger.o
39obj-$(CONFIG_CHARGER_MAX8903) += max8903_charger.o
40obj-$(CONFIG_CHARGER_TWL4030) += twl4030_charger.o
41obj-$(CONFIG_CHARGER_LP8727) += lp8727_charger.o
42obj-$(CONFIG_CHARGER_GPIO) += gpio-charger.o
43obj-$(CONFIG_CHARGER_MANAGER) += charger-manager.o
44obj-$(CONFIG_CHARGER_MAX8997) += max8997_charger.o
45obj-$(CONFIG_CHARGER_MAX8998) += max8998_charger.o
46obj-$(CONFIG_CHARGER_SMB347) += smb347-charger.o
47obj-$(CONFIG_BATTERY_ANDROID) += android_battery.o
48obj-$(CONFIG_BATTERY_BQ24165) += bq24165_battery.o
49obj-$(CONFIG_CHARGER_ZX234502) += zx234502_charger.o
50obj-$(CONFIG_CHARGER_AW3215) += aw3215_charger.o
51obj-$(CONFIG_CHARGER_SGM40561) += sgm40561_charger.o
52obj-$(CONFIG_CHARGER_XC5071) += xc5071_charger.o
53
54ifeq ($(V3PHONE_TYPE),K318)
55ccflags-y += -D_USE_V3PHONE_TYPE_K318_
56endif
57ifeq ($(V3PHONE_TYPE),C31F)
58ccflags-y += -D_USE_V3PHONE_TYPE_C31F_
59endif
60ifeq ($(V3PHONE_TYPE),XRSD)
61ccflags-y += -D_USE_V3PHONE_TYPE_XRSD_
62endif
63ifeq ($(CONFIG_WIFI_MODULE), xr819)
64ccflags-y += -D_CHARGER_UNNOTIFY_USB_
65endif