Skip to content

Commit

Permalink
Kernel: Xiaomi kernel changes for Redmi 6Pro and Redmi 6 Pro india An…
Browse files Browse the repository at this point in the history
…droid P.

The Patch based on QualComm release TAG: LA.UM.7.6.r1-02800-89xx.0.
The kernel config file used are sakura-perf_defconfig and sakura-india-perf_defconfig.

Change-Id: Ia8ed70d1062621f416604dc921ae9d81ddf8d097
Signed-off-by: hehao <hehao@xiaomi.com>
  • Loading branch information
mi-code committed Apr 28, 2019
1 parent 7fe5f46 commit 36039a3
Show file tree
Hide file tree
Showing 355 changed files with 193,428 additions and 7,329 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
.*
*.o
*.o.*
*.a
*.s
*.ko
*.so
Expand Down Expand Up @@ -46,7 +45,7 @@ Module.symvers
/vmlinuz
/System.map
/Module.markers

/si
#
# Debian directory (make deb-pkg)
#
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,11 @@ KBUILD_CPPFLAGS += $(KCPPFLAGS)
KBUILD_AFLAGS += $(KAFLAGS)
KBUILD_CFLAGS += $(KCFLAGS)

# Add macro for factory version
ifeq ($(strip $(FACTORY_VERSION_MODE)), true)
KBUILD_CFLAGS += -DFACTORY_VERSION_ENABLE
endif

