Commit Graph
339 Commits
Author SHA1 Message Date
Nolen Johnson e80e7a2074 Move bluetooth name to bluetooth.prop
* Sadly in PRODUCT_PROPERTY_OVERRIDES this
  translates to 3 seperate props, example:

```
bluetooth.device.default_name=SHIELD
Android
TV
```

* The build system flips out when quotes are
  used.

* Can't move whole device to *.prop because we
  ifdef so many of these in tegra trees that it
  would be disgusting.

Change-Id: I4c611c64652d28f65505382db7b3e08bc6f3fabf
2024-01-29 13:43:29 -05:00
Aaron Kling e9fcb8d869 Disable FDE
Android T removed support for fde

Change-Id: If92ba08aa411d4f490db6ca7bfe4184b784c91de
2024-01-29 13:43:29 -05:00
Nolen Johnson 38aa4c57e0 nx: Explicitly disable AVB
* This allows infra to sign successfully, I hate it, but it builds,
  boots, and works fine enough as a workaround.

* The underlying issue is that this flag causes avbtool args and location
  to be set in `misc_info.txt` whereas before it was not.

Change-Id: I7bdf237ec30d692c7d8b5c626a6e761e2c1a2593
2024-01-29 13:43:29 -05:00
Nolen Johnson ae5fe736a2 nx: initfiles: Fix jc_setup delaration
Change-Id: I134d215f8958ecb9cd3f6b78456a5d34d4ab689c
2024-01-29 13:42:44 -05:00
tmakin 2ca4c3b2b4 nx: Use common atf target
* Introduced in 19.1

Change-Id: I3f1132c45ea0392ef31b0139753344267c017bf8
2024-01-29 11:58:41 -05:00
Aaron Kling f73490fc10 Convert vendor makefile inherits to includes
Some variables that need checked in the vendor makefiles are being
purged by the inherit macro.

Change-Id: I3942e953ff0fb3adfaabc7189a92bff92818de0d
2024-01-29 11:58:41 -05:00
Aaron Kling 607c394c66 Remove twrp build support
Change-Id: Ifeb70c254ac21aa60311fec50d0194bdcef80e57
2024-01-29 11:58:41 -05:00
Aaron Kling 76d396dda5 lkm: Use insmod for cypress_fmac
Since this is built out of tree, it is not included in modules.dep,
thus modprobe does not work properly.

Change-Id: I3071e641040d777f82f6f42f136540e0498b33a1
2024-01-29 11:58:41 -05:00
Aaron Kling 4876553599 Build kernel and boot stack with gcc 9.3
Change-Id: Iaa26953515e46f655f64ccbfaa3afe79eaf79dd1
2024-01-29 11:58:41 -05:00
Aaron Kling fa691ac954 Remove pbc references
This fails to initialize even on stock rel-shield-r

Change-Id: I153062cbbb5284b10f9165c1343b9788e3831bbc
2024-01-29 11:58:41 -05:00
Aaron Kling da74009f89 modules: Add devfreq pod scaling governor
Change-Id: Ib196a0d575cdb05a73fc9de6518a7f79ab96ab6b
2024-01-29 11:58:41 -05:00
Aaron Kling ba8c478824 Switch to modules.load for lkm
Change-Id: I1a44f93747c37db7faea2a54cce90bfdbdb7ae1c
2024-01-29 11:58:41 -05:00
Chenyang Zhong 66cd5b36e1 nx: Ship cgroups.json and task_profiles.json
Google's prebuilt cgroups.json and task_profiles.json for products
launched with previous API levels only covers
ro.product.first_api_level >= 28. [1]

SHEILD Android TV was launched with Lollipop (API level 21), so
schedtune and task groups are completely broken. Since the system
also checks /vendor/etc for vendor profiles, make a copy of
cgroups_28.json and task_profiles_28.json and ship them to
/vendor/etc. Profiles for previous API levels are all the same
anyway.

Test: boot and check /dev/stune/

[1] system/core/libprocessgroup/profiles/

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Change-Id: I65fe622a804a720a97b43d8092cc8a37703f4b64
2024-01-29 11:58:41 -05:00
Aaron Kling 669a726748 Use gcc for kernel build
Lineage has switched to clang for kernel builds by default. The
nvidia 4.9 kernel does not build with clang.

Change-Id: Ie00632002a532a7a090d50c1951575c361244f7d
2024-01-29 11:58:41 -05:00
Aaron Kling 8f1144ee50 Update releasetools for S
The metadata struct no longer contains a field that was being set.
That field appears to have not been used for anything anyways.

Change-Id: Ie97b446efa376ec48eb6b3d3ba193b9ae7011cf0
2024-01-29 11:58:41 -05:00
tmakin ff3242a162 nx: dockservice: Refactor mode setting
This resolves blackscreen on first dock and generally
improves docking stability and res scaling.

Change-Id: I3adeaba93584d52dad036195d60f06e66324394f
2024-01-29 11:58:41 -05:00
tmakinandAaron Kling f9ca85df02 nx: Add leanback brightness slider
Uses Settings API and SeekBarPreference to allow proper brightness
setting on ATV.

