Commit Graph
237 Commits
Author SHA1 Message Date
c03875880c nx: Intial rebrand from foster
* This is a tree for all Nintendo Switch variants:
  `odin`, `modin`, `vali`, and `frig`.
* `ro.hardware` will be NX on all variants with
   `ro.hardware.sku` being set per variant by u-boot.

Changes are as follows:
* At the moment the packaged DTB is only for `odin`, more to follow.
 * Note: We may make `modin`, `vail`, and `frig` device-tree-overlays
   on the `odin` base DTB to simplify things.
* Use darcy's thermal config as it's the most lenient, and is a same SoC STB.
* Unlike `icosa_sr` previously did, we will use the BCM HAL for BT over
  BTLinux, as A2DP is tested and verified, no need to deviate.

Changes that will require follow-up commits to build out:
* Update init to reflect nx's needs - will need more work to support devices
  other than `odin`.

Removals are as follows:
* Remove all non-nx device support files.

Co-authored-by: Thomas Makin <halorocker89@gmail.com>
Co-authored-by: Billy Laws <blaws05@gmail.com>
Co-authored-by: Aaron Kling <webgeek1234@gmail.com>
Co-authored-by: CTCaer <ctcaer@gmail.com>
Co-authored-by: John Smith <nemui3353@gmail.com>
Co-authored-by: langerhans <langerhans@users.noreply.github.com>
Co-authored-by: Nolen Johnson <johnsonnolen@gmail.com>
Change-Id: I9bab4d94c6e94a9c6e2a7cf04d16c4b76c0b6ac5
2024-01-25 14:56:45 -05:00
tmakin 773c8b96c7 nvphsd: Update based on rel-shield-r
Change-Id: Iec1a69d2d967b6963902fe211cc31672fe011954
2024-01-25 14:48:06 -05:00
tmakin c202c404d1 nvaudio: Remove broken nvaudio_fx.xml
* Broken even on stock, so basically a no-op.

Change-Id: If4e0593f6ecbc8ca1102e4b618a77a4f5774c504
2024-01-25 14:47:58 -05:00
tmakin 8993e09d21 Remove power_profile
* Not used on stock as power is managed by nvcpl and
  nvphs.

Change-Id: I5378859653981d10a19a9b41d72f442d2578c9e1
2024-01-25 14:47:42 -05:00
Nolen Johnson 4a391fbfab Revert "overlay: Remove headset hotplug overlay"
This reverts commit b3429a1a44.

Reason: nx has a headphone jack that uses this, and doesn't care
about the revert reasoning.

Change-Id: I88e8814e5aa062a03937deec9a6f54a2d63bea1f
2024-01-25 14:22:56 -05:00
Aaron Kling 1dc0ef8653 Set sku variants for audio policy
Change-Id: Id21ac11e2e3994c188ddb600cdf09d982e865c22
2024-01-07 20:31:13 -06:00
Aaron Kling c76adb8408 Refactor audio policy
Previously, audio policy was handled by product type, such as tablet or
atv. This was never correct, as policy should be based on the device
variant and is not affect by product type. This sets the default policy
to the basic set top box and devkit variant, and moves the mobile
variant to be used by devices with speakers. As the variants are no longer
in the same folder as other xmls, all includes need to use absolute paths.

Change-Id: I9de7848e653cf90353be915aec46247fa9d49739
2024-01-07 20:29:59 -06:00
Aaron Kling fbd3cbbb47 Remove nodolby audio policies
tegra-common now installs a dummy msd config if dolby support is
disabled.

Change-Id: I69a058f2a8630a4141c942c14b7b61bd3fbd0361
2024-01-07 14:29:43 -06:00
Aaron Kling b3429a1a44 overlay: Remove headset hotplug overlay
This was added for icosa with the expectation that it would not affect
the set top boxes or devkits. However, since android 12, this causes
wired accessory manager to think line out is available and triggers
event on hdmi hotplug.

Change-Id: I9488d6fa326f4e5c0599bd703a7e59c64aea98e7
2023-11-17 21:02:45 -06:00
Nolen Johnson 1f86f6840a WifiOverlay: Change package name
Change-Id: I5cee4ee06c1179353c4c54daec71f5006815aca2
2023-09-24 14:33:09 -04:00
David Su 7405bc9253 WifiOverlay: Don't sign Wifi RROs with platform cert
Preinstalled overlays needn't be signed with the same cert
as the package it overlays, simply being preinstalled is
enough. Sign with the default cert instead for now, which
provides fewer special privileges.

Bug: 162195999
Test: verify values still overlaid correctly
Change-Id: I017491fd383551c5aadf8648edb900e0c12a27b8
2023-09-24 18:29:39 +00:00
Roshan Pius de645ec8d8 Add WifiOverlay
Bug: 148617260
Test: Device boots up and connects to wifi networks.
Change-Id: Iec27a6d947a232a42451ef095dc73d1a52327db5
2023-09-24 18:29:18 +00:00
Aaron Kling 10358f96ec Remove gatekeeper declaration from no tos variants
The devkits have no usable tos and loki_e has an inaccessible tos on
newer android versions.

