Commit Graph

25 Commits

Author SHA1 Message Date
MajorP93
69c05e4667 avicii: init: Update product model properties
Change-Id: I7372c6bb328e3cd4ff99f765fe73fe341275b2e7
2023-03-09 16:33:03 +05:30
MajorP93
85f935def6 avicii: init: Set hardware revision property for IN variant only
Sadly RF version can not act as a unique identifier for EU and GLO variant of avicii since OnePlus decided to use RF version 14 for both.
Due to this reason we're only setting the property for IN variant.

Change-Id: I9057f11f5728898530cd0504c4a0125091da6910
2023-03-09 16:33:03 +05:30
Grace Chen
76b7c50661 avicii: Enable DSDS by default
* Nord does not have a single sim variant

Bug: 197273281
Test: Confirm DSDS property.
Change-Id: I007ef6b81ddfdb3d9692f286bbcb85c2bae5dae5
2023-03-09 16:33:03 +05:30
KakatkarAkshay
2cc2bd3cce avicii: init: Update for lito
* Nord does not have CN, TMO versions so remove them

Change-Id: I1f02cee983a5ecb99bbf1619ac2c87b78e9d667d
2023-03-09 16:33:03 +05:30
KakatkarAkshay
1ae21d7dda avicii: Introduce fstab from LA.UM.9.12.r1-14300.01-SMxx50.QSSI13.0
Change-Id: I8b4708d1f1b3f2968d0bfa03deac0191ee9c3d15
2023-03-09 16:33:03 +05:30
jabashque
852815b998 sm8250-common: init: Move VOOC-related writes back to init
This allows these same writes to happen in both Android and offline
charging mode, thus enabling VOOC during offline charging.

Change-Id: Iacf85966b5fa37eedb42887d666369fb63e13c33
2023-01-13 12:25:20 +01:00
LuK1337
faeaa51dee sm8250-common: Add stmvl53l1 TOF sensor support
Change-Id: Ic310be7daf4ff3f8700383fd1f8731c6bce62d56
2022-12-21 20:56:07 +01:00
SagarMakhar
a6287e33e1 sm8250-common: init: Enable fastchg_fw_update and ui_soc_decimal on boot
* `fastchg_fw_update` seems to be needed to initialize VOOC / Warp
   charging.
 * `ui_soc_decimal` isn't exactly needed, as it seems to be more for
   enabling the ability to calculate decimal percentages for remaining
   battery capacity on the lockscreen for Oxygen OS. Nevertheless, it
   doesn't seem to cause harm to enable this anyway.

Change-Id: I03dd1abe9c2c7be0b7b7576721b6f6338f1afd46
2022-08-19 21:59:31 +02:00
Alexander Koskovich
c983dcfd64 sm8250-common: init: Update display panel firmware if newer
[TP0]touchpanel: tp_fw_update_work: fw_name = tp/19825/FW_S6SY792_SAMSUNG.bin
[TP0]touchpanel: fw_name_fae is tp/19825/FW_S6SY792_SAMSUNG_FAE.bin
sec-s6sy792 2-0048: Direct firmware load for tp/19825/FW_S6SY792_SAMSUNG_FAE.bin failed with error -2
sec-s6sy792 2-0048: Falling back to sysfs fallback for: tp/19825/FW_S6SY792_SAMSUNG_FAE.bin
[TP0]touchpanel: retry times 0
[TP]sec-s6sy792: sec_fw_update is called, force update:0
[TP]sec-s6sy792: img version in bin is 0x28240117, img version in ic is 0x28240117
[TP]sec-s6sy792: config version in bin is 0x28240108, config version in ic is 0x28240108
[TP]touch_interface: read block_1, free once.
[TP]touch_interface: read block_1, kzalloc success(len:1152, buf_size:1152).
[TP]sec-s6sy792: update firmware state: no need update!
[TP0]touchpanel: release all touch point and key, clear tp touch down flag
[TP]touch_interface: read block_2, kzalloc success(len:1, buf_size:256).
[TP]sec-s6sy792: sec_change_to_np_mode: change to np_mode time: 0 success!
[TP]sec-s6sy792: sec_enable_fingerprint_mode: touchhold_enable: 0 success!
[TP]sec-s6sy792: sec_enable_black_gesture, enable = 0
[TP]sec-s6sy792: sec_enable_black_gesture: 0 times change black gesture success
[TP]sec-s6sy792: limit_switch is 1
[TP]sec-s6sy792: sec_enable_charge_mode: state: 0 success!
[TP]sec-s6sy792: sec_enable_headset_mode: state: 0 success!
[TP0]touchpanel: add qos request in touch driver.
[TP0]touchpanel: fw update finished

