431 Commits

Author SHA1 Message Date
Volodymyr Zhdanov
e7b68cf01e
sm6250-common: Reserve some space in dynamic partitions
Change-Id: If5546e4459da7408932c797d1c239b6442f96dd7
2021-09-09 18:45:56 +02:00
Demon000
fab0daa3bd
sm6250-common: Define partition rules
Partition sizes can be found by query-ing sysfs.
For example, for super partition.

> ls -la /dev/block/by-name/super
lrwxrwxrwx 1 root root   16 1970-03-23 06:51 super -> /dev/block/sda17
> cat /proc/partitions | grep sda17
 259        1    8388608 sda17

The size needs to be multiplied by the block size used by
/proc/partitions, which is 1024 bytes.

Logical partitions found inside the physical super partition
can be found by looking for entries with the logical flag in the
fstab inside boot ramdisk.

Change-Id: Ic65df8e093a601e3f603c40174b116b20072ee27
2021-09-09 18:45:56 +02:00
Albert I
af4ac57c6e
sm6250-common: Use as many LLVM tools as possible
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I3cff2a996944d8fe354859fa51b71d21475c3972
2021-09-09 18:45:56 +02:00
Demon000
f874e702d7
sm6250-common: Define kernel rules
Change-Id: Iba6e0617d69a6c1ef2266dddf551613e5876aa56
2021-09-09 18:45:55 +02:00
Sebastiano Barezzi
27c7899680
sm6250-common: Initial variant handler libinit
* This libinit has been made to commonize device variants props handling

[dereference23: Adapt for Xiaomi SM6250]
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
Change-Id: Iab68ff451ab1d6e861fb4cda4ef07fad3123ecde
2021-09-09 18:45:55 +02:00
Alexander Winkowski
223d20e8cd
sm6250-common: Add framework compatibility matrix
* Generated with https://gist.github.com/SebaUbuntu/ec053a00a9988eaea091fb1cc1f19324

Change-Id: Ic40d19adb0d47a52c4b82eb71bb60ddaff76548d
2021-09-09 18:45:55 +02:00
Sebastiano Barezzi
fe19426429
sm6250-common: Use only full qualified name for manifest entries
* As recommended by Google for multiple different versions of the same HAL in VINTF manifests
* https://android.googlesource.com/platform/hardware/interfaces/+/master/drm/1.1/README.md#devices-launching-with-android-pie

Change-Id: I4922d72ab60ca1aae78c010aeb610f9bca9012cb
2021-09-09 18:45:55 +02:00
Alexander Winkowski
40a05679ad
sm6250-common: Uprev soundtrigger
Change-Id: Ia150b3af7cc22dce12a96b745c52f38858c61666
2021-09-09 18:45:54 +02:00
Paras Nagda
1306dbd561
sm6250-common: Remove VPP service from the device manifest
Change-Id: I4df4ca927e32a7d40dadf6669b308a6c8181b94f
2021-09-09 18:45:54 +02:00
Alexander Winkowski
d67c35223b
sm6250-common: Remove Xiaomi HALs from manifest
Change-Id: I509d96e04315c300e723dcc71999b4498d3dd02e
2021-09-09 18:45:54 +02:00
Alexander Winkowski
fee6e4e2c5
sm6250-common: Import compatibility matrix and manifest
* From mojito-user 11 RKQ1.201022.002 V12.5.2.0.RKGMIXM release-keys

Change-Id: I9ffb0687e0f8bdfdec3253f198a6e08b93543a01
2021-09-09 18:45:54 +02:00
Demon000
c38eca6eb1
sm6250-common: Define bootloader flags
Change-Id: I9a47b68089717e8ad96cec85ea9ed99ba0e75b7e
2021-09-09 18:45:54 +02:00
Alexander Winkowski
597303833b
sm6250-common: Define architecture rules
Taken from ad8e3a17f6/BoardConfig-common.mk

Change-Id: I5d53c033449a86e0ec354ba38214a11e8b7d7c6c
2021-09-09 18:45:53 +02:00
Demon000
5bb1b2b40a
sm6250-common: Allow duplicate targets
Change-Id: Ied8866cc2d9f76bc2acd77ff07fd72d560ba7c69
2021-09-09 18:45:53 +02:00
Demon000
0528cf0e42
sm6250-common: Specify common path
This path will be used later when including files relative to
this directory.

