Aparna Mallavarapu | 01fc00a | 2015-06-01 20:37:05 +0530 | [diff] [blame] | 1 | LOCAL_DIR := $(GET_LOCAL_DIR) |
| 2 | |
| 3 | INCLUDES += -I$(LOCAL_DIR)/include -I$(LK_TOP_DIR)/platform/msm_shared |
Amit Blay | a592602 | 2016-02-09 15:59:54 +0200 | [diff] [blame] | 4 | |
Jayant Shekhar | a7490f8 | 2016-01-14 11:09:20 +0530 | [diff] [blame] | 5 | INCLUDES += -I$(LK_TOP_DIR)/dev/gcdb/display -I$(LK_TOP_DIR)/dev/gcdb/display/include |
Aparna Mallavarapu | 01fc00a | 2015-06-01 20:37:05 +0530 | [diff] [blame] | 6 | |
Amit Blay | a592602 | 2016-02-09 15:59:54 +0200 | [diff] [blame] | 7 | INCLUDES += -I$(LK_TOP_DIR)/app/aboot |
Amit Blay | a592602 | 2016-02-09 15:59:54 +0200 | [diff] [blame] | 8 | |
Gaurav Nebhwani | 6c945a4 | 2016-02-16 17:26:51 +0530 | [diff] [blame] | 9 | PLATFORM := msm8953 |
Aparna Mallavarapu | 01fc00a | 2015-06-01 20:37:05 +0530 | [diff] [blame] | 10 | |
| 11 | MEMBASE := 0x8F600000 # SDRAM |
Mayank Grover | 028ecda | 2018-01-11 17:16:23 +0530 | [diff] [blame] | 12 | MEMSIZE := 0x00A00000 # 10MB |
Aparna Mallavarapu | 01fc00a | 2015-06-01 20:37:05 +0530 | [diff] [blame] | 13 | |
Mayank Grover | 6128f38 | 2018-04-17 15:06:35 +0530 | [diff] [blame^] | 14 | ifneq (,$(findstring SECURE_CODE_MEM,$(DEFINES))) |
| 15 | MEMRWOFF:= 0x8F700000 # MEMBASE + 1MB(section page size) |
| 16 | DEFINES += MEMRWOFF=$(MEMRWOFF) |
| 17 | endif |
| 18 | |
Aparna Mallavarapu | 01fc00a | 2015-06-01 20:37:05 +0530 | [diff] [blame] | 19 | BASE_ADDR := 0x80000000 |
Parth Dixit | 0b195a4 | 2016-02-01 14:11:38 +0530 | [diff] [blame] | 20 | SCRATCH_ADDR := 0xA0100000 |
Mayank Grover | 028ecda | 2018-01-11 17:16:23 +0530 | [diff] [blame] | 21 | SCRATCH_SIZE := 510 # 510MB |
Aparna Mallavarapu | 01fc00a | 2015-06-01 20:37:05 +0530 | [diff] [blame] | 22 | |
c_wufeng | 5f61f33 | 2016-01-14 16:15:50 +0800 | [diff] [blame] | 23 | DEFINES += PMI_CONFIGURED=1 |
Jayant Shekhar | a7490f8 | 2016-01-14 11:09:20 +0530 | [diff] [blame] | 24 | DEFINES += DISPLAY_TYPE_MIPI=1 |
| 25 | DEFINES += DISPLAY_TYPE_DSI6G=1 |
c_wufeng | 5f61f33 | 2016-01-14 16:15:50 +0800 | [diff] [blame] | 26 | |
Aparna Mallavarapu | 01fc00a | 2015-06-01 20:37:05 +0530 | [diff] [blame] | 27 | MODULES += \ |
| 28 | dev/keys \ |
| 29 | dev/vib \ |
| 30 | lib/ptable \ |
| 31 | dev/pmic/pm8x41 \ |
lijuang | 6f2421d | 2016-02-29 16:52:03 +0800 | [diff] [blame] | 32 | dev/pmic/pmi8994 \ |
c_wufeng | 41310ae | 2016-01-14 17:59:22 +0800 | [diff] [blame] | 33 | dev/qpnp_haptic \ |
Padmanabhan Komanduru | 0104a89 | 2016-01-22 16:58:10 +0530 | [diff] [blame] | 34 | lib/libfdt \ |
| 35 | dev/qpnp_wled \ |
| 36 | dev/gcdb/display |
Aparna Mallavarapu | 01fc00a | 2015-06-01 20:37:05 +0530 | [diff] [blame] | 37 | |
| 38 | DEFINES += \ |
| 39 | MEMSIZE=$(MEMSIZE) \ |
| 40 | MEMBASE=$(MEMBASE) \ |
| 41 | BASE_ADDR=$(BASE_ADDR) \ |
Mayank Grover | 028ecda | 2018-01-11 17:16:23 +0530 | [diff] [blame] | 42 | SCRATCH_ADDR=$(SCRATCH_ADDR) \ |
| 43 | SCRATCH_SIZE=$(SCRATCH_SIZE) |
Aparna Mallavarapu | 01fc00a | 2015-06-01 20:37:05 +0530 | [diff] [blame] | 44 | |
Aparna Mallavarapu | 01fc00a | 2015-06-01 20:37:05 +0530 | [diff] [blame] | 45 | OBJS += \ |
| 46 | $(LOCAL_DIR)/init.o \ |
Padmanabhan Komanduru | 0104a89 | 2016-01-22 16:58:10 +0530 | [diff] [blame] | 47 | $(LOCAL_DIR)/meminfo.o \ |
| 48 | $(LOCAL_DIR)/target_display.o \ |
| 49 | $(LOCAL_DIR)/oem_panel.o |
| 50 | ifeq ($(ENABLE_SMD_SUPPORT),1) |
| 51 | OBJS += \ |
| 52 | $(LOCAL_DIR)/regulator.o |
| 53 | endif |
Amit Blay | a592602 | 2016-02-09 15:59:54 +0200 | [diff] [blame] | 54 | |
| 55 | ifeq ($(ENABLE_MDTP_SUPPORT),1) |
| 56 | OBJS += \ |
| 57 | $(LOCAL_DIR)/mdtp_defs.o |
| 58 | endif |