# Use --build-id when available.
LDFLAGS_BUILD_ID = $(patsubst -Wl$(comma)%,%,\
$(call cc-ldoption, -Wl$(comma)--build-id,))
Expand Down
Binary file added android_dm_verity_release.x509
Binary file not shown.
Binary file added android_dm_verity_test.x509
Binary file not shown.
270 changes: 2 additions & 268 deletions arch/arm/boot/dts/qcom/Makefile
Original file line number Diff line number Diff line change
@@ -1,124 +1,3 @@
dtb-$(CONFIG_ARCH_MSM8996) += msm8996-v2-pmi8994-mtp.dtb \
msm8996-v2-pmi8994-pmk8001-mtp.dtb \
msm8996-v2-pmi8994-pm8004-mtp.dtb \
msm8996-v2-pmi8994-pm8004-pmk8001-mtp.dtb \
msm8996-v2-fluid.dtb \
msm8996-v2-liquid.dtb \
msm8996-v2-dtp.dtb \
msm8996-v3-auto-cdp.dtb \
msm8996-v3-auto-adp.dtb \
msm8996-v3-pmi8994-cdp.dtb \
msm8996-v3-pmi8994-mtp.dtb \
msm8996-v3-pmi8994-pmk8001-cdp.dtb \
msm8996-v3-pmi8994-pmk8001-mtp.dtb \
msm8996-v3-pmi8994-pm8004-cdp.dtb \
msm8996-v3-pmi8994-pm8004-mtp.dtb \
msm8996-v3-pmi8994-pm8004-pmk8001-cdp.dtb \
msm8996-v3-pmi8994-pm8004-pmk8001-mtp.dtb \
msm8996-v3-pmi8996-cdp.dtb \
msm8996-v3-pmi8996-mtp.dtb \
msm8996-v3-pmi8996-pmk8001-cdp.dtb \
msm8996-v3-pmi8996-pmk8001-mtp.dtb \
msm8996-v3-fluid.dtb \
msm8996-v3-liquid.dtb \
msm8996-v3-dtp.dtb \
msm8996-v3-pm8004-mmxf-adp.dtb \
msm8996-v3-pm8004-agave-adp.dtb \
msm8996-v3-pm8004-agave-adp-lite.dtb \
msm8996pro-auto-adp.dtb \
msm8996pro-auto-adp-lite.dtb \
msm8996pro-auto-cdp.dtb \
msm8996pro-pmi8994-cdp.dtb \
msm8996pro-pmi8994-mtp.dtb \
msm8996pro-pmi8994-pmk8001-cdp.dtb \
msm8996pro-pmi8994-pmk8001-mtp.dtb \
msm8996pro-pmi8994-pm8004-cdp.dtb \
msm8996pro-pmi8994-pm8004-mtp.dtb \
msm8996pro-pmi8994-pm8004-pmk8001-cdp.dtb \
msm8996pro-pmi8994-pm8004-pmk8001-mtp.dtb \
msm8996pro-pmi8996-cdp.dtb \
msm8996pro-pmi8996-mtp.dtb \
msm8996pro-pmi8996-pmk8001-cdp.dtb \
msm8996pro-pmi8996-pmk8001-mtp.dtb \
msm8996pro-v1.1-auto-cdp.dtb \
msm8996pro-v1.1-pmi8994-cdp.dtb \
msm8996pro-v1.1-pmi8994-mtp.dtb \
msm8996pro-v1.1-pmi8994-pmk8001-cdp.dtb \
msm8996pro-v1.1-pmi8994-pmk8001-mtp.dtb \
msm8996pro-v1.1-pmi8994-pm8004-cdp.dtb \
msm8996pro-v1.1-pmi8994-pm8004-mtp.dtb \
msm8996pro-v1.1-pmi8994-pm8004-pmk8001-cdp.dtb \
msm8996pro-v1.1-pmi8994-pm8004-pmk8001-mtp.dtb \
msm8996pro-v1.1-pmi8996-cdp.dtb \
msm8996pro-v1.1-pmi8996-mtp.dtb \
msm8996pro-v1.1-pmi8996-pmk8001-cdp.dtb \
msm8996pro-v1.1-pmi8996-pmk8001-mtp.dtb \
apq8096pro-auto-cdp.dtb \
apq8096pro-v1.1-auto-adp.dtb \
apq8096pro-v1.1-auto-adp-lite.dtb \
apq8096pro-liquid.dtb \
apq8096pro-v1.1-auto-cdp.dtb \
apq8096pro-v1.1-pmi8994-cdp.dtb \
apq8096pro-v1.1-pmi8994-mtp.dtb \
apq8096pro-v1.1-pmi8994-pmk8001-cdp.dtb \
apq8096pro-v1.1-pmi8994-pmk8001-mtp.dtb \
apq8096pro-v1.1-pmi8994-pm8004-cdp.dtb \
apq8096pro-v1.1-pmi8994-pm8004-mtp.dtb \
apq8096pro-v1.1-pmi8994-pm8004-pmk8001-cdp.dtb \
apq8096pro-v1.1-pmi8994-pm8004-pmk8001-mtp.dtb \
apq8096pro-v1.1-pmi8996-cdp.dtb \
apq8096pro-v1.1-pmi8996-mtp.dtb \
apq8096pro-v1.1-pmi8996-pmk8001-cdp.dtb \
apq8096pro-v1.1-pmi8996-pmk8001-mtp.dtb \
msm8996-v3.0-pmi8994-cdp.dtb \
msm8996-v3.0-pmi8994-mtp.dtb \
msm8996-v3.0-pmi8994-pm8004-cdp.dtb \
msm8996-v3.0-pmi8994-pm8004-mtp.dtb \
msm8996-v3.0-pmi8994-pm8004-pmk8001-cdp.dtb \
msm8996-v3.0-pmi8994-pmk8001-cdp.dtb \
msm8996-v3.0-pmi8996-cdp.dtb \
msm8996-v3.0-pmi8996-mtp.dtb \
msm8996-v3.0-fluid.dtb \
msm8996-v3.0-liquid.dtb \
msm8996-v3.0-dtp.dtb \
apq8096-v2-pmi8994-mtp.dtb \
apq8096-v2-liquid.dtb \
apq8096-v2-dragonboard.dtb \
apq8096-v2-auto-dragonboard.dtb \
apq8096-v3-pmi8994-cdp.dtb \
apq8096-v3-pmi8994-mtp.dtb \
apq8096-v3-pmi8994-pmk8001-cdp.dtb \
apq8096-v3-pmi8994-pm8004-cdp.dtb \
apq8096-v3-pmi8994-pm8004-pmk8001-cdp.dtb \
apq8096-v3-pmi8996-cdp.dtb \
apq8096-v3-pmi8996-mtp.dtb \
apq8096-v3-liquid.dtb \
apq8096-v3-dragonboard.dtb \
apq8096-v3-mediabox.dtb \
apq8096-v3-sbc.dtb \
apq8096-v3-auto-dragonboard.dtb \
apq8096-v3-auto-adp.dtb \
apq8096-v3-auto-cdp.dtb \
apq8096-v3-drone.dtb \
apq8096-v3.0-pmi8994-cdp.dtb \
apq8096-v3.0-pmi8994-mtp.dtb \
apq8096-v3.0-pmi8994-pm8004-cdp.dtb \
apq8096-v3.0-pmi8994-pm8004-pmk8001-cdp.dtb \
apq8096-v3.0-pmi8994-pmk8001-cdp.dtb \
apq8096-v3.0-pmi8996-cdp.dtb \
apq8096-v3.0-pmi8996-mtp.dtb \
apq8096-v3.0-liquid.dtb \
apq8096-v3.0-dragonboard.dtb \
apq8096-v3-pmi8994-mdm9x55-i2s-cdp.dtb \
apq8096-v3-pmi8994-pm8004-mdm9x55-i2s-cdp.dtb \
apq8096-v3-pmi8994-pm8004-pmk8001-mdm9x55-i2s-cdp.dtb \
apq8096-v3-pmi8994-pmk8001-mdm9x55-i2s-cdp.dtb \
apq8096-v3-pmi8996-mdm9x55-i2s-cdp.dtb \
apq8096-v3-pmi8994-mdm9x55-i2s-mtp.dtb \
apq8096-v3-pmi8994-mdm9x55-slimbus-mtp.dtb \
apq8096-v3-pmi8996-mdm9x55-i2s-mtp.dtb \
apq8096-v3-pmi8996-mdm9x55-slimbus-mtp.dtb \
apq8096-v3-pmi8996-dragonboard.dtb

