From patchwork Tue Jan 16 09:17:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 19410 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 9D16FC328C for ; Tue, 16 Jan 2024 09:18:35 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 39299628B6; Tue, 16 Jan 2024 10:18:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1705396715; bh=M1cBQW1K2xGU/8SjiXVt7UtdIp5cFeWCtJ1uMDJ8Sgk=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=ytLY/epQ9f0R7mc56+hqVf7IoIwKdW+9vcNsixhzH+IT4rHKFntZOVIzwUZVHBgcS PkrcSJAlXDdLpqSnu31wyMkidBgJ8n0SYxHkZASmZz+sqTrt/hmaJ0Sjv+et5paftS kfFlrVG/LPpQzZhef+n/156PGdJvbfL9StxAoPcDD1V/mZNTKsxORQqiol9HGUjzMX diQZlVzRso9bAcHj3fgBhK7Wgbo+OguUF/gqB563NizePfptax8cwrAchOajhfUp1/ b8Q10vKsZiEnnbgPocQ2XsdbBzl7/QqlBb7GD32yCO9/MWEr79y3lyRm6MUPKZdY8a +59CeOJKMW8jg== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 3AD34628AD for ; Tue, 16 Jan 2024 10:18:32 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="KBf4+UOs"; dkim-atps=neutral Received: from pyrite.hamster-moth.ts.net (h175-177-049-156.catv02.itscom.jp [175.177.49.156]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A367A3D9; Tue, 16 Jan 2024 10:17:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1705396643; bh=M1cBQW1K2xGU/8SjiXVt7UtdIp5cFeWCtJ1uMDJ8Sgk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KBf4+UOsoO9oH9hjHg3knCmJ89wefpiRwtnAjSmgPvRZn/GaUGZdACb+F37FXNzcr NmPhRvdTygY3QujrUtWeWPJjOug/dI2rRaT8Hz4XZKIPDPJ4Ylj6r9iXKTGZxgpPTC H/WVzdiPfwfMMa1AThmpnplUjh/Sscfr2fx5xBbY= To: libcamera-devel@lists.libcamera.org Date: Tue, 16 Jan 2024 18:17:52 +0900 Message-Id: <20240116091754.100654-2-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240116091754.100654-1-paul.elder@ideasonboard.com> References: <20240116091754.100654-1-paul.elder@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 1/3] ipa: rkisp1: Add IMX8MP_V10 version X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Paul Elder via libcamera-devel From: Paul Elder Reply-To: Paul Elder Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Add the version number for IMX8MP_V10, and initialize values for it. Signed-off-by: Paul Elder Reviewed-by: Kieran Bingham --- include/linux/rkisp1-config.h | 1 + src/ipa/rkisp1/rkisp1.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/include/linux/rkisp1-config.h b/include/linux/rkisp1-config.h index ec7cde8cd..0ed3dca8f 100644 --- a/include/linux/rkisp1-config.h +++ b/include/linux/rkisp1-config.h @@ -185,6 +185,7 @@ enum rkisp1_cif_isp_version { RKISP1_V11, RKISP1_V12, RKISP1_V13, + IMX8MP_V10, }; enum rkisp1_cif_isp_histogram_mode { diff --git a/src/ipa/rkisp1/rkisp1.cpp b/src/ipa/rkisp1/rkisp1.cpp index 6544c925b..aa73b7db1 100644 --- a/src/ipa/rkisp1/rkisp1.cpp +++ b/src/ipa/rkisp1/rkisp1.cpp @@ -128,6 +128,7 @@ int IPARkISP1::init(const IPASettings &settings, unsigned int hwRevision, /* \todo Add support for other revisions */ switch (hwRevision) { case RKISP1_V10: + case IMX8MP_V10: hwHistBinNMax_ = RKISP1_CIF_ISP_HIST_BIN_N_MAX_V10; hwGammaOutMaxSamples_ = RKISP1_CIF_ISP_GAMMA_OUT_MAX_SAMPLES_V10; hwHistogramWeightGridsSize_ = RKISP1_CIF_ISP_HISTOGRAM_WEIGHT_GRIDS_SIZE_V10;