Change-Id: I09870cf0525e7ae6ef9a85a1b36eff14fa898590
2021-09-09 18:45:53 +02:00
Alexander Winkowski
44dc9bdff9
sm6250-common: Import extract files scripts
Change-Id: Idb96de9b5c170ca6919e1766e6bae99545f80a45
2021-09-09 18:45:53 +02:00
Demon000
0057b473fa
sm6250-common: Initialize tree
Change-Id: Iaf4dcad4b5bf29c4a348d9b726201d34e0b1a29c
2021-09-09 18:45:51 +02:00
Sebastiano Barezzi
6a9b01ab6a
miatoll: Add libinit for variants handling
[dereference23: Adapt for miatoll]
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
Change-Id: Ia990f08d046192a42c0d951a2ce8d06b8794f6f0
2021-08-30 06:27:09 +02:00
Demon000
0401c46d04
miatoll: overlay: Import power profile
Change-Id: Ib17bdbcd52a5772a50979cb8b04e549ebffe345a
2021-08-30 06:27:09 +02:00
Fiona Campbell
9d53a0f318
miatoll: overlay: Add brightness float values to config file.
Test: manual testing - ensure that the brightness value in
Settings>Display>Brightness Level can go the full range from 0% to 100%.

[wight554: adapted for our value]
Signed-off-by: Volodymyr Zhdanov <wight554@gmail.com>
Change-Id: Ife1f2796bb3b8ec5f508903afd30a31556b49cbe
2021-08-30 06:27:09 +02:00
Demon000
1cb3f52127
miatoll: overlay: Adjust ramp rates for 255 max brightness
Change-Id: Icd06c1b785e617a2be5094b430912124fb1e5b81
2021-08-30 06:27:09 +02:00
Demon000
19be89258c
miatoll: overlay: Define automatic brightness overlays
Change-Id: I959af93638b2710244dc75fdd394861997699c26
2021-08-30 06:27:09 +02:00
Demon000
55501ac6e4
miatoll: overlay: Define status bar overlays
Change-Id: I0297066b5e6a1dab3bc03b49ee7a51127e2ee21a
2021-08-30 06:27:08 +02:00
Alexander Winkowski
b5b68cdf68
miatoll: Add thermal configs
Change-Id: I877ce6812ce90e386b88c3b348d4a54681c79101
2021-08-30 06:27:08 +02:00
Erfan Abdi
35b578d6dc
miatoll: rootdir: Create vendor nfc data path
Change-Id: I339c4b6a0a9ea54caf39e7686feff2a463791f90
2021-08-30 06:26:57 +02:00
Marijn Suijten
2d6f1e5943
miatoll: nfc: Update storage path to /data/vendor/nfc
The stock configuration oddly sets this reside on /data/nfc which is not
writable by modern policy. Instead, all vendor runtime data should go
into /data/vendor.

Signed-off-by: Marijn Suijten <marijns95@gmail.com>
Change-Id: I60a94a39239268046016fcf8be4a613ef4ae6541
2021-08-30 06:26:18 +02:00
Suhas Suresh
22acb9aeec
miatoll: nfc: Corrected DEFAULT_TECH_ABF_PWR_STATE value for NCI1.0
Change-Id: I98bb05b6cd7a9a3ac1370e97238a8b3b7607a055
2021-08-30 06:26:18 +02:00
Suhas Suresh
b19cb699ac
miatoll: nfc: Use DEFAULT_TECH_ABF_ROUTE to handle tech route separately
Earlier implementation uses DEFAULT_OFFHOST_ROUTE to update Tech A,B
route location and also as route location for payment apps not having
route location (secureElementName attribute).
Tech F is handled separately using DEFAULT_NFCF_ROUTE.
New change introduces DEFAULT_TECH_ABF_ROUTE config which will be
used to update Tech A,B,F and DEFAULT_NFCF_ROUTE will not be used anymore.
DEFAULT_OFFHOST_ROUTE will be used only to update route location for
payment apps not having route location (secureElementName attribute).

Change-Id: If9ee25038d5b05a1a5bbf04f3a51c9ac1324ae74
2021-08-30 06:26:18 +02:00
Volodymyr Zhdanov
7c21e60b93
miatoll: Add NFC support
[dereference23: Rely on libinit instead of device codename]
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
Change-Id: Ic135add84d3e1d88a852b798b312b2ea025866a4
2021-08-30 06:26:18 +02:00
Alexander Winkowski
f32a5cdaa1
miatoll: Initial proprietary files list
Co-authored-by: Demon000 <demonsingur@gmail.com>
Co-authored-by: Sonal Singh <sonal.singh.19993@gmail.com>
Change-Id: I07d2fb281e0836853acba8f2a11c43cfb2ee77b8
2021-08-30 06:26:18 +02:00
Alexander Winkowski
4df7bca082
miatoll: Initial commit
Co-authored-by: Demon000 <demonsingur@gmail.com>
Change-Id: Ia0d3ae0deb9ac8549065f2ae25d8f28ce9b5dd02
2021-08-30 06:26:14 +02:00