git-subtree-dir: qcom/opensource/touch-drivers git-subtree-mainline:51ff30338b
git-subtree-split:0abb70a15b
Change-Id: repo: https://git.codelinaro.org/clo/la/platform/vendor/opensource/touch-drivers tag: LA.VENDOR.14.3.0.r1-17300-lanai.QSSI15.0
126 lines
3.5 KiB
Python
126 lines
3.5 KiB
Python
load(":touch_modules.bzl", "touch_driver_modules")
|
|
load(":touch_modules_build.bzl", "define_target_variant_modules")
|
|
load("//msm-kernel:target_variants.bzl", "get_all_la_variants", "get_all_le_variants", "get_all_lxc_variants")
|
|
|
|
def define_pineapple(t,v):
|
|
define_target_variant_modules(
|
|
target = t,
|
|
variant = v,
|
|
registry = touch_driver_modules,
|
|
modules = [
|
|
"nt36xxx-i2c",
|
|
"atmel_mxt_ts",
|
|
"dummy_ts",
|
|
"goodix_ts",
|
|
"focaltech_fts"
|
|
],
|
|
config_options = [
|
|
"TOUCH_DLKM_ENABLE",
|
|
"CONFIG_ARCH_PINEAPPLE",
|
|
"CONFIG_MSM_TOUCH",
|
|
"CONFIG_TOUCHSCREEN_GOODIX_BRL",
|
|
"CONFIG_TOUCHSCREEN_NT36XXX_I2C",
|
|
"CONFIG_TOUCHSCREEN_ATMEL_MXT",
|
|
"CONFIG_TOUCHSCREEN_DUMMY",
|
|
"CONFIG_TOUCH_FOCALTECH"
|
|
],
|
|
)
|
|
|
|
def define_blair(t,v):
|
|
define_target_variant_modules(
|
|
target = t,
|
|
variant = v,
|
|
registry = touch_driver_modules,
|
|
modules = [
|
|
"nt36xxx-i2c",
|
|
"goodix_ts",
|
|
"focaltech_fts",
|
|
"synaptics_tcm_ts"
|
|
],
|
|
config_options = [
|
|
"TOUCH_DLKM_ENABLE",
|
|
"CONFIG_ARCH_BLAIR",
|
|
"CONFIG_MSM_TOUCH",
|
|
"CONFIG_TOUCHSCREEN_NT36XXX_I2C",
|
|
"CONFIG_TOUCHSCREEN_GOODIX_BRL",
|
|
"CONFIG_TOUCH_FOCALTECH",
|
|
"CONFIG_TOUCHSCREEN_SYNAPTICS_TCM"
|
|
],
|
|
)
|
|
|
|
def define_pitti(t,v):
|
|
define_target_variant_modules(
|
|
target = t,
|
|
variant = v,
|
|
registry = touch_driver_modules,
|
|
modules = [
|
|
"focaltech_fts",
|
|
"goodix_ts"
|
|
],
|
|
config_options = [
|
|
"TOUCH_DLKM_ENABLE",
|
|
"CONFIG_ARCH_PITTI",
|
|
"CONFIG_MSM_TOUCH",
|
|
"CONFIG_TOUCH_FOCALTECH",
|
|
"CONFIG_TOUCHSCREEN_GOODIX_BRL"
|
|
],
|
|
)
|
|
|
|
def define_monaco(t,v):
|
|
define_target_variant_modules(
|
|
target = t,
|
|
variant = v,
|
|
registry = touch_driver_modules,
|
|
modules = [
|
|
"glink_comm",
|
|
"pt_ts",
|
|
"pt_i2c",
|
|
"pt_device_access",
|
|
"pt_debug",
|
|
"raydium_ts",
|
|
],
|
|
config_options = [
|
|
"TOUCH_DLKM_ENABLE",
|
|
"CONFIG_ARCH_MONACO",
|
|
"CONFIG_MSM_TOUCH",
|
|
"CONFIG_TOUCHSCREEN_MSM_GLINK",
|
|
"CONFIG_TOUCHSCREEN_PARADE",
|
|
"CONFIG_TOUCHSCREEN_PARADE_DEVICETREE_SUPPORT",
|
|
"CONFIG_TOUCHSCREEN_PARADE_I2C",
|
|
"CONFIG_TOUCHSCREEN_PARADE_DEVICE_ACCESS",
|
|
"CONFIG_TOUCHSCREEN_PARADE_BUTTON",
|
|
"CONFIG_TOUCHSCREEN_PARADE_PROXIMITY",
|
|
"CONFIG_TOUCHSCREEN_PARADE_DEBUG_MDL",
|
|
"CONFIG_TOUCHSCREEN_RM_TS",
|
|
],
|
|
)
|
|
|
|
def define_volcano(t,v):
|
|
define_target_variant_modules(
|
|
target = t,
|
|
variant = v,
|
|
registry = touch_driver_modules,
|
|
modules = [
|
|
"goodix_ts"
|
|
],
|
|
config_options = [
|
|
"TOUCH_DLKM_ENABLE",
|
|
"CONFIG_ARCH_VOLCANO",
|
|
"CONFIG_MSM_TOUCH",
|
|
"CONFIG_TOUCHSCREEN_GOODIX_BRL"
|
|
],
|
|
)
|
|
|
|
def define_touch_target():
|
|
for (t, v) in get_all_la_variants() + get_all_le_variants() + get_all_lxc_variants():
|
|
if t == "blair":
|
|
define_blair(t, v)
|
|
elif t == "pitti":
|
|
define_pitti(t, v)
|
|
elif t == "monaco":
|
|
define_monaco(t, v)
|
|
elif t == "volcano":
|
|
define_volcano(t, v)
|
|
else:
|
|
define_pineapple(t, v)
|