Skip to content

Commit

Permalink
Camera Support trial
Browse files Browse the repository at this point in the history
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
emrahbillur committed Apr 8, 2024
1 parent 770d204 commit 3b7818e
Show file tree
Hide file tree
Showing 8 changed files with 23,716 additions and 0 deletions.
53 changes: 53 additions & 0 deletions modules/hardware/nvidia-jetson-orin/agx-camera.nix
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;
};
}
];
};
}

0 comments on commit 3b7818e

Please sign in to comment.