power: Add apq8084 specific changes

Added compilation flag for power-8084.c in
makefile and detection of apq8084 soc id in
power.c.

Change-Id: I00e8e18f6de4ee7b38269e4bf565954db46148c5
This commit is contained in:
Dilip Gudlur 2014-01-15 14:24:45 -08:00
parent 4ab9ceeece
commit 14f858aa20
2 changed files with 5 additions and 1 deletions

View File

@ -23,6 +23,10 @@ ifeq ($(call is-board-platform-in-list, msm8610), true)
LOCAL_SRC_FILES += power-8610.c
endif
ifeq ($(call is-board-platform-in-list, apq8084), true)
LOCAL_SRC_FILES += power-8084.c
endif
ifeq ($(TARGET_USES_INTERACTION_BOOST),true)
LOCAL_CFLAGS += -DINTERACTION_BOOST
endif

View File

@ -74,7 +74,7 @@ static void power_init(struct power_module *module)
ALOGW("Unable to read soc_id");
} else {
int soc_id = atoi(buf);
if (soc_id == 194 || (soc_id >= 208 && soc_id <= 218)) {
if (soc_id == 194 || (soc_id >= 208 && soc_id <= 218) || soc_id == 178) {
display_boost = 1;
}
}