Co-authored-by: Thomas Makin <halorocker89@gmail.com>
Co-authored-by: Aaron Kling <webgeek1234@gmail.com>

Change-Id: Iccdc098414bd143080f9907a99e26458ec617072
2024-01-29 11:58:33 -05:00
tmakin ebeee1d3b5 nx: devicesettings: Add leanback fragment
Change-Id: I58c06a99446767333b92b80df3bb0a4607215cc7
2024-01-29 11:54:10 -05:00
tmakin cc708f6e45 nx: devicesettings: Refactor and clean up
- Migrate static prefs to xml
- Migrate static arrays to resources
- Migrate to API 30
- Stop using deprecated APIs
- Migrate to AppCompat
- Fix formatting

Change-Id: Ie9b7ddce51ac7c6e0575eb051d76cb98ad46fa2c
2024-01-26 11:53:38 -05:00
tmakin 9979bdb8df nx: power: rework power profiles
Change-Id: I33495393f8503ed69caf1ab7769f8b80b1112c82
2024-01-25 15:54:02 -05:00
tmakin 5720f8a02f nx: releasetools: improve bootloader flash
Change-Id: Id5f6fb2ba1daa3b5724dddf2074197983f8b404c
2024-01-25 15:54:02 -05:00
tmakin 1792e1fbb9 nx: releasetools: don't flash ini
It's needed to boot anyway

Change-Id: Ie38d100b6eb0beab265e901cacc9d87be63d6239
2024-01-25 15:54:02 -05:00
tmakin 00463cc094 nx: power: add powerhal xml
Based on xml parsing code in NVIDIA power HAL. This allows
JoyCon proper sleep functionality to work.

Change-Id: If4d50b43ac592a22dfc02d3a13a711ac68c0b227
2024-01-25 15:54:02 -05:00
Nolen Johnson 849336b094 nx: Use device specific kernel
Change-Id: I3967bb5884394f45c14981a8de5a5283a5306e6e
2024-01-25 15:54:02 -05:00
tmakin c2632c6fa3 nx: cec: Use the AOSP CEC HAL
* `nx` does not support nvhdmi.

Change-Id: Ie68babe3240b9f50cc99f80819cbbe66bdc94199
2024-01-25 15:54:02 -05:00
tmakin 2ef2da1d0f nx: use intel iio/sysfs sensor hal
Set up in polling mode--trigger and event mode will need testing. Will
also require testing for generalized calib profile for max range.

Change-Id: I8e58cac0288ba8b53f3451c239c15c0a906db8d4
2024-01-25 15:54:02 -05:00
tmakin c12b495144 nx: devicesettings: add flag parsing
1: VRR
2: HDR10
4: DOVI (unsupported)

Change-Id: I9b47d17fd418bb5c902914dea2501b2de27c501f
2024-01-25 15:54:02 -05:00
tmakin 1dc6655030 nx: displayutils: fall back to max 1080p60
It's bad UX for the default res to be awful. Now, if a pref
is not found, dockservice will default to MAX_1080P_60HZ.

Change-Id: I8900f3d0819db1afcd34454cfea9b0177f9db89d
2024-01-25 15:54:02 -05:00
tmakin b4fd298fca nx: clean up devicesettings
- Set 90 char line limit
- Fix file formats
- Fix comments and typos
- Remove bitrot and unused code
- Update copyright to 2023

Change-Id: I0cd71f2e706c9dd7f5460ea6906a5ec88decf961
2024-01-25 15:54:02 -05:00
Nolen Johnson f61ef2fc76 fixup! nx: devicesettings: Add OLED panel preference
Change-Id: I5ef2baffce8eca7d424042645ce9cd1bd652cd21
2024-01-25 15:54:02 -05:00
Arne Coucheron e9cf3aa0a0 nx: Silence clang warnings during kernel compile
clang-11: warning: argument unused during compilation:
'-fuse-ld=lld' [-Wunused-command-line-argument]

Change-Id: I66a629f3573e3fad8aa085ea115475f02d60a7ea
2024-01-25 15:54:02 -05:00
tmakin 7e1527dc05 nx: thermalhal: add diode and board
Cooling for nx is largely based off Tdiode and Tboard.

Change-Id: I4d84e1157c88f85c92cf2473788e3a222ff050c5
2024-01-25 15:54:02 -05:00
Nolen Johnson dbc20dcbae nx: Label /mnt/vendor/factory
* On odin boards, factory is used for mounting the hos-data
  partition on the SD card which is FAT32.
* Just label in fstab instead.

