blob: 032988e31d2964da4057ebb72d9a7bd873ea1629 [file] [log] [blame]
Aparna Mallavarapu01fc00a2015-06-01 20:37:05 +05301LOCAL_DIR := $(GET_LOCAL_DIR)
2
3INCLUDES += -I$(LOCAL_DIR)/include -I$(LK_TOP_DIR)/platform/msm_shared
Amit Blaya5926022016-02-09 15:59:54 +02004
Jayant Shekhara7490f82016-01-14 11:09:20 +05305INCLUDES += -I$(LK_TOP_DIR)/dev/gcdb/display -I$(LK_TOP_DIR)/dev/gcdb/display/include
Aparna Mallavarapu01fc00a2015-06-01 20:37:05 +05306
Amit Blaya5926022016-02-09 15:59:54 +02007INCLUDES += -I$(LK_TOP_DIR)/app/aboot
Amit Blaya5926022016-02-09 15:59:54 +02008
Gaurav Nebhwani6c945a42016-02-16 17:26:51 +05309PLATFORM := msm8953
Aparna Mallavarapu01fc00a2015-06-01 20:37:05 +053010
11MEMBASE := 0x8F600000 # SDRAM
Mayank Grover028ecda2018-01-11 17:16:23 +053012MEMSIZE := 0x00A00000 # 10MB
Aparna Mallavarapu01fc00a2015-06-01 20:37:05 +053013
Mayank Grover6128f382018-04-17 15:06:35 +053014ifneq (,$(findstring SECURE_CODE_MEM,$(DEFINES)))
15MEMRWOFF:= 0x8F700000 # MEMBASE + 1MB(section page size)
16DEFINES += MEMRWOFF=$(MEMRWOFF)
17endif
18
Aparna Mallavarapu01fc00a2015-06-01 20:37:05 +053019BASE_ADDR := 0x80000000
Parth Dixit0b195a42016-02-01 14:11:38 +053020SCRATCH_ADDR := 0xA0100000
Mayank Grover028ecda2018-01-11 17:16:23 +053021SCRATCH_SIZE := 510 # 510MB
Aparna Mallavarapu01fc00a2015-06-01 20:37:05 +053022
c_wufeng5f61f332016-01-14 16:15:50 +080023DEFINES += PMI_CONFIGURED=1
Jayant Shekhara7490f82016-01-14 11:09:20 +053024DEFINES += DISPLAY_TYPE_MIPI=1
25DEFINES += DISPLAY_TYPE_DSI6G=1
c_wufeng5f61f332016-01-14 16:15:50 +080026
Aparna Mallavarapu01fc00a2015-06-01 20:37:05 +053027MODULES += \
28 dev/keys \
29 dev/vib \
30 lib/ptable \
31 dev/pmic/pm8x41 \
lijuang6f2421d2016-02-29 16:52:03 +080032 dev/pmic/pmi8994 \
c_wufeng41310ae2016-01-14 17:59:22 +080033 dev/qpnp_haptic \
Padmanabhan Komanduru0104a892016-01-22 16:58:10 +053034 lib/libfdt \
35 dev/qpnp_wled \
36 dev/gcdb/display
Aparna Mallavarapu01fc00a2015-06-01 20:37:05 +053037
38DEFINES += \
39 MEMSIZE=$(MEMSIZE) \
40 MEMBASE=$(MEMBASE) \
41 BASE_ADDR=$(BASE_ADDR) \
Mayank Grover028ecda2018-01-11 17:16:23 +053042 SCRATCH_ADDR=$(SCRATCH_ADDR) \
43 SCRATCH_SIZE=$(SCRATCH_SIZE)
Aparna Mallavarapu01fc00a2015-06-01 20:37:05 +053044
Aparna Mallavarapu01fc00a2015-06-01 20:37:05 +053045OBJS += \
46 $(LOCAL_DIR)/init.o \
Padmanabhan Komanduru0104a892016-01-22 16:58:10 +053047 $(LOCAL_DIR)/meminfo.o \
48 $(LOCAL_DIR)/target_display.o \
49 $(LOCAL_DIR)/oem_panel.o
50ifeq ($(ENABLE_SMD_SUPPORT),1)
51OBJS += \
52 $(LOCAL_DIR)/regulator.o
53endif
Amit Blaya5926022016-02-09 15:59:54 +020054
55ifeq ($(ENABLE_MDTP_SUPPORT),1)
56OBJS += \
57 $(LOCAL_DIR)/mdtp_defs.o
58endif