From 988b16319bace12d43314f39bfec266c6d995b9e Mon Sep 17 00:00:00 2001
From: vauban353 <vauban353@gmail.com>
Date: Sat, 12 Aug 2023 19:11:20 +0100
Subject: [PATCH] MIPI-CSI: Enable power to the camera module.

Enable power to the camera module by default to simplify board testing.
---
 .../components/MIPI_CSI/DEFAULT/ADD_MIPI_CSI_INTERFACE.tcl    | 3 +++
 .../MIPI_CSI/DEFAULT/constraints/MIPI_CSI_INTERFACE.pdc       | 4 ++++
 2 files changed, 7 insertions(+)

diff --git a/script_support/components/MIPI_CSI/DEFAULT/ADD_MIPI_CSI_INTERFACE.tcl b/script_support/components/MIPI_CSI/DEFAULT/ADD_MIPI_CSI_INTERFACE.tcl
index e69de29..bf041a5 100644
--- a/script_support/components/MIPI_CSI/DEFAULT/ADD_MIPI_CSI_INTERFACE.tcl
+++ b/script_support/components/MIPI_CSI/DEFAULT/ADD_MIPI_CSI_INTERFACE.tcl
@@ -0,0 +1,3 @@
+# Enable power to camera module:
+sd_create_scalar_port -sd_name ${sd_name} -port_name {CSI1_PWND} -port_direction {OUT}
+sd_connect_pins_to_constant -sd_name ${sd_name} -pin_names {CSI1_PWND} -value {VCC}
diff --git a/script_support/components/MIPI_CSI/DEFAULT/constraints/MIPI_CSI_INTERFACE.pdc b/script_support/components/MIPI_CSI/DEFAULT/constraints/MIPI_CSI_INTERFACE.pdc
index e69de29..696e620 100644
--- a/script_support/components/MIPI_CSI/DEFAULT/constraints/MIPI_CSI_INTERFACE.pdc
+++ b/script_support/components/MIPI_CSI/DEFAULT/constraints/MIPI_CSI_INTERFACE.pdc
@@ -0,0 +1,4 @@
+set_io -port_name CSI1_PWND  \
+    -pin_name Y13            \
+    -fixed true              \
+    -DIRECTION OUTPUT
-- 
GitLab