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
This commit is contained in:
committed 2024-01-25 14:56:45 -05:00
1 parent 773c8b96c7
commit c03875880c
81 files changed
+364 -4626

No files matched your search

+2 -3
View File
@@ -1,5 +1,5 @@
#
# Copyright (C) 2021 The LineageOS Project
# Copyright (C) 2022 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -14,5 +14,4 @@
# limitations under the License.
#
FILELIST_PATHS+=("foster");
PATCH_PATHS+=("foster");
FILELIST_PATHS+=("nx");
-20
View File
@@ -1,21 +1 @@
stock-sif vendor/bin/hw/vendor.nvidia.hardware.convertibleport@1.0-service foster/usb/bin32/hw/vendor.nvidia.hardware.convertibleport@1.0-service
stock-t210 vendor/bin/hw/vendor.nvidia.hardware.convertibleport@1.0-service foster/usb/bin64/hw/vendor.nvidia.hardware.convertibleport@1.0-service
stock-t210 vendor/firmware/nvram_darcy_a00.txt foster/bcm_firmware/bcm4354/nvram_darcy_a00.txt
stock-t210 vendor/firmware/nvram_foster_e_4354.txt foster/bcm_firmware/bcm4354/nvram_foster_e_4354.txt
stock-t210 vendor/firmware/nvram_foster_e_antenna_tuned_4354.txt foster/bcm_firmware/bcm4354/nvram_foster_e_antenna_tuned_4354.txt
nv-tegra-t210 3rdparty/bcmbinaries/bcm4354a1/wlan/atv/nvram_loki_e_4354.txt foster/bcm_firmware/bcm4354/nvram_loki_e_4354.txt
nv-tegra-t210 3rdparty/bcmbinaries/bcm4354a1/wlan/atv/nvram_loki_e_antenna_tuned_4354.txt foster/bcm_firmware/bcm4354/nvram_loki_e_antenna_tuned_4354.txt
nv-tegra-t210 3rdparty/bcmbinaries/bcm4354a1/wlan/emb/nvram_jetsonE_cv_4354.txt foster/bcm_firmware/bcm4354/nvram_jetsonE_cv_4354.txt
stock-t210 vendor/firmware/brcmfmac4356-pcie.txt foster/bcm_firmware/bcm4356/brcmfmac4356-pcie.txt
stock-t210 vendor/firmware/bcmdhd_clm_darcy.blob foster/bcm_firmware/bcm4354/darcy.clm_blob
stock-t210 vendor/firmware/bcmdhd_clm_foster.blob foster/bcm_firmware/bcm4354/foster.clm_blob
stock-t210 vendor/firmware/bcmdhd_clm_darcy_flynn-hp.blob foster/bcm_firmware/bcm4354/flynn-hp.clm_blob
nv-tegra-t210 3rdparty/cypress/bcm4356a3/wlan/fw_4356a3_prod.clm_blob foster/bcm_firmware/bcm4356/fw_4356a3_prod.clm_blob
stock-t210 vendor/firmware/brcmfmac4356-pcie.clm_blob foster/bcm_firmware/bcm4356/brcmfmac4356-pcie.clm_blob
l4t-t210 Linux_for_Tegra/bootloader/t210ref/BCT/P2180_A00_LP4_DSC_204Mhz.cfg foster/BCT/P2180_A00_LP4_DSC_204Mhz.cfg
l4t-t210 Linux_for_Tegra/bootloader/t210ref/BCT/P3448_A00_lpddr4_204Mhz_P987.cfg foster/BCT/P3448_A00_lpddr4_204Mhz_P987.cfg
nv-tegra-t210 tnspec_data/t210/tnspec.json foster/tnspec/foster.json
-30
View File
@@ -1,30 +0,0 @@
# Copyright (C) 2021 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Needed by the Pixel C
function fetch_smaug_nvram() {
wget 'https://dumps.tadiphone.dev/dumps/google/dragon/-/raw/ryu-user-8.1.0-OPM8.190605.005-5749003-release-keys/system/etc/wifi/bcmdhd.cal' -O ${LINEAGE_ROOT}/${OUTDIR}/foster/bcm_firmware/bcm4354/bcmdhd.cal
# Crummy hack to match what was already committed
sed -i -e '$a\' ${LINEAGE_ROOT}/${OUTDIR}/foster/bcm_firmware/bcm4354/bcmdhd.cal
}
# The previous default crashes the current firmware
function patch_nvrams() {
sed -i 's/ccode=XR/ccode=XY/' ${LINEAGE_ROOT}/${OUTDIR}/foster/bcm_firmware/bcm4354/nvram_jetsonE_cv_4354.txt
sed -i 's/ccode=0/ccode=XY/' ${LINEAGE_ROOT}/${OUTDIR}/foster/bcm_firmware/bcm4354/bcmdhd.cal
}
fetch_smaug_nvram;
patch_nvrams;