dtb-$(CONFIG_MSM_GVM_QUIN) += vplatform-lfv-msm8996.dtb

Expand All @@ -131,48 +10,6 @@ dtb-$(CONFIG_ARCH_MSMCOBALT) += msmcobalt-sim.dtb \
msmcobalt-v2-mtp.dtb \
msmcobalt-v2-cdp.dtb

dtb-$(CONFIG_ARCH_MDM9640) += mdm9640-sim.dtb \
mdm9640-rumi.dtb \
mdm9640-emmc-cdp.dtb \
mdm9640-nand-cdp.dtb \
mdm9640-mtp.dtb \
mdm9640-v1-mtp.dtb \
mdm9640-v1-pmk8001-mtp.dtb \
mdm9640-v2-mtp.dtb \
mdm9640-v2-pmk8001-mtp.dtb \


dtb-$(CONFIG_ARCH_MDM9650) += mdm9650-ttp.dtb \
mdm9650-pcie-ep-ttp.dtb \
mdm9650-v1.1-emmc-cdp.dtb \
mdm9650-v1.1-nand-cdp.dtb \
mdm9650-v1.1-emmc-mtp.dtb \
mdm9650-v1.1-nand-mtp.dtb \
mdm9650-v1.1-nand-dualwifi-mtp.dtb \
mdm9650-v1.1-nand-ccard-v2.dtb \
mdm9650-v1.1-emmc-pcie-ep-mtp.dtb \
mdm9650-v1.1-nand-pcie-ep-mtp.dtb \
mdm9650-v1.1-nand-cv2x.dtb \
mdm9650-v1.1-nand-rome-sdio-mtp.dtb

dtb-$(CONFIG_ARCH_SDX20) += sdx20-emmc-cdp.dtb \
sdx20-emmc-mtp.dtb \
sdx20-nand-cdp.dtb \
sdx20-nand-mtp.dtb \
sdx20-nand-dualwifi-mtp.dtb \
sdx20-nand-dualwifi-cdp.dtb \
sdx20-v2-emmc-cdp.dtb \
sdx20-v2-emmc-mtp.dtb \
sdx20-v2-nand-cdp.dtb \
sdx20-v2-nand-mtp.dtb \
sdx20-v2-nand-dualwifi-mtp.dtb \
sdx20-v2-nand-dualwifi-cdp.dtb \
sdx20-v2-nand-singlewifi-dualwificonf-mtp.dtb \
sdx20-emmc-pcie-ep-mtp.dtb \
sdx20-nand-pcie-ep-mtp.dtb \
sdx20-v2-emmc-pcie-ep-mtp.dtb \
sdx20-v2-nand-pcie-ep-mtp.dtb

dtb-$(CONFIG_ARCH_MSM8937) += msm8937-rumi.dtb \
msm8937-pmi8950-cdp.dtb \
msm8937-pmi8937-cdp.dtb \
Expand Down Expand Up @@ -215,130 +52,27 @@ dtb-$(CONFIG_ARCH_MSM8917) += msm8917-rumi.dtb \
apq8017-pmi8950-cdp-wcd-rome.dtb \
apq8017-no-pmi-wcd-rome-cdp.dtb

