Skip to content
This repository has been archived by the owner on Dec 28, 2020. It is now read-only.

Commit

Permalink
soc: qcom: Restore OnePlus project_info framework
Browse files Browse the repository at this point in the history
This driver was omitted during initial OEM import because it is,
generally speaking, completely useless and not needed to facilitate
any core device functionality. However, it has recently been
brought to my attention that the sys/project_info/hw_id node is the
mechanism by which OxygenOS identifies McLaren Edition OnePlus 6T
devices and subsequently determines that variant-specific
cosmetic features should be enabled.

Given that project_info is only useful to us in this one highly
niche scenario we should ultimately be able to trim A LOT of fat
from this driver, preserving only the nodes needed to identify
McLaren devices. However, let's ensure that everything is now
functioning as intended for McLaren users before we go monkeying
around any further.

[@0ctobot: Imported from OnePlusOSS/android_kernel_oneplus_sdm845@7a07829]
Signed-off-by: Adam W. Willis <return.of.octobot@gmail.com>
  • Loading branch information
0ctobot committed Oct 9, 2019
1 parent 7416d19 commit 0057ddf
Show file tree
Hide file tree
Showing 4 changed files with 982 additions and 1 deletion.
6 changes: 6 additions & 0 deletions drivers/soc/qcom/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,12 @@ config QSEE_IPC_IRQ_BRIDGE
interrupt from a remote subsystem directed towards Qualcomm
Technologies, Inc. Secure Execution Environment(QSEE).

config PROJECT_INFO
bool "OnePlus hardware detection"
default n
help
Enable proprietary project information framework.

config MSM_JTAGV8
bool "Debug and ETM trace support across power collapse for ARMv8"
default y if CORESIGHT_SOURCE_ETM4X
Expand Down
2 changes: 1 addition & 1 deletion drivers/soc/qcom/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ obj-$(CONFIG_QCOM_SMCINVOKE) += smcinvoke.o
obj-$(CONFIG_QMP_DEBUGFS_CLIENT) += qmp-debugfs-client.o
obj-$(CONFIG_MSM_REMOTEQDSS) += remoteqdss.o
obj-$(CONFIG_QSEE_IPC_IRQ_BRIDGE) += qsee_ipc_irq_bridge.o

obj-$(CONFIG_PROJECT_INFO) += project_info.o
obj-$(CONFIG_QCOM_QDSS_BRIDGE) += qdss_bridge.o
obj-$(CONFIG_MSM_BAM_DMUX) += bam_dmux.o
obj-$(CONFIG_WCNSS_CORE) += wcnss/
Expand Down

0 comments on commit 0057ddf

Please sign in to comment.