#VERSION_CFG := ISP8000NANO_V1802
#KERNEL :=/opt/vsi_isp_kernel_tree/4.8.0-41-generic-x86/build
KERNEL :=/lib/modules/$(shell uname -r)/build

EXTRA_CFLAGS += -DWITH_VVCAM
EXTRA_CFLAGS += -DWITH_VVCAM_DUAL

EXTRA_CFLAGS += -DVVCSI0_BASE=0xDE200000
EXTRA_CFLAGS += -DVVCSI1_BASE=0xDE300000
EXTRA_CFLAGS += -DVVCSI_SIZE=0x00200000

EXTRA_CFLAGS += -DVVCAM_I2C0_BASE=0xDE3080f0
EXTRA_CFLAGS += -DVVCAM_I2C1_BASE=0xDE3080f4
EXTRA_CFLAGS += -DVVCAM_I2C_SIZE=0x00000004

EXTRA_CFLAGS += -DVVSENSOR_I2C_BUS0=8
EXTRA_CFLAGS += -DVVSENSOR_I2C_BUS1=9


ifeq ($(VERSION_CFG), ISP8000_V2009)
EXTRA_CFLAGS += -DVVISP0_BASE=0xDE600000
EXTRA_CFLAGS += -DVVISP1_BASE=0xDE700000  
else
EXTRA_CFLAGS += -DVVISP0_BASE=0xDE000000
EXTRA_CFLAGS += -DVVISP1_BASE=0xDE100000  
endif
EXTRA_CFLAGS += -DISP_REG_SIZE=0x00010000

EXTRA_CFLAGS += -DDWE_REG_BASE=0xDE380C00
EXTRA_CFLAGS += -DDWE_REG_SIZE=0x00010000
EXTRA_CFLAGS += -DDWE_REG_RESET=0xDE308250
EXTRA_CFLAGS += -DVSE_REG_BASE=0xDE380000
EXTRA_CFLAGS += -DVSE_REG_SIZE=0x00010000
EXTRA_CFLAGS += -DVSE_REG_RESET=0xDE308250


EXTRA_CFLAGS += -DRESERVED_MEM_BASE=0x10000000
EXTRA_CFLAGS += -DRESERVED_MEM_SIZE=0x10000000

EXTRA_CFLAGS += -DVVCTRL_BASE=0xDE308000
EXTRA_CFLAGS += -DVVCTRL_SIZE=0x00001000

EXTRA_CFLAGS += -DISP_HW_NUMBER=1
EXTRA_CFLAGS += -DUSE_FPGA
EXTRA_CFLAGS += -D$(VERSION_CFG)

#SENSR0_TYPE := ov2775
#SENSR1_TYPE := ov2775

SENSR0_TYPE := ov5693
SENSR1_TYPE := ov5693

PLATFORM    := gen6