dtb-$(CONFIG_ARCH_MSM8920) += msm8920-pmi8937-cdp.dtb \
msm8920-pmi8937-mtp.dtb \
msm8920-pmi8950-cdp.dtb \
msm8920-pmi8950-mtp.dtb \
msm8920-pmi8937-rcm.dtb \
msm8920-pmi8950-rcm.dtb \
msm8920-pmi8940-qrd-sku7.dtb \
msm8920-pmi8950-ext-codec-cdp.dtb

dtb-$(CONFIG_ARCH_MSM8940) += msm8940-pmi8937-cdp.dtb \
msm8940-pmi8937-mtp.dtb \
msm8940-pmi8950-cdp.dtb \
msm8940-pmi8950-mtp.dtb \
msm8940-pmi8937-rcm.dtb \
msm8940-pmi8950-rcm.dtb \
msm8940-pmi8950-qrd-sku6.dtb \
msm8940-pmi8950-qrd-sku7.dtb \
msm8940-pmi8950-ext-codec-cdp.dtb \
msm8940-pmi8940-mtp.dtb \
msm8940-pmi8940-cdp.dtb \
msm8940-pmi8940-rcm.dtb \
msm8940-pmi8940-qrd-sku7.dtb

dtb-$(CONFIG_ARCH_MSM8953) += msm8953-sim.dtb \
msm8953-rumi.dtb \
msm8953-cdp.dtb \
msm8953-mtp.dtb \
msm8953-ext-codec-mtp.dtb \
msm8953-qrd-sku3.dtb \
msm8953-qrd-sku3-e7.dtb \
msm8953-qrd-sku3-daisy.dtb \
msm8953-rcm.dtb \
apq8053-rcm.dtb \
msm8953-ext-codec-rcm.dtb \
apq8053-cdp.dtb \
apq8053-ipc.dtb \
msm8953-ipc.dtb \
apq8053-mtp.dtb \
apq8053-ext-audio-mtp.dtb \
apq8053-ext-codec-rcm.dtb \
apq8053-lite-dragon-v1.0.dtb \
apq8053-lite-dragon-v2.0.dtb \
apq8053-lite-ext-codec-dragon-v2.0.dtb \
msm8953-cdp-1200p.dtb \
msm8953-iot-mtp.dtb \
apq8053-iot-mtp.dtb \
msm8953-pmi8940-cdp.dtb \
msm8953-pmi8940-mtp.dtb \
msm8953-pmi8937-cdp.dtb \
msm8953-pmi8937-mtp.dtb \
msm8953-pmi8940-ext-codec-mtp.dtb \
msm8953-pmi8937-ext-codec-mtp.dtb

dtb-$(CONFIG_ARCH_SDM450) += sdm450-rcm.dtb \
sdm450-cdp.dtb \
sdm450-mtp.dtb \
sdm450-qrd.dtb \
sdm450-pmi8940-mtp.dtb \
sdm450-pmi8937-mtp.dtb \
sdm450-iot-mtp.dtb \
sda450-cdp.dtb \
sda450-mtp.dtb

dtb-$(CONFIG_ARCH_MDM9607) += mdm9607-rumi.dtb \
mdm9607-cdp.dtb \
mdm9607-mtp.dtb \
mdm9607-rcm.dtb \
mdm9607-mtp-sdcard.dtb \
mdm9607-ttp.dtb \
mdm9206-mtp.dtb \
mdm9206-cdp.dtb \
mdm9206-mtp-sdcard.dtb \
mdm9206-rcm.dtb

dtb-$(CONFIG_ARCH_MSM8916) += msm8952-qrd-skum.dtb \
msm8952-cdp.dtb \
msm8952-ext-codec-cdp.dtb \
msm8952-mtp.dtb