Change-Id: I3477813906c5ce37df87bf9b170cc21d0fe1300b
2024-01-25 15:54:02 -05:00
tmakin f94bf0a523 nx: meta: add gitignore
Change-Id: I5d7d3c24e173ff94af827601c443da50d28eee30
2024-01-25 15:54:02 -05:00
tmakin 8c792e805b nx: use updated bootstack source paths
Change-Id: Ic691ed7903d7b1afb1e49e7de40ac929e94da0b9
2024-01-25 15:54:02 -05:00
tmakin c34b5ceee1 nx: use a better default dpi
The small ~7" 16:9 displays need smaller, higher res elements,
without making TVs look terrible when docked (without forcing
wm-based dpi changes). Use 214 (~tvdpi) for density and use tvdpi
assets on atv and xhdpi assets on mobile.

Change-Id: I1d5847ef5dbb11a83e403788f4f8d757b0ec55cd
2024-01-25 15:54:02 -05:00
tmakin 015f2f32bc nx: add nvaudio bt sco support
Based on abca config
https://nv-tegra.nvidia.com/r/gitweb?p=tegra/prebuilts-device-nvidia.git;a=blob_plain;f=platform/t210/abca_nvaudio_conf.xml;h=2505492cd06428a2d4cb3c82cbcaf35f61630f71;hb=4e7a0a212dac90c0781f7b74d669bb6bc44cdd28

Change-Id: I5aba9df05d0098a0e488706df5233ac760f55a0f
2024-01-25 15:54:02 -05:00
tmakin b158b0ad5c nx: add mic support to nvaudio conf
Change-Id: I2053c6023ea592c3163af000af326db5d98bed66
2024-01-25 15:54:02 -05:00
tmakin d296289aed nx: add gcc dep
Needed for bootstack compile

Change-Id: I19fcc85031093a6fba9a3c5baf25245f7ee21242
2024-01-25 15:54:02 -05:00
Nolen Johnson f9cfe15b74 nx: firmware: Statically set defconfig
* This variable is only present in common trees on 19.1+.

Change-Id: If0632d9c820d1140c5cf095480decf065f47ffd9
2024-01-25 15:54:02 -05:00
Nolen Johnson 0650d4f2a7 nx: Migrate to using nx kernel DT
Change-Id: Ic528a16fb3ed831cae4df652ac6270de9aab925d
2024-01-25 15:54:02 -05:00
Nolen Johnson 98d85a8b80 nx: firmware: Don't set NX_VENDOR_PATH
* Incorrect, and unused in this makefile.

Change-Id: Id87f4bd2c43c223de150e9b39e023405208f3621
2024-01-25 15:54:02 -05:00
tmakin 04fbabf802 nx: CEC: Add idc to disable CEC rc device
* Inputs are duplicated because the CEC HAL directly processes them while
  the RC device is handled as a standard input device. This disables the
  latter to stop the duplication.

Change-Id: Ifa07683b4f0509e8027630a15af6e0dbd1636452
2024-01-25 15:54:02 -05:00
tmakin 7d8d7f10f8 nx: cec: switch checked prop to cec_disable
This works together with a change to U-Boot to allow kernel and
userspace HDMI-CEC functionality to be disabled manually (or
automatically on vali). Now users who do not care about CEC do not
have to suffer from the CEC volume UI platform bug.

Change-Id: I34a89c78052193c38dc8217841a816615f135fb2
2024-01-25 15:54:02 -05:00
tmakin 4c4e9d36da nx: Override and hide cec on vali
* Again, we do not plan to support vali display hacks for the
  time being. If so, we will add env and do it that way.

* filter-out CEC for vali because common trees assume that unified
  devices will all support CEC or none.

Change-Id: I1df0d895de870a3ebd76825fe278997e83435922
2024-01-25 15:54:02 -05:00
tmakin f5c8a02ed8 nx: redo bcm_firmware targets
For optimal nx wifi/bt performance we want:
- nx dumped bt patchfile for tuning
- mdarcy wifi firmware for p2p support etc.
- mdarcy clm_blob for country mapping
- nx dumped wifi nvram with patched ccode for tuning
(copied to all skus)

Change-Id: I854756c89cf8b367d3f6604183f87e346689737a
2024-01-25 15:54:02 -05:00
tmakin c63f0d1d35 nx: Specify proper board ids for skus
Change-Id: I88fe9f961e53cfb8e669cf89d9864e347d46763c
2024-01-25 15:54:02 -05:00
tmakin 8bb5bf7347 nx: build bootstack for l4t-loader
We are migrating from coreboot to an ATF loader
built into hekate-ipl. This will load sc7 bins etc. along
with ATF (bl31) and U-Boot (bl33), which will chainload
kernel (as is currently the case). This also migrates to new
R2P method/driver as the new loader/ATF will stash a
copy of the bootloader in RAM so we do not have to
load a hekate payload.

Change-Id: I11e4a1810829ab3ac4c8830fd03afd6054e40bad
2024-01-25 15:54:02 -05:00
Billy Laws ef6a02e5f6 nx: Add Wi-Fi reset script
Change-Id: Ica5129d824253b5a2576b68f290555d90dd31116
2024-01-25 15:54:02 -05:00
tmakin f5cb972636 nx: twrp: Fix this target
Change-Id: Ia3652c027a5840139fe8ce4986b93df9c548db42
2024-01-25 15:54:02 -05:00