Change-Id: I9616fab31b844b11e46900c9246dba984714f1d2
2023-03-27 20:08:51 -05:00
Aaron Kling 211f7c3230 public libraries: Remove libraries that no longer exist
Change-Id: Icf6ae1ef600301c880676215715b91bd331ead35
2023-03-27 20:08:51 -05:00
Aaron Kling b009d73d7e releasetools: Add public key for nx mariko variant
Change-Id: I7f9ce41429a0ff9e8af3951f8c5f6d2062f8a2fc
2023-03-16 12:37:56 -05:00
Aaron Kling 0abde8977a fixup! Build nx dtimage
Only build nx dtimage if nx dt repo is available

Change-Id: I56b88573895e7acfc8a103e47591440dc9457145
2023-03-11 23:11:05 -06:00
Aaron Kling 65004aeb44 Update bootloader update files for nx
To comply with new hekate boot sequence

Change-Id: I4da4abd27b6b5ea8eeacd298c4db490e29f68128
2023-03-09 21:38:47 -06:00
Aaron Kling 3e1f72bf98 Build nx dtimage
Change-Id: I8c731ce0d08f2e40d98691400d68e5cef6ffb41b
2023-03-09 21:38:47 -06:00
Aaron Kling 2de1ada59e Rebrand icosa to nx
Change-Id: Ic97a429c449dd6f7c7d0d5999ebc9b9640d2e8f0
2023-03-09 21:38:47 -06:00
Aaron Kling 1e0fc826e9 Revert "Enable reboot2payload for icosa"
This reverts commit ca71fa80a1.

Newer r2p no longer requires manually loading binaries

Change-Id: Id5ad50b414773bc9a179519def033549fe46ad57
2023-03-09 21:38:47 -06:00
Aaron Kling 0011a5b622 icosa: Use sf rotation
Change-Id: I9613f46ad427a66af3782daaf413257e789ff4e0
2023-03-09 21:38:47 -06:00
Aaron Kling 96b680e9a7 bdroid: Disable BLE_PRIVACY_SPT
Fixes pepper disconnects. This change was originally found in an amlogic
bsp release.

Change-Id: Ib7ffe5b33226214d1d50c2046f05ddd83dc3e88b
2023-02-14 15:19:12 -06:00
Dan Willemsen 9447d8ed31 Switch from add_lunch_combo to COMMON_LUNCH_CHOICES
Bug: 77599627 | AOSP
Test: lunch  [see entries in list]

Change-Id: Id44fcfec47eeb979a745f879031f1bec7359a633
2022-11-21 18:20:57 -05:00
Nolen Johnson b659cef04a Remove vesitgial INSTALLED_RECOVERYIMAGE_TARGET usage
Change-Id: I46f3bbdc9d80a05f52457c2f7036b92bee16b7e5
2022-11-22 00:12:33 +01:00
Aaron Kling 53c7a52595 Update jetson_cv and smaug nvram patches
Update default country code to work with newer foster clm blob

Change-Id: I477afe0a3849d0a7aa179ff85dae93d421fca87e
2022-11-07 17:20:34 -06:00
Aaron Kling 4d85fecaf6 vendor: Switch some bcm firmware to source from stock
The ones that are available on t210 stock releases

Change-Id: If2b86c74c42fc33f5c693df7089453afe014ca36
2022-11-04 05:55:21 +02:00
Aaron Kling 21b3c6c48d Update fingerprint to match stock 9.1.1
Change-Id: I9ab00c2b10abc93bdcfdca5d53e3c628ea8097cb
2022-11-02 16:30:33 -05:00
Aaron Kling 1f274b381b vendor init: Fix incorrect dragon properties
The flow was causing wrong usb vendor id and product name to be set

Change-Id: I6bb5364f4036b3407ee95d15add0871fb892ec34
2022-10-20 01:21:02 -05:00
Aaron Kling 70c4973514 Move dragon recovery partition symlinks to init scripts
Change-Id: I98e3a5bc51a6015784e20196569063b3befe9dd7
2022-10-20 01:20:58 -05:00
Aaron Kling 06f6a95711 Correct dragon vendor partition name
Change-Id: I4ae2a8570f5a57ad8f2c53ac34108ef4df6b7602
2022-10-19 23:09:10 -05:00
Aaron Kling bcbec1a902 Load foster lightbar module earlier
The light hal is currently not picking up the lightbar since the
module finishes loading after the hal starts.

Change-Id: I7fd77d1e93a1966d98879aa98ca565247d7479c0
2022-10-18 21:15:54 -05:00
Aaron Kling 71627a2f0e Add vendor to dragon fstab
OTA generation requires a vendor entry in the recovery fstab