dtb-$(CONFIG_ARCH_MSM8909) += msm8909-pm8916-mtp.dtb \
msm8909-cdp.dtb \
msm8909-1gb-qrd-skuc.dtb \
msm8909-1gb-qrd-skue.dtb \
msm8909-qrd-skue.dtb \
sdw2100-msm8909w-wtp.dtb \
sdw2100-apq8009w-wtp.dtb \
apq8009w-cdp.dtb \
sdw2100-msm8909w-swoctp.dtb \
msm8909w-swoctp-circpanel.dtb \
apq8009w-swoctp-circpanel.dtb \
apq8009w-nowgr-swoctp.dtb \
sdw2100-apq8009w-nowgr-swoctp-circpanel.dtb \
msm8909-pm8916-cdp.dtb \
msm8909w-cdp.dtb \
sdw2100-msm8909w-1gb-swoctp-circpanel.dtb \
sdw3100-msm8909w-wtp.dtb \
sdw2500-msm8909w-wtp.dtb \
sdw3100-apq8009w-wtp.dtb \
sdw3100-apq8009w-alpha.dtb \
sdw2500-apq8009w-wtp.dtb \
apq8009-mtp-wcd9326.dtb \
msm8909-mtp-wcd9326.dtb \
msm8909-mtp-wcd9326-refboard.dtb \
msm8909-512mb-mtp-wcd9326-refboard.dtb \
msm8909-512mb-cdp-wcd9326-refboard.dtb \
msm8909-512mb-rcm-wcd9326-refboard.dtb \
msm8909-cdp-wcd9326-refboard.dtb \
msm8909-rcm-wcd9326-refboard.dtb \
apq8009-mtp-wcd9326-refboard.dtb \
apq8009-512mb-mtp-wcd9326-refboard.dtb \
apq8009-512mb-cdp-wcd9326-refboard.dtb \
apq8009-512mb-rcm-wcd9326-refboard.dtb \
apq8009-cdp-wcd9326-refboard.dtb \
apq8009-rcm-wcd9326-refboard.dtb \
apq8009-robot-refboard.dtb \
apq8009-robot-som-refboard.dtb \
apq8009-robot-rome.dtb \
apq8009-mtp-drone.dtb \
apq8009-mtp-wcd9326-excelpoint-refboard.dtb \
msm8909-mtp.dtb \
msm8909-1gb-mtp.dtb \
msm8909-1gb-rcm.dtb \
msm8909-pm8916-1gb-rcm.dtb \
msm8909-1gb-cdp.dtb \
apq8009-ext-codec-dragon.dtb \
apq8009-dragon.dtb

ifeq ($(CONFIG_ARM64),y)
always := $(dtb-y)
Expand Down
50 changes: 50 additions & 0 deletions arch/arm/boot/dts/qcom/Sakura-Default-4000mah-41kohm.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@

qcom,3299637_huaqin_bn47atl_4000mah_averaged_masterslave_7thMay2018 {
/* #3299637_Huaqin_BN47atl_4000mAh_averaged_MasterSlave_Feb9th2018*/
qcom,max-voltage-uv = <4400000>;
qcom,nom-batt-capacity-mah = <4000>;
qcom,batt-id-kohm = <200>;
qcom,battery-beta = <3380>;
qcom,battery-type = "Default";
qcom,chg-rslow-comp-c1 = <3424410>;
qcom,chg-rslow-comp-c2 = <5067152>;
qcom,chg-rs-to-rslow = <892701>;
qcom,chg-rslow-comp-thr = <0xA9>;
qcom,fg-cc-cv-threshold-mv = <4390>;
qcom,checksum = <0x4D97>;
qcom,gui-version = "PMI8950GUI - 2.0.0.16";
qcom,fg-profile-data = [
F8 83 55 7D
40 81 2A 77
3E 83 7E 72
66 7E 82 7B
EB 81 EC 9B
81 BF D8 D0
81 10 ED 83
C7 7C FE 80
07 77 30 83
2D 7A 47 8C
B5 88 22 82
9F 9B 2A C4
4F D2 67 0E
63 0F B8 59
14 70 EE FC
BD 44 7F 44
FA 43 00 00
20 4C C8 38
3F 39 00 00
00 00 00 00
00 00 00 00
1A 70 1F 6A
55 70 84 8B
42 77 E0 70
7D 6D 92 78
A5 6F 68 68
90 3E 05 A1
2C C8 62 91
64 A0 71 0C
28 00 FF 36
F0 11 30 03
00 00 00 0C
];
};
Loading

3 comments on commit 36039a3

@ramabondanp
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not also update vince to pie?

@scafroglia93

This comment was marked as abuse.

@eremitein
Copy link

@eremitein eremitein commented on 36039a3 Jan 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

daisy-p-oss update when?.. and we still haven't DT2W for fts_ts in sources but have in stock pre-compiled kernel

why Android One project less supported than MIUI?

Please sign in to comment.