r8q: Squashed commit of r8q decommonization

Losing my SSD caused some commits to be lost. Luckly, proprietary-files.txt was already pushed.

This message will shortly list the changes included in this commit

* Decommonization for r8qxx and r8qxxx
* Blobbed secure element HAL
* Upgraded secure element 1.2 HAL from r8qxxx
* Removal of WCNSS_qcom_cfg.ini . Moved to device tree long time ago.
This commit is contained in:
ata-kaner
2024-01-28 17:24:07 +03:00
parent 798311fabf
commit 4760d2d219
1480 changed files with 1597 additions and 3256 deletions
+45
View File
@@ -0,0 +1,45 @@
// Automatically generated file. DO NOT MODIFY
//
// This file is generated by device/samsung/r8qxx/setup-makefiles.sh
soong_namespace {
imports: [
"vendor/samsung/r8q-common",
],
}
cc_prebuilt_library_shared {
name: "ese_spi_nxp",
owner: "samsung",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: ["proprietary/vendor/lib64/ese_spi_nxp.so"],
},
},
compile_multilib: "64",
check_elf_files: false,
prefer: true,
soc_specific: true,
}
cc_prebuilt_binary {
name: "android.hardware.secure_element@1.0-service",
owner: "samsung",
target: {
android_arm64: {
srcs: ["proprietary/vendor/bin/hw/android.hardware.secure_element@1.0-service"],
},
},
compile_multilib: "64",
check_elf_files: false,
strip: {
none: true,
},
prefer: true,
relative_install_path: "hw",
soc_specific: true,
}
+9
View File
@@ -0,0 +1,9 @@
# Automatically generated file. DO NOT MODIFY
#
# This file is generated by device/samsung/r8qxx/setup-makefiles.sh
LOCAL_PATH := $(call my-dir)
ifeq ($(TARGET_DEVICE),r8qxx)
endif
+4
View File
@@ -0,0 +1,4 @@
# Automatically generated file. DO NOT MODIFY
#
# This file is generated by device/samsung/r8qxx/setup-makefiles.sh
+88
View File
@@ -0,0 +1,88 @@
##This file needs to be pushed into /vendor/etc/libese-nxp.conf
###############################################################################
# Application options
SE_DEBUG_ENABLED=1
#Timeout in secs
NXP_SWP_RD_TAG_OP_TIMEOUT=0xFF
#WTX Count in secs
NXP_WTX_COUNT_VALUE=180
#Max WTX Count in OSU mode in secs
NXP_OSU_MAX_WTX_COUNT=60
#Delay(us) to recover if invalid data received
RNACK_RETRY_DELAY=7000
# PN67T_PWR_SCHEME 0x01
# PN80T_LEGACY_PWR_SCHEME 0x02
# PN80T_EXT_PMU_SCHEME 0x03
NXP_POWER_SCHEME=0x02
# For SOF = 0x5A 0x01
# For SOF = 0x00 0x02
NXP_SOF_WRITE=0x01
#SPI Thorughput measurement log enabled(1)/disabled(0) in kernel
NXP_TP_MEASUREMENT=0x00
#Enable/Disable interface reset as part of SPI open
NXP_SPI_INTF_RST_ENABLE=0x01
###############################################################################
# SPI WRITE TIMEOUT for RF event synchronization
NXP_SPI_WRITE_TIMEOUT=0x14
###############################################################################
# SPI Device Node name
NXP_ESE_DEV_NODE="/dev/p61"
#MAX NO OF R_NACK RETRY ALLOWED IN CASE OF CRC FAILURE
NXP_MAX_RNACK_RETRY=0x03
NXP_VISO_DPD_ENABLED=0x01
#NXP_NAD_POLL_RETRY_TIME is in 100's of us
# e.g. 0x05 --> 500 us dealy
NXP_NAD_POLL_RETRY_TIME=0x05
###############################################################################
# P61 interface options for JCOP Download
# NFC 0x01
# SPI 0x02
NXP_P61_JCOP_DEFAULT_INTERFACE=0x01
###############################################################################
# IFS adjustment configuration value of IFSD for eSE
# Any value set which is greater than IFSC value will be R-NACKed from JCOP
# Default IFSC: 0x00FE = (0x0102 - 0x4(header))(As agreed with JCOP)
#
NXP_ESE_IFSD_VALUE=0x0200
###############################################################################
# IFS adjustment configuration value of IFSD for eUICC
# Any value set which is greater than IFSC value will be R-NACKed from JCOP
# Default IFSC: 0x00FE = (0x0102 - 0x4(header))(As agreed with JCOP)
#
NXP_EUICC_IFSD_VALUE=0x0200
###############################################################################
# Interface to perform the eSE cold reset
# Possible value can be 0x00 or 0x01
# 0x00 = ESE_HAL
# 0x01 = NFC_HAL
NXP_P61_COLD_RESET_INTERFACE=0x00
###############################################################################
# Assign terminal number to each interface based on system config
NXP_SPI_SE_TERMINAL_NUM="eSE1"
###############################################################################
# Identify the CHIP/OS version for which this config file is targeted
# Possible value can be as below
# 0x01 = JCOP_4_0
# 0x02 = JCOP_5_1
# 0x03 = JCOP_5_2
NXP_OS_VERSION=0x03
###############################################################################
Binary file not shown.
Binary file not shown.
+14
View File
@@ -0,0 +1,14 @@
# Automatically generated file. DO NOT MODIFY
#
# This file is generated by device/samsung/r8qxx/setup-makefiles.sh
PRODUCT_SOONG_NAMESPACES += \
vendor/samsung/r8qxx
PRODUCT_COPY_FILES += \
vendor/samsung/r8qxx/proprietary/vendor/etc/libese-nxp.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libese-nxp.conf \
vendor/samsung/r8qxx/proprietary/vendor/firmware/nfc/libsn100u_fw.so:$(TARGET_COPY_OUT_VENDOR)/firmware/nfc/libsn100u_fw.so
PRODUCT_PACKAGES += \
ese_spi_nxp \
android.hardware.secure_element@1.0-service