-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Emrah Billur <emrah.billur@unikie.com> Toshiba camera drivers integrated Toshiba and Alvium Drivers Kernel config fixed Signed-off-by: Emrah Billur <emrah.billur@unikie.com>
- Loading branch information
1 parent
770d204
commit 3b7818e
Showing
8 changed files
with
23,716 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Copyright 2022-2024 TII (SSRC) and the Ghaf contributors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
{ | ||
lib, | ||
config, | ||
... | ||
}: let | ||
cfg = config.ghaf.hardware.nvidia.orin.agx; | ||
in { | ||
options.ghaf.hardware.nvidia.orin.agx.camera = | ||
lib.mkEnableOption | ||
"Enabling E-con camera driver for Orin AGX "; | ||
config = lib.mkIf cfg.camera { | ||
# Orin NX camera driver | ||
ghaf.hardware.nvidia.orin.camera = true; | ||
|
||
boot.kernelPatches = [ | ||
# { | ||
# name = "nx-camera-dtb-patch"; | ||
# # This patch is for Toshiba HDMI camera dtb | ||
# patch = ./toshiba_t358743_dtb.patch; | ||
# } | ||
# { | ||
# name = "nx-camera-kernel-patch"; | ||
# # This patch is for Toshiba HDMI camera kernel | ||
# patch = ./toshiba_t358743_kernel.patch; | ||
# } | ||
{ | ||
name = "nx-camera-patch"; | ||
# This patch is for Toshiba HDMI camera and Alvium CSI2 camera patch | ||
patch = ./alvium_toshiba.patch; | ||
# For Alvium Kernel configuration changes | ||
extraStructuredConfig = with lib.kernel; { | ||
CONFIG_LOCALVERSION_AUTO = yes; | ||
CONFIG_FB_EFI=lib.mkForce unset; | ||
CONFIG_PCI_SERIAL_CH384=lib.mkForce unset; | ||
CONFIG_SENSORS_F75308=lib.mkForce unset; | ||
CONFIG_USB_NET_CDC_MBIM=lib.mkForce unset; | ||
CONFIG_TEGRA23X_OC_EVENT=lib.mkForce unset; | ||
CONFIG_TEGRA19X_OC_EVENT=lib.mkForce unset; | ||
CONFIG_VIDEO_ECAM =lib.mkForce unset; | ||
CONFIG_VIDEO_AVT_CSI2=lib.mkForce unset; | ||
CONFIG_NV_VIDEO_HAWK_OWL=lib.mkForce unset; | ||
CONFIG_HID_SHIELD_REMOTE=lib.mkForce unset; | ||
CONFIG_USB_WDM = module; | ||
CONFIG_TYPEC_FUSB301=lib.mkForce unset; | ||
CONFIG_ISO9660_FS=lib.mkForce unset; | ||
CONFIG_SECURITY_DMESG_RESTRICT=lib.mkForce unset; | ||
}; | ||
} | ||
]; | ||
}; | ||
} |
Oops, something went wrong.