blob: ccc7e92972b0d7ad4fea600f82a3e5263c0e5dd3 [file] [log] [blame]
Aparna Mallavarapuca676882015-01-19 20:39:06 +05301LOCAL_DIR := $(GET_LOCAL_DIR)
2
3INCLUDES += -I$(LOCAL_DIR)/include -I$(LK_TOP_DIR)/platform/msm_shared
Padmanabhan Komanduruc7825c62015-04-10 12:57:15 -07004INCLUDES += -I$(LK_TOP_DIR)/dev/gcdb/display -I$(LK_TOP_DIR)/dev/gcdb/display/include
Reut Zysman408817b2015-08-09 19:20:09 +03005ifeq ($(ENABLE_MDTP_SUPPORT),1)
6INCLUDES += -I$(LK_TOP_DIR)/app/aboot
7endif
Aparna Mallavarapuca676882015-01-19 20:39:06 +05308
9PLATFORM := msm8952
10
11MEMBASE := 0x8F600000 # SDRAM
Rami Burstein9c0600f2015-06-22 18:50:57 +030012MEMSIZE := 0x00300000 # 3MB
Aparna Mallavarapuca676882015-01-19 20:39:06 +053013
14BASE_ADDR := 0x80000000
Parth Dixit80b58442016-05-17 10:54:09 +053015SCRATCH_ADDR := 0xA0100000
Parth Dixit70623202016-12-21 15:45:27 +053016SCRATCH_ADDR_512 := 0x91400000
17
18SCRATCH_SIZE := 511
19SCRATCH_SIZE_512 := 234
Aparna Mallavarapuca676882015-01-19 20:39:06 +053020
Padmanabhan Komanduruc7825c62015-04-10 12:57:15 -070021DEFINES += DISPLAY_TYPE_MIPI=1
22DEFINES += DISPLAY_TYPE_DSI6G=1
23
Parth Dixit16fd62a2015-06-17 19:34:23 +053024DEFINES += PMI_CONFIGURED=1
25
Aparna Mallavarapuca676882015-01-19 20:39:06 +053026MODULES += \
27 dev/keys \
Aparna Mallavarapuca676882015-01-19 20:39:06 +053028 lib/ptable \
29 dev/pmic/pm8x41 \
Matthew Qin47dfdb72015-06-10 21:29:11 +080030 dev/qpnp_haptic \
31 dev/vib \
Aparna Mallavarapufa5f8a72015-03-31 06:21:36 +053032 lib/libfdt \
Padmanabhan Komanduru9d49f892015-04-10 12:58:46 -070033 dev/qpnp_wled \
lijuang3606df82015-09-02 21:14:43 +080034 dev/pmic/pmi8994 \
Parth Dixitba68b552015-09-16 11:46:55 +053035 dev/pmic/fgsram \
Padmanabhan Komanduru9d49f892015-04-10 12:58:46 -070036 dev/gcdb/display
Aparna Mallavarapuca676882015-01-19 20:39:06 +053037
38DEFINES += \
39 MEMSIZE=$(MEMSIZE) \
40 MEMBASE=$(MEMBASE) \
41 BASE_ADDR=$(BASE_ADDR) \
Parth Dixit70623202016-12-21 15:45:27 +053042 SCRATCH_ADDR=$(SCRATCH_ADDR) \
43 SCRATCH_ADDR_512=$(SCRATCH_ADDR_512) \
44 SCRATCH_SIZE=$(SCRATCH_SIZE) \
45 SCRATCH_SIZE_512=$(SCRATCH_SIZE_512)
46
Aparna Mallavarapuca676882015-01-19 20:39:06 +053047
48
49OBJS += \
50 $(LOCAL_DIR)/init.o \
Padmanabhan Komanduru9d49f892015-04-10 12:58:46 -070051 $(LOCAL_DIR)/meminfo.o \
52 $(LOCAL_DIR)/target_display.o \
53 $(LOCAL_DIR)/oem_panel.o
Aparna Mallavarapufa5f8a72015-03-31 06:21:36 +053054ifeq ($(ENABLE_SMD_SUPPORT),1)
55OBJS += \
56 $(LOCAL_DIR)/regulator.o
57endif
Reut Zysman408817b2015-08-09 19:20:09 +030058ifeq ($(ENABLE_MDTP_SUPPORT),1)
59OBJS += \
Reut Zysmanbd6c6872015-08-26 17:36:10 +030060 $(LOCAL_DIR)/mdtp_defs.o
Reut Zysman408817b2015-08-09 19:20:09 +030061endif