blob: 2ac68fb8cdc7f072d2b08e7e73b2c85ee5d5d6f3 [file] [log] [blame]
Aparna Mallavarapu13c50bd2013-10-19 15:06:18 +05301# top level project rules for the msm8916 project
2#
3LOCAL_DIR := $(GET_LOCAL_DIR)
4
5TARGET := msm8916
6
7MODULES += app/aboot
8
vijay kumar110c63d2014-08-28 16:56:39 +05309ifeq ($(TARGET_BUILD_VARIANT),user)
10DEBUG := 0
11else
Aparna Mallavarapu13c50bd2013-10-19 15:06:18 +053012DEBUG := 1
vijay kumar110c63d2014-08-28 16:56:39 +053013endif
14
Abhimanyu Kapur35f75672014-03-26 17:46:57 -070015EMMC_BOOT := 1
Aparna Mallavarapu13c50bd2013-10-19 15:06:18 +053016
17#DEFINES += WITH_DEBUG_DCC=1
Aparna Mallavarapucf8b69d2014-04-03 14:45:12 +053018DEFINES += WITH_DEBUG_LOG_BUF=1
Aparna Mallavarapu13c50bd2013-10-19 15:06:18 +053019DEFINES += WITH_DEBUG_UART=1
20#DEFINES += WITH_DEBUG_FBCON=1
vijay kumar75e9d692015-04-24 16:09:51 +053021DEFINES += ENABLE_FBCON_LOGGING=1
Aparna Mallavarapu13c50bd2013-10-19 15:06:18 +053022DEFINES += DEVICE_TREE=1
23#DEFINES += MMC_BOOT_BAM=1
Aparna Mallavarapuf2a26b52014-04-22 15:13:47 +053024DEFINES += CRYPTO_BAM=1
Aparna Mallavarapu5397d302014-03-06 04:20:43 +053025DEFINES += SPMI_CORE_V2=1
Aparna Mallavarapuf2a26b52014-04-22 15:13:47 +053026DEFINES += BAM_V170=1
Aparna Mallavarapu13c50bd2013-10-19 15:06:18 +053027DEFINES += ABOOT_IGNORE_BOOT_HEADER_ADDRS=1
28
Matthew Qin1ba2fdc2014-04-08 11:34:38 +080029#Enable the feature of long press power on
Matthew Qinf2cb0752014-08-12 15:32:15 +080030DEFINES += LONG_PRESS_POWER_ON=1
Matthew Qin1ba2fdc2014-04-08 11:34:38 +080031
Aparna Mallavarapu13c50bd2013-10-19 15:06:18 +053032#Disable thumb mode
33ENABLE_THUMB := false
Aparna Mallavarapu925434e2014-03-28 17:54:57 +053034ENABLE_PWM_SUPPORT := true
Aparna Mallavarapu831a04c2014-02-27 21:51:45 -080035
36ENABLE_SDHCI_SUPPORT := 1
37
38ifeq ($(ENABLE_SDHCI_SUPPORT),1)
39DEFINES += MMC_SDHCI_SUPPORT=1
40endif
Abhimanyu Kapur35f75672014-03-26 17:46:57 -070041
Matthew Qinb0b31642014-04-08 15:22:01 +080042#enable power on vibrator feature
43ENABLE_PON_VIB_SUPPORT := true
44
Abhimanyu Kapur35f75672014-03-26 17:46:57 -070045ifeq ($(EMMC_BOOT),1)
46DEFINES += _EMMC_BOOT=1
47endif
48
Matthew Qinb0b31642014-04-08 15:22:01 +080049ifeq ($(ENABLE_PON_VIB_SUPPORT),true)
50DEFINES += PON_VIB_SUPPORT=1
51endif
Matthew Qin51bcdad2014-07-11 11:27:58 +080052
53#enable user force reset feature
54DEFINES += USER_FORCE_RESET_SUPPORT=1
Aparna Mallavarapu8eb0e4b2015-03-04 21:15:39 +053055
56#SCM call before entering DLOAD mode
57DEFINES += PLATFORM_USE_SCM_DLOAD=1
lijuangb66cdb42015-03-11 17:00:17 +080058
59#Enable the external reboot functions
vijay kumar75e9d692015-04-24 16:09:51 +053060ENABLE_REBOOT_MODULE := 1
Channagoud Kadabib7dabeb2015-08-05 16:18:27 -070061#Use PON register for reboot reason
62DEFINES += USE_PON_REBOOT_REG=1
lijuang36ffff92015-08-29 16:39:49 +080063
64#enable battery voltage check
65DEFINES += CHECK_BAT_VOLTAGE=1