blob: ed6bae04a1a79519b1a465f75ca867496a211b0e [file] [log] [blame]
LOCAL_DIR := $(GET_LOCAL_DIR)
INCLUDES += -I$(LOCAL_DIR)/include -I$(LK_TOP_DIR)/platform/msm_shared
INCLUDES += -I$(LK_TOP_DIR)/dev/gcdb/display -I$(LK_TOP_DIR)/dev/gcdb/display/include
ifeq ($(ENABLE_MDTP_SUPPORT),1)
INCLUDES += -I$(LK_TOP_DIR)/app/aboot
endif
PLATFORM := msm8996
MEMBASE := 0x91D00000 # SDRAM
MEMSIZE := 0x00400000 # 4MB
BASE_ADDR := 0x0000000
SCRATCH_ADDR := 0x92300000
SCRATCH_SIZE := 733
KERNEL_ADDR := 0x80000000
KERNEL_SIZE := 88
# LPAE supports only 32 virtual address, L1 pt size is 4
L1_PT_SZ := 4
L2_PT_SZ := 3
DEFINES += PMI_CONFIGURED=1
ifeq ($(DISPLAY_SCREEN),0)
DEFINES += DISPLAY_SPLASH_SCREEN=0
else
ifeq ($(ENABLE_DISPLAY),1)
DEFINES += ENABLE_DISPLAY=1
DEFINES += DISPLAY_SPLASH_SCREEN=1
endif
endif
DEFINES += DISPLAY_TYPE_MIPI=1
DEFINES += DISPLAY_TYPE_DSI6G=1
MODULES += \
dev/keys \
dev/pmic/pm8x41 \
dev/qpnp_haptic \
dev/vib \
dev/qpnp_wled \
dev/qpnp_led \
dev/gcdb/display \
dev/pmic/pmi8994 \
lib/ptable \
lib/libfdt
DEFINES += \
MEMSIZE=$(MEMSIZE) \
MEMBASE=$(MEMBASE) \
BASE_ADDR=$(BASE_ADDR) \
TAGS_ADDR=$(TAGS_ADDR) \
RAMDISK_ADDR=$(RAMDISK_ADDR) \
SCRATCH_ADDR=$(SCRATCH_ADDR) \
SCRATCH_SIZE=$(SCRATCH_SIZE) \
L1_PT_SZ=$(L1_PT_SZ) \
L2_PT_SZ=$(L2_PT_SZ)
OBJS += \
$(LOCAL_DIR)/init.o \
$(LOCAL_DIR)/meminfo.o \
$(LOCAL_DIR)/target_display.o \
$(LOCAL_DIR)/oem_panel.o \
ifeq ($(ENABLE_GLINK_SUPPORT),1)
OBJS += \
$(LOCAL_DIR)/regulator.o
endif
ifeq ($(ENABLE_MDTP_SUPPORT),1)
OBJS += \
$(LOCAL_DIR)/mdtp_defs.o
endif