Change-Id: Iba517b59fe2856ed6f991c07e0362b1be203af45
2022-08-19 21:59:31 +02:00
LuK1337
678199c03d sm8250-common: Workaround multisim prop setting race condition
It turns out that if we set multisim prop too late, then we end up with
broken RIL for the first boot.

Test: rm -rf /data/property && reboot
Change-Id: I6903691ca89f99529fc6cd372179a6b10513ec93
2022-08-19 21:59:31 +02:00
LuK1337
98a9f6af5d sm8250-common: init: Set SSR restart level to 'RELATED'
Change-Id: I32fc08c9ad36b9c8ebfc019fc87a19eece18f0b4
2022-08-19 21:59:31 +02:00
Alexander Koskovich
fcbf34d741 sm8250-common: init: Set model based on RF version
Co-authored-by: dianlujitao <dianlujitao@lineageos.org>
Change-Id: I06f9acda3fe77f57a1bc24ee5a802db0ab3b8d60
2022-08-19 21:59:20 +02:00
Michael Bestas
53e71f35a1 sm8250-common: Reapply "Set ro.boot.hardware.revision based on RF version"
ro.boot.hardware.revision is used in fastbootd UI, getvar hw-revision
output and Settings app.

Set based on the RF version so external tools can use it to flash
the correct firmware variant and show the HW variant in Settings.

Change-Id: I1adfb6514fdbaa2e5b9782c37d9eaf8112a110fc
2022-08-19 21:59:20 +02:00
Alexander Koskovich
7d7cee08b1 sm8250-common: init: Fix "Invalid section keyword found" on ueventd
Change-Id: I8a3eb3abea82feb5e1a92cc859cd6498ee68666e
2022-08-19 21:59:20 +02:00
LuK1337
b77a4354ff sm8250-common: Set DSDS based on simcardnum.doublesim=1
Change-Id: Ib0ae4728b33aefeaf50f0c3c074481ef35ccb0b0
2022-08-19 21:59:20 +02:00
Naman Padhiar
5ad91ff2f1 sm8250-common: init: Bring WPSS out of reset on init
Change-Id: Ia7e6d0644102147a56869d22de5d26faae3cbb63
2022-08-19 21:59:19 +02:00
Alexander Koskovich
1dc7cad6f0 sm8250-common: Copy PFM licenses to persist
* This is read by the feature enabler client. OOS already
   does this but we want to make sure we're doing this for
   users upgrading from Lineage 18.1.

Change-Id: I1d112d9cea6f3d0e87cdf12898587c7bacf8de9c
2022-08-19 21:59:19 +02:00
Alexander Koskovich
d29a4ea5c7 sm8250-common: init: Set 'ro.separate.soft' to project name
Change-Id: I4ae6281c323a68e0f21af5b0c4e2a578fe80794a
2022-08-19 21:59:19 +02:00
Alexander Koskovich
84c4bd95ef sm8250-common: init: Use the same PID/VIDs from OOS
Change-Id: Ieaa52f748c75272b80fa6f3e7018cdb71e3a2f7f
2022-08-19 21:59:19 +02:00
Alexander Koskovich
801916b502 sm8250-common: init: Add oplusreserve1 ueventd entry
Change-Id: I3aa6e23e38d9e525e0e1d823e0933ab81c8f81af
2022-08-19 21:59:19 +02:00
Alexander Koskovich
bb994f61e8 sm8250-common: init: Load WiFi firmware from ODM
Change-Id: Id18a7aea8d38a62bb871f588d3620583a0e4e562
2022-08-19 21:59:19 +02:00
Alexander Koskovich
6ba455d610 sm8250-common: Add oplus_sensor_fb
Change-Id: I289d5e3270fe0b3e8b185b4bf22f1d9c59209f48
2022-08-19 21:59:19 +02:00
Alexander Koskovich
0ad0214091 sm8250-common: init: Chown used display nodes
Change-Id: Iea4985c06e6094464b5b5dfa7a06294e895a9971
2022-08-19 21:59:19 +02:00
Jimmy Chen
aa145e77e6 sm8250-common: Move WiFi supplicant service definition to dedicated RC
Change-Id: I7c448ecb511a738903ebe3702fefdf2cb13c3be3
2022-08-19 21:59:19 +02:00
Alexander Koskovich
9e7143d5a4 sm8250-common: Import QCOM scripts from LA.UM.9.12.r1-14300.01-SMxx50.QSSI13.0
Change-Id: Ia624b92cbbaeaf240958df2f640140d79f9f9335
2022-08-19 21:59:19 +02:00