Skip to content

Commit

Permalink
Kernel: Xiaomi kernel changes for Redmi Note 12 Turbo Android T
Browse files Browse the repository at this point in the history
The Patch based on QCOM release TAG:LA.VENDOR.1.0.r1-19000-r2.0.r1_00029.0
The kernel config file used is marble_tuivm.config

Signed-off-by: 贾圣胤 <[email protected]>
Change-Id: I434717dd29d2bdd6ea42f3a14f052aa7a53ebeb9
  • Loading branch information
Jshengyin committed Jun 2, 2023
1 parent 688c504 commit 48952ed
Show file tree
Hide file tree
Showing 443 changed files with 145,540 additions and 1,471 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,6 @@ arch/arm/boot/dts/vendor

# Documentation toolchain
sphinx_*/

# Xiaomi Add
drivers/misc/hwid/
13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1423,11 +1423,14 @@ endif
# needs to be updated, so this check is forced on all builds

uts_len := 64
ifneq (,$(BUILD_NUMBER))
UTS_RELEASE=$(KERNELRELEASE)-ab$(BUILD_NUMBER)
else
UTS_RELEASE=$(KERNELRELEASE)
endif

#ifneq (,$(BUILD_NUMBER))
# UTS_RELEASE=$(KERNELRELEASE)-ab$(BUILD_NUMBER)
#else
# UTS_RELEASE=$(KERNELRELEASE)
#endif
UTS_RELEASE=$(KERNELRELEASE)

define filechk_utsrelease.h
if [ `echo -n "$(UTS_RELEASE)" | wc -c ` -gt $(uts_len) ]; then \
echo '"$(UTS_RELEASE)" exceeds $(uts_len) characters' >&2; \
Expand Down
58 changes: 7 additions & 51 deletions android/abi_gki_aarch64_xiaomi
Original file line number Diff line number Diff line change
Expand Up @@ -11,57 +11,13 @@
i2c_smbus_write_byte_data

#required by memory module
blk_execute_rq
blk_rq_map_kern
scsi_device_lookup
scsi_host_lookup
scsi_host_put
ufshcd_read_desc_param
utf16s_to_utf8s
async_schedule_node
blk_ksm_register
blk_ksm_reprogram_all_keys
blk_mq_alloc_tag_set
blk_mq_init_queue
blk_mq_tagset_busy_iter
bsg_job_done
bsg_remove_queue
bsg_setup_queue
dev_pm_opp_remove
scsi_add_host_with_dma
scsi_block_requests
scsi_dma_unmap
scsi_is_host_device
scsi_remove_host
scsi_report_bus_reset
scsi_scan_host
scsi_unblock_requests
scsi_change_queue_depth
scsi_print_command
scsi_dma_map
scsi_host_alloc
scsi_normalize_sense
sg_copy_from_buffer
sg_copy_to_buffer
ufshcd_alloc_host
ufshcd_config_pwr_mode
ufshcd_dealloc_host
ufshcd_hba_enable
ufshcd_make_hba_operational
ufshcd_map_desc_id_to_length
ufshcd_query_attr_retry
ufshcd_query_flag_retry
ufshcd_update_evt_hist
wait_for_completion_io_timeout
__scsi_add_device
__scsi_execute
blk_mq_free_tag_set
blk_queue_update_dma_alignment
blk_queue_update_dma_pad
blk_ksm_get_slot_idx
mempool_resize
mempool_alloc_pages
mempool_free_pages
blk_execute_rq
blk_rq_map_kern
scsi_device_lookup
scsi_host_lookup
scsi_host_put
ufshcd_read_desc_param
utf16s_to_utf8s

#required by cs35l41 module
regmap_raw_write_async
Expand Down
7 changes: 7 additions & 0 deletions arch/arm64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2068,3 +2068,10 @@ source "arch/arm64/gunyah/Kconfig"
if CRYPTO
source "arch/arm64/crypto/Kconfig"
endif

config FACTORY_BUILD
bool "distiguish factory version from dev version"
default n
help
This macro will be defined when build factory version. It is used to
distinguish factory and dev codes in kernel.
12 changes: 12 additions & 0 deletions arch/arm64/Kconfig.platforms
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,12 @@ config ARCH_SHIMA
SHIMA chipset. If you do not wish to build a kernel that
runs on this chipset or if you are unsure, say 'N' here.

config WL2866D
bool "Enable Support for ingres camera driver"
depends on ARCH_QCOM
help
This enable support for ingres camera driver

config ARCH_WAIPIO
bool "Enable Support for Qualcomm Technologies, Inc. WAIPIO"
depends on ARCH_QCOM
Expand Down Expand Up @@ -417,4 +423,10 @@ config ARCH_ZYNQMP
help
This enables support for Xilinx ZynqMP Family

config S12B
bool "Enable Support for zizhan camera driver"
depends on ARCH_QCOM
help
This enable support for zizhan camera driver

endmenu
2 changes: 1 addition & 1 deletion arch/arm64/configs/gki_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ CONFIG_SCSI_UFS_DWC_TC_PLATFORM=y
CONFIG_SCSI_UFS_HISI=y
CONFIG_SCSI_UFS_BSG=y
CONFIG_SCSI_UFS_CRYPTO=y
CONFIG_SCSI_UFS_HPB=y
# CONFIG_SCSI_UFS_HPB is not set
CONFIG_MD=y
CONFIG_BLK_DEV_DM=y
CONFIG_DM_CRYPT=y
Expand Down
Loading

0 comments on commit 48952ed

Please sign in to comment.