Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp712749pxf; Thu, 1 Apr 2021 11:32:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvIxIT4Lw/nojwVDsLpmM7A+DNN9M3iliXYiGfxwPU4aujx/Ct0s2b6aeZqIJt73tdOHGG X-Received: by 2002:a05:6402:26c3:: with SMTP id x3mr11865826edd.126.1617301951579; Thu, 01 Apr 2021 11:32:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617301951; cv=none; d=google.com; s=arc-20160816; b=jX/Yr4HSDA/IpBClBQtoyxBIc35WX8L5ttgROwN4sTrPRAlCc4ppwErE6uyg0T1y6y vMa012ay6NBaKwDkteIVxjLgOtjy5DDRVVPkXujPMNwYyljEE9D5bdWBMIFnMgDpNkfV VeGIKGxoFFuv/8XF6bdzHEmuXw2ocZTuSv8XLp5cWXFxcnigwpdqLQHbXW6U0oFrGnx5 OD0fICXNEXE7q74FRDA8Jo5VG3f/1a1WN/66l2Nl+Tjh+ET3ZUNH4X44oohq/r3NBfVn PSqw8ZzQThaP4/tzm/KA3gQvLdCpRNpsHsczBp86xaHfvL+3DRQJkVSvUcssWYxowebw auFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:dkim-signature; bh=1IAcaof/Ig9MLG2UoGQgzX+KZCaBZIQvXjU4JrSG8mE=; b=DoT612hMDmQqzSGNcijQGZKMR57fz3Yc+DizlGGejllbTUWnFJ1q+J29TZsNWnbqqx dvIlMWKNs1WuZSvcOjmx8efcnk3AC5/2VxoStL5AVx6tQXX6SDTGzO2o6AXe2dXi+2Mz E5/JTIUnS0f2FNk2mkmbeWyQKse/c/DEI8QjfXZrBYz3EsJ38h3hz2tm7wFpOUaoNNjG r4eS5kDhOlXneo2osekjgDjJmk62mczFxdHCW4Cq5Ugyo9OUhp5KFYHcX3JXpkQs+iG/ T04HyLEDFyRmUQhh6n49iOcRvdH/kGYdf6pYpUqHVzaSxZmQrnpFX3KfpLDCOVUUpch5 AkdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=iAZvKDK+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p5si5015429edt.116.2021.04.01.11.32.08; Thu, 01 Apr 2021 11:32:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=iAZvKDK+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236024AbhDAS1S (ORCPT + 99 others); Thu, 1 Apr 2021 14:27:18 -0400 Received: from esa.microchip.iphmx.com ([68.232.154.123]:34747 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236385AbhDASCY (ORCPT ); Thu, 1 Apr 2021 14:02:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1617300145; x=1648836145; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=eEFZK/hSf05itEILHRf197/MjzOOVQu1dFzDN6v4vnA=; b=iAZvKDK+8LabmvtPeQrKaon4HJ7CS+kpS8QeGf5j+GlVn3P1HgopW9kG gJ1JrJvkO+Pa8lbNISuWyxmBfs9/gTUZ/6N8j0RH6xHfytdUMXLz+o8/9 tRUceie8cu5PhSNSI4CxnRfhBqAkMLs0dPBfPn/vjVr5HgtCeUhK5hU05 3nxSLUC7Jse9HhwdTr6dntgOtzmhyLAOI5yfD0NwiI+wWqKflgmlVhlMl eHI4y4hhsHvwYSZ8mky1nYUYI8CPmxVNjTIKXjbtYO9Xi2E8VxvBUL3uu 6awDvVbPrJ7K6qttD8SN2Nl2P5EGLp+EoWGaMASfU9UIazdRuwCvQCgW9 g==; IronPort-SDR: HXfZ9RMzmQjY7CuO+/qpFKoOhz+m28Oeg8dpY2G2rHfoLKAYBag7LxIp4ci6VTGpOCshYztolJ AVukyjYm+Mm9D7b6DRwUiBZQ3JVcDjcnz1MT8ypGmZB11yTAMdhzu4oGLZhk3E+Amp5+vmzU0j QVndBs0/7kPXOg8/BmyhFCSrDhMVyZLTg8y1MOh8qPo8J/X3g5M3ze2RPaKSNOokSmRt9lcu3k ltl9hgts9btbSUl9KsBk1UqII7d/PCCpZPUcif7ZbHnM3OyFEILY8fw2Pq8QoHG5xF9EQ/bgiE ma0= X-IronPort-AV: E=Sophos;i="5.81,296,1610434800"; d="scan'208";a="112132659" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 01 Apr 2021 04:32:02 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 1 Apr 2021 04:32:02 -0700 Received: from ROB-ULT-M18282.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Thu, 1 Apr 2021 04:31:46 -0700 From: Eugen Hristev To: , CC: , , Eugen Hristev Subject: [PATCH 17/30] media: atmel: atmel-isc: add register description for additional modules Date: Thu, 1 Apr 2021 14:27:10 +0300 Message-ID: <20210401112723.189107-18-eugen.hristev@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210401112723.189107-1-eugen.hristev@microchip.com> References: <20210401112723.189107-1-eugen.hristev@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add register description for additional pipeline modules: the Defective Pixel Correction (DPC) and the Vertical and Horizontal Scaler(VHXS) Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-regs.h | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/drivers/media/platform/atmel/atmel-isc-regs.h b/drivers/media/platform/atmel/atmel-isc-regs.h index a15c13e1a833..457eed74cda9 100644 --- a/drivers/media/platform/atmel/atmel-isc-regs.h +++ b/drivers/media/platform/atmel/atmel-isc-regs.h @@ -90,6 +90,46 @@ #define ISC_INT_DDONE BIT(8) #define ISC_INT_HISDONE BIT(12) +/* ISC DPC Control Register */ +#define ISC_DPC_CTRL 0x40 + +#define ISC_DPC_CTRL_DPCEN BIT(0) +#define ISC_DPC_CTRL_GDCEN BIT(1) +#define ISC_DPC_CTRL_BLCEN BIT(2) + +/* ISC DPC Config Register */ +#define ISC_DPC_CFG 0x44 + +#define ISC_DPC_CFG_BAYSEL_SHIFT 0 + +#define ISC_DPC_CFG_EITPOL BIT(4) + +#define ISC_DPC_CFG_TA_ENABLE BIT(14) +#define ISC_DPC_CFG_TC_ENABLE BIT(13) +#define ISC_DPC_CFG_TM_ENABLE BIT(12) + +#define ISC_DPC_CFG_RE_MODE BIT(17) + +#define ISC_DPC_CFG_GDCCLP_SHIFT 20 +#define ISC_DPC_CFG_GDCCLP_MASK GENMASK(22, 20) + +#define ISC_DPC_CFG_BLOFF_SHIFT 24 +#define ISC_DPC_CFG_BLOFF_MASK GENMASK(31, 24) + +#define ISC_DPC_CFG_BAYCFG_SHIFT 0 +#define ISC_DPC_CFG_BAYCFG_MASK GENMASK(1, 0) +/* ISC DPC Threshold Median Register */ +#define ISC_DPC_THRESHM 0x48 + +/* ISC DPC Threshold Closest Register */ +#define ISC_DPC_THRESHC 0x4C + +/* ISC DPC Threshold Average Register */ +#define ISC_DPC_THRESHA 0x50 + +/* ISC DPC STatus Register */ +#define ISC_DPC_SR 0x54 + /* ISC White Balance Control Register */ #define ISC_WB_CTRL 0x00000058 @@ -153,6 +193,33 @@ /* ISC_Gamma Correction Green Entry Register */ #define ISC_GAM_RENTRY 0x00000298 +/* ISC VHXS Control Register */ +#define ISC_VHXS_CTRL 0x398 + +/* ISC VHXS Source Size Register */ +#define ISC_VHXS_SS 0x39C + +/* ISC VHXS Destination Size Register */ +#define ISC_VHXS_DS 0x3A0 + +/* ISC Vertical Factor Register */ +#define ISC_VXS_FACT 0x3a4 + +/* ISC Horizontal Factor Register */ +#define ISC_HXS_FACT 0x3a8 + +/* ISC Vertical Config Register */ +#define ISC_VXS_CFG 0x3ac + +/* ISC Horizontal Config Register */ +#define ISC_HXS_CFG 0x3b0 + +/* ISC Vertical Tap Register */ +#define ISC_VXS_TAP 0x3b4 + +/* ISC Horizontal Tap Register */ +#define ISC_HXS_TAP 0x434 + /* Offset for CSC register specific to sama5d2 product */ #define ISC_SAMA5D2_CSC_OFFSET 0 -- 2.25.1