Change-Id: I970649a8b68464e298e6babd4f78aaa14f3c75fe
2022-10-17 17:01:01 -05:00
Aaron Kling d7416b57b3 thermal: Clean up configs
Remove duplicate configs
Use 4.9 fan path on jetson_cv/jetson_e
Correct 3.10 path for loki_e

Change-Id: Ib23d1ee6be950d530096dcf324dff85fcd514cc9
2022-08-06 21:46:57 -05:00
Aaron Kling a737cd9d80 Only build cypress-fmac module on kernel 4.9
Change-Id: I4c900cc508a04a2d20240418da045a7e0607f800
2022-08-06 15:48:04 -05:00
Aaron Kling baf32600be Only build wireguard module on kernel 3.10 and 4.9
Wireguard was merged in kernel 5.6, thus not needed on 5.10 or newer

Change-Id: Ic89ab82666c33bd7a76cd5038f1f82b16d3424fc
2022-08-06 15:48:04 -05:00
Aaron Kling 6ca249a1f9 Support copying dtbs from a 5.10 kernel
Change-Id: I625fc0efd754bd5032d1d89b6062482f47877e56
2022-08-06 15:48:01 -05:00
Aaron Kling 56702979a8 Update fingerprint and security patch date to match stock 9.1.0
Change-Id: I5d5eb6d8aa1a57cf8b5ad3920878824667496103
2022-07-28 14:26:25 -05:00
Aaron Kling 0b0ef7ddba fixup! Support unified audio machine driver
Icosa config was missed in the initial commit

Change-Id: Id4180d0706ba7b0a607d0a2c2c779cf22254b1aa
2022-07-28 14:26:25 -05:00
Sebastiano Barezzi 31f32ca2d6 foster: audio: Update volume policies location
Change-Id: Ia9e41028c44f7e8812657115d6a41b4c3ce481f4
2022-06-21 14:38:18 -05:00
Sebastiano Barezzi d8efe26bd4 foster: audio: Move to AOSP USB audio policy configuration
Change-Id: I00ea82b8112546eceb274d1d156fb168c845754a
2022-06-21 14:38:18 -05:00
Sebastiano Barezzi 38a01b48ed foster: audio: Move to AOSP bluetooth audio HIDL
Change-Id: I92411f5c0d1ff6cf6555906d9b1c3e2e115d8ca2
2022-06-21 14:38:18 -05:00
Aaron Kling 2823965715 Do not install convertible port hal
This will not be used by lineage

Change-Id: Ifa65fe1d8c28311cca360eed0c269923feeea4a1
2022-05-03 22:48:45 -05:00
Aaron Kling fe74967909 Set darcy convertible port to host by default
Change-Id: Ib454c965590f7aa7f5aa264255a01a02385a2579
2022-05-03 22:43:50 -05:00
Aaron Kling 2a4ee9eed0 omx: Disable secure h265 hardware decoder
Netflix content using h265 corrupts badly. Removing h265 secure
support makes netflix fall back to h264. This has the unfortunate
effect of removing 4k support from netflix, but working is better
than not working.

Change-Id: I96280968a75bbc76946dc2f4d0d9fb465ff185ad
2022-04-30 17:18:35 -05:00
Aaron Kling 55c95da42e Support unified audio machine driver
Change-Id: I57589fd9d47379f02db8ae8eca82a5459c4e5a67
2022-04-26 03:13:05 -05:00
Aaron Kling 7a692d2c50 Remove icosa from the dtb copy list
Icosa has not been fully forked yet

Change-Id: I0d13129a9b178479068ec77276203c7113a4363c
2022-04-25 16:04:41 -05:00
Nolen Johnson d542885bb9 foster: Use foster system iamge size if WITH_GMS_TV is set
* Allows us to conditionally drop sif support when TV GMS is
  included, which sif has no hope in fitting the full version
  of.

Change-Id: I4ad8ac851fc12d53622a107fe9ed0acf6c102067
2022-04-25 14:22:31 -05:00
Aaron Kling 84b9382a62 Do not force bpf support on kernel 3.10
Change-Id: Iff4dd7034e4a9a3f35646bd19eed5ce5b4928e2c
2022-04-25 14:22:31 -05:00
Aaron Kling 2540e46752 Set NV_BUILD_KERNEL_OPTIONS as needed by the rel-34 kernel
For simplicity, refactor TARGET_TEGRA_KERNEL to contain the decimal
point, and pass that to NV_BUILD_KERNEL_OPTIONS.

Change-Id: I08311ab07358cdd1d6e180dac8230f22f8de317c
2022-04-25 14:22:31 -05:00
Aaron Kling ba55a7351d Remove icosa dt repo from dependencies
This has not had an updated fork yet

Change-Id: I2f3055271542b312fc1e5cbfd3e9056b9a2fc34b
2022-04-25 14:22:31 -05:00