|
@@ -0,0 +1,1213 @@
|
|
|
+/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
+/*
|
|
|
+ * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
|
|
|
+ */
|
|
|
+
|
|
|
+#ifndef _CPASTOP_V680_100_H_
|
|
|
+#define _CPASTOP_V680_100_H_
|
|
|
+
|
|
|
+#define TEST_IRQ_ENABLE 0
|
|
|
+
|
|
|
+static struct cam_camnoc_irq_sbm cam_cpas_v680_100_irq_sbm = {
|
|
|
+ .sbm_enable = {
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .enable = true,
|
|
|
+ .offset = 0x2240, /* CAM_NOC_SBM_FAULTINEN0_LOW */
|
|
|
+ .value = 0x2 | /* SBM_FAULTINEN0_LOW_PORT1_MASK */
|
|
|
+ 0x04 | /* SBM_FAULTINEN0_LOW_PORT2_MASK */
|
|
|
+ 0x08 | /* SBM_FAULTINEN0_LOW_PORT3_MASK */
|
|
|
+ 0x10 | /* SBM_FAULTINEN0_LOW_PORT4_MASK */
|
|
|
+ 0x20 | /* SBM_FAULTINEN0_LOW_PORT5_MASK */
|
|
|
+ (TEST_IRQ_ENABLE ?
|
|
|
+ 0x80 : /* SBM_FAULTINEN0_LOW_PORT7_MASK */
|
|
|
+ 0x0),
|
|
|
+ },
|
|
|
+ .sbm_status = {
|
|
|
+ .access_type = CAM_REG_TYPE_READ,
|
|
|
+ .enable = true,
|
|
|
+ .offset = 0x2248, /* CAM_NOC_SBM_FAULTINSTATUS0_LOW */
|
|
|
+ },
|
|
|
+ .sbm_clear = {
|
|
|
+ .access_type = CAM_REG_TYPE_WRITE,
|
|
|
+ .enable = true,
|
|
|
+ .offset = 0x2280, /* CAM_NOC_SBM_FLAGOUTCLR0_LOW */
|
|
|
+ .value = TEST_IRQ_ENABLE ? 0x5 : 0x1,
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
+static struct cam_camnoc_irq_err
|
|
|
+ cam_cpas_v680_100_irq_err[] = {
|
|
|
+ {
|
|
|
+ .irq_type = CAM_CAMNOC_HW_IRQ_SLAVE_ERROR,
|
|
|
+ .enable = false,
|
|
|
+ .sbm_port = 0x1, /* SBM_FAULTINSTATUS0_LOW_PORT0_MASK */
|
|
|
+ .err_enable = {
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .enable = true,
|
|
|
+ .offset = 0x2008, /* CAM_NOC_ERL_MAINCTL_LOW */
|
|
|
+ .value = 1,
|
|
|
+ },
|
|
|
+ .err_status = {
|
|
|
+ .access_type = CAM_REG_TYPE_READ,
|
|
|
+ .enable = true,
|
|
|
+ .offset = 0x2010, /* CAM_NOC_ERL_ERRVLD_LOW */
|
|
|
+ },
|
|
|
+ .err_clear = {
|
|
|
+ .access_type = CAM_REG_TYPE_WRITE,
|
|
|
+ .enable = true,
|
|
|
+ .offset = 0x2018, /* CAM_NOC_ERL_ERRCLR_LOW */
|
|
|
+ .value = 1,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .irq_type = CAM_CAMNOC_HW_IRQ_IFE_UBWC_ENCODE_ERROR,
|
|
|
+ .enable = true,
|
|
|
+ .sbm_port = 0x20, /* SBM_FAULTINSTATUS0_LOW_PORT5_MASK */
|
|
|
+ .err_enable = {
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .enable = true,
|
|
|
+ .offset = 0x59A0, /* IFE_UBWC_NIU_ENCERREN_LOW */
|
|
|
+ .value = 0xF,
|
|
|
+ },
|
|
|
+ .err_status = {
|
|
|
+ .access_type = CAM_REG_TYPE_READ,
|
|
|
+ .enable = true,
|
|
|
+ .offset = 0x5990, /* IFE_UBWC_NIU_ENCERRSTATUS_LOW */
|
|
|
+ },
|
|
|
+ .err_clear = {
|
|
|
+ .access_type = CAM_REG_TYPE_WRITE,
|
|
|
+ .enable = true,
|
|
|
+ .offset = 0x5998, /* IFE_UBWC_NIU_ENCERRCLR_LOW */
|
|
|
+ .value = 0X1,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .irq_type = CAM_CAMNOC_HW_IRQ_BPS_UBWC_ENCODE_ERROR,
|
|
|
+ .enable = true,
|
|
|
+ .sbm_port = 0x2, /* SBM_FAULTINSTATUS0_LOW_PORT1_MASK */
|
|
|
+ .err_enable = {
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .enable = true,
|
|
|
+ .offset = 0x7A0, /* CAM_NOC_BPS_WR_NIU_ENCERREN_LOW */
|
|
|
+ .value = 0XF,
|
|
|
+ },
|
|
|
+ .err_status = {
|
|
|
+ .access_type = CAM_REG_TYPE_READ,
|
|
|
+ .enable = true,
|
|
|
+ .offset = 0x790, /* CAM_NOC_BPS_WR_NIU_ENCERRSTATUS_LOW */
|
|
|
+ },
|
|
|
+ .err_clear = {
|
|
|
+ .access_type = CAM_REG_TYPE_WRITE,
|
|
|
+ .enable = true,
|
|
|
+ .offset = 0x798, /* CAM_NOC_BPS_WR_NIU_ENCERRCLR_LOW */
|
|
|
+ .value = 0X1,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .irq_type = CAM_CAMNOC_HW_IRQ_IPE0_UBWC_DECODE_ERROR,
|
|
|
+ .enable = true,
|
|
|
+ .sbm_port = 0x4, /* SBM_FAULTINSTATUS0_LOW_PORT2_MASK */
|
|
|
+ .err_enable = {
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .enable = true,
|
|
|
+ .offset = 0x5F20, /* CAM_NOC_IPE_0_RD_NIU_DECERREN_LOW */
|
|
|
+ .value = 0xFF,
|
|
|
+ },
|
|
|
+ .err_status = {
|
|
|
+ .access_type = CAM_REG_TYPE_READ,
|
|
|
+ .enable = true,
|
|
|
+ .offset = 0x5F10, /* CAM_NOC_IPE_0_RD_NIU_DECERRSTATUS_LOW */
|
|
|
+ },
|
|
|
+ .err_clear = {
|
|
|
+ .access_type = CAM_REG_TYPE_WRITE,
|
|
|
+ .enable = true,
|
|
|
+ .offset = 0x5F18, /* CAM_NOC_IPE_0_RD_NIU_DECERRCLR_LOW */
|
|
|
+ .value = 0X1,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .irq_type = CAM_CAMNOC_HW_IRQ_IPE1_UBWC_DECODE_ERROR,
|
|
|
+ .enable = true,
|
|
|
+ .sbm_port = 0x8, /* SBM_FAULTINSTATUS0_LOW_PORT3_MASK */
|
|
|
+ .err_enable = {
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .enable = true,
|
|
|
+ .offset = 0x6520, /* CAM_NOC_IPE_1_RD_NIU_DECERREN_LOW */
|
|
|
+ .value = 0XFF,
|
|
|
+ },
|
|
|
+ .err_status = {
|
|
|
+ .access_type = CAM_REG_TYPE_READ,
|
|
|
+ .enable = true,
|
|
|
+ .offset = 0x6510, /* CAM_NOC_IPE_1_RD_NIU_DECERRSTATUS_LOW */
|
|
|
+ },
|
|
|
+ .err_clear = {
|
|
|
+ .access_type = CAM_REG_TYPE_WRITE,
|
|
|
+ .enable = true,
|
|
|
+ .offset = 0x6518, /* CAM_NOC_IPE_1_RD_NIU_DECERRCLR_LOW */
|
|
|
+ .value = 0X1,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .irq_type = CAM_CAMNOC_HW_IRQ_IPE_UBWC_ENCODE_ERROR,
|
|
|
+ .enable = true,
|
|
|
+ .sbm_port = 0x10, /* SBM_FAULTINSTATUS0_LOW_PORT4_MASK */
|
|
|
+ .err_enable = {
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .enable = true,
|
|
|
+ .offset = 0x6BA0, /* CAM_NOC_IPE_WR_NIU_ENCERREN_LOW */
|
|
|
+ .value = 0XF,
|
|
|
+ },
|
|
|
+ .err_status = {
|
|
|
+ .access_type = CAM_REG_TYPE_READ,
|
|
|
+ .enable = true,
|
|
|
+ .offset = 0x6B90, /* CAM_NOC_IPE_WR_NIU_ENCERRSTATUS_LOW */
|
|
|
+ },
|
|
|
+ .err_clear = {
|
|
|
+ .access_type = CAM_REG_TYPE_WRITE,
|
|
|
+ .enable = true,
|
|
|
+ .offset = 0x6B98, /* CAM_NOC_IPE_WR_NIU_ENCERRCLR_LOW */
|
|
|
+ .value = 0x1,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .irq_type = CAM_CAMNOC_HW_IRQ_AHB_TIMEOUT,
|
|
|
+ .enable = false,
|
|
|
+ .sbm_port = 0x40, /* SBM_FAULTINSTATUS0_LOW_PORT6_MASK */
|
|
|
+ .err_enable = {
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .enable = true,
|
|
|
+ .offset = 0x2288, /* CAM_NOC_SBM_FLAGOUTSET0_LOW */
|
|
|
+ .value = 0x1,
|
|
|
+ },
|
|
|
+ .err_status = {
|
|
|
+ .access_type = CAM_REG_TYPE_READ,
|
|
|
+ .enable = true,
|
|
|
+ .offset = 0x2290, /* CAM_NOC_SBM_FLAGOUTSTATUS0_LOW */
|
|
|
+ },
|
|
|
+ .err_clear = {
|
|
|
+ .enable = false, /* CAM_NOC_SBM_FLAGOUTCLR0_LOW */
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .irq_type = CAM_CAMNOC_HW_IRQ_RESERVED1,
|
|
|
+ .enable = false,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .irq_type = CAM_CAMNOC_HW_IRQ_RESERVED2,
|
|
|
+ .enable = false,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .irq_type = CAM_CAMNOC_HW_IRQ_CAMNOC_TEST,
|
|
|
+ .enable = TEST_IRQ_ENABLE ? true : false,
|
|
|
+ .sbm_port = 0x80, /* SBM_FAULTINSTATUS0_LOW_PORT7_MASK */
|
|
|
+ .err_enable = {
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .enable = true,
|
|
|
+ .offset = 0x2288, /* CAM_NOC_SBM_FLAGOUTSET0_LOW */
|
|
|
+ .value = 0x5,
|
|
|
+ },
|
|
|
+ .err_status = {
|
|
|
+ .access_type = CAM_REG_TYPE_READ,
|
|
|
+ .enable = true,
|
|
|
+ .offset = 0x2290, /* CAM_NOC_SBM_FLAGOUTSTATUS0_LOW */
|
|
|
+ },
|
|
|
+ .err_clear = {
|
|
|
+ .enable = false, /* CAM_NOC_SBM_FLAGOUTCLR0_LOW */
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static struct cam_camnoc_specific
|
|
|
+ cam_cpas_v680_100_camnoc_specific[] = {
|
|
|
+ {
|
|
|
+ .port_type = CAM_CAMNOC_IFE_UBWC,
|
|
|
+ .enable = true,
|
|
|
+ .priority_lut_low = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x5830, /* IFE_UBWC_PRIORITYLUT_LOW */
|
|
|
+ .value = 0x66665433,
|
|
|
+ },
|
|
|
+ .priority_lut_high = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x5834, /* IFE_UBWC_PRIORITYLUT_HIGH */
|
|
|
+ .value = 0x66666666,
|
|
|
+ },
|
|
|
+ .urgency = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x5838, /* IFE_UBWC_URGENCY_LOW */
|
|
|
+ .value = 0x1B30,
|
|
|
+ },
|
|
|
+ .danger_lut = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x5840, /* IFE_UBWC_DANGERLUT_LOW */
|
|
|
+ .value = 0xffffff00,
|
|
|
+ },
|
|
|
+ .safe_lut = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x5848, /* IFE_UBWC_SAFELUT_LOW */
|
|
|
+ .value = 0x000f,
|
|
|
+ },
|
|
|
+ .ubwc_ctl = {
|
|
|
+ /*
|
|
|
+ * Do not explicitly set ubwc config register.
|
|
|
+ * Power on default values are taking care of required
|
|
|
+ * register settings.
|
|
|
+ */
|
|
|
+ .enable = false,
|
|
|
+ },
|
|
|
+ .qosgen_mainctl = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x5A08, /* IFE_UBWC_QOSGEN_MAINCTL */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_low = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x5A20, /* IFE_UBWC_QOSGEN_SHAPING_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_high = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x5A24, /* IFE_UBWC_QOSGEN_SHAPING_HIGH */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .port_type = CAM_CAMNOC_IFE_RDI_WR,
|
|
|
+ .enable = true,
|
|
|
+ .priority_lut_low = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x5230, /* IFE_RDI_WR_PRIORITYLUT_LOW */
|
|
|
+ .value = 0x66665433,
|
|
|
+ },
|
|
|
+ .priority_lut_high = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x5234, /* IFE_RDI_WR_PRIORITYLUT_HIGH */
|
|
|
+ .value = 0x66666666,
|
|
|
+ },
|
|
|
+ .urgency = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x5238, /* IFE_RDI_WR_URGENCY_LOW */
|
|
|
+ .value = 0x1B30,
|
|
|
+ },
|
|
|
+ .danger_lut = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x5240, /* IFE_RDI_WR_DANGERLUT_LOW */
|
|
|
+ .value = 0xffffff00,
|
|
|
+ },
|
|
|
+ .safe_lut = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x5248, /* IFE_RDI_WR_SAFELUT_LOW */
|
|
|
+ .value = 0x000f,
|
|
|
+ },
|
|
|
+ .ubwc_ctl = {
|
|
|
+ /*
|
|
|
+ * Do not explicitly set ubwc config register.
|
|
|
+ * Power on default values are taking care of required
|
|
|
+ * register settings.
|
|
|
+ */
|
|
|
+ .enable = false,
|
|
|
+ },
|
|
|
+ .qosgen_mainctl = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x5408, /* IFE_RDI_WR_QOSGEN_MAINCTL */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_low = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x5420, /* IFE_RDI_WR_QOSGEN_SHAPING_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_high = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x5424, /* IFE_RDI_WR_QOSGEN_SHAPING_HIGH */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .port_type = CAM_CAMNOC_IFE_PDAF,
|
|
|
+ .enable = true,
|
|
|
+ .priority_lut_low = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x4c30, /* IFE_PDAF_PRIORITYLUT_LOW */
|
|
|
+ .value = 0x66665433,
|
|
|
+ },
|
|
|
+ .priority_lut_high = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x4c34, /* IFE_PDAF_PRIORITYLUT_HIGH */
|
|
|
+ .value = 0x66666666,
|
|
|
+ },
|
|
|
+ .urgency = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x4c38, /* IFE_PDAF_URGENCY_LOW */
|
|
|
+ .value = 0x1B30,
|
|
|
+ },
|
|
|
+ .danger_lut = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x4c40, /* IFE_PDAF_DANGERLUT_LOW */
|
|
|
+ .value = 0xffffff00,
|
|
|
+ },
|
|
|
+ .safe_lut = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x4c48, /* IFE_PDAF_SAFELUT_LOW */
|
|
|
+ .value = 0x000f,
|
|
|
+ },
|
|
|
+ .ubwc_ctl = {
|
|
|
+ /*
|
|
|
+ * Do not explicitly set ubwc config register.
|
|
|
+ * Power on default values are taking care of required
|
|
|
+ * register settings.
|
|
|
+ */
|
|
|
+ .enable = false,
|
|
|
+ },
|
|
|
+ .qosgen_mainctl = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x4e08, /* IFE_PDAF_QOSGEN_MAINCTL */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_low = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x4e20, /* IFE_PDAF_QOSGEN_SHAPING_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_high = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x4e24, /* IFE_PDAF_QOSGEN_SHAPING_HIGH */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .port_type = CAM_CAMNOC_IFE_LINEAR_STATS,
|
|
|
+ .enable = true,
|
|
|
+ .priority_lut_low = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x4030, /* IFE_LINEAR_PRIORITYLUT_LOW */
|
|
|
+ .value = 0x66665433,
|
|
|
+ },
|
|
|
+ .priority_lut_high = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x4034, /* IFE_LINEAR_PRIORITYLUT_HIGH */
|
|
|
+ .value = 0x66666666,
|
|
|
+ },
|
|
|
+ .urgency = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x4038, /* IFE_LINEAR_URGENCY_LOW */
|
|
|
+ .value = 0x1B30,
|
|
|
+ },
|
|
|
+ .danger_lut = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x4040, /* IFE_LINEAR_DANGERLUT_LOW */
|
|
|
+ .value = 0xffffff00,
|
|
|
+ },
|
|
|
+ .safe_lut = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x4048, /* IFE_LINEAR_SAFELUT_LOW */
|
|
|
+ .value = 0x000f,
|
|
|
+ },
|
|
|
+ .ubwc_ctl = {
|
|
|
+ /*
|
|
|
+ * Do not explicitly set ubwc config register.
|
|
|
+ * Power on default values are taking care of required
|
|
|
+ * register settings.
|
|
|
+ */
|
|
|
+ .enable = false,
|
|
|
+ },
|
|
|
+ .qosgen_mainctl = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x4208, /* IFE_LINEAR_QOSGEN_MAINCTL */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_low = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x4220, /* IFE_LINEAR_QOSGEN_SHAPING_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_high = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x4224, /* IFE_LINEAR_QOSGEN_SHAPING_HIGH */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .port_type = CAM_CAMNOC_IFE_LINEAR_STATS_1,
|
|
|
+ .enable = true,
|
|
|
+ .priority_lut_low = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x8230, /* IFE_LINEAR_1_PRIORITYLUT_LOW */
|
|
|
+ .value = 0x66665433,
|
|
|
+ },
|
|
|
+ .priority_lut_high = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x8234, /* IFE_LINEAR_1_PRIORITYLUT_HIGH */
|
|
|
+ .value = 0x66666666,
|
|
|
+ },
|
|
|
+ .urgency = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x8238, /* IFE_LINEAR_1_URGENCY_LOW */
|
|
|
+ .value = 0x1B30,
|
|
|
+ },
|
|
|
+ .danger_lut = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x8240, /* IFE_LINEAR_1_DANGERLUT_LOW */
|
|
|
+ .value = 0xffffff00,
|
|
|
+ },
|
|
|
+ .safe_lut = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x8248, /* IFE_LINEAR_1_SAFELUT_LOW */
|
|
|
+ .value = 0x000f,
|
|
|
+ },
|
|
|
+ .ubwc_ctl = {
|
|
|
+ /*
|
|
|
+ * Do not explicitly set ubwc config register.
|
|
|
+ * Power on default values are taking care of required
|
|
|
+ * register settings.
|
|
|
+ */
|
|
|
+ .enable = false,
|
|
|
+ },
|
|
|
+ .qosgen_mainctl = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x8408, /* IFE_LINEAR_1_QOSGEN_MAINCTL */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_low = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x8420, /* IFE_LINEAR_1_QOSGEN_SHAPING_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_high = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x8424, /* IFE_LINEAR_1_QOSGEN_SHAPING_HIGH */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .port_type = CAM_CAMNOC_IFE_LITE,
|
|
|
+ .enable = true,
|
|
|
+ .priority_lut_low = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x4630, /* IFE_LITE_PRIORITYLUT_LOW */
|
|
|
+ .value = 0x66665433,
|
|
|
+ },
|
|
|
+ .priority_lut_high = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x4634, /* IFE_LITE_PRIORITYLUT_HIGH */
|
|
|
+ .value = 0x66666666,
|
|
|
+ },
|
|
|
+ .urgency = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x4638, /* IFE_LITE_URGENCY_LOW */
|
|
|
+ .value = 0x1B30,
|
|
|
+ },
|
|
|
+ .danger_lut = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x4640, /* IFE_LITE_DANGERLUT_LOW */
|
|
|
+ .value = 0xffffff00,
|
|
|
+ },
|
|
|
+ .safe_lut = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x4648, /* IFE_LITE_SAFELUT_LOW */
|
|
|
+ .value = 0x000f,
|
|
|
+ },
|
|
|
+ .ubwc_ctl = {
|
|
|
+ /*
|
|
|
+ * Do not explicitly set ubwc config register.
|
|
|
+ * Power on default values are taking care of required
|
|
|
+ * register settings.
|
|
|
+ */
|
|
|
+ .enable = false,
|
|
|
+ },
|
|
|
+ .qosgen_mainctl = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x4808, /* IFE_LITE_QOSGEN_MAINCTL */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_low = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x4820, /* IFE_LITE_QOSGEN_SHAPING_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_high = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x4824, /* IFE_LITE_QOSGEN_SHAPING_HIGH */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .port_type = CAM_CAMNOC_SFE_RD,
|
|
|
+ .enable = true,
|
|
|
+ .priority_lut_low = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x7030, /* SFE_RD_PRIORITYLUT_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .priority_lut_high = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x7034, /* SFE_RD_PRIORITYLUT_HIGH */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .urgency = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x7038, /* SFE_RD_URGENCY_LOW */
|
|
|
+ .value = 0x3,
|
|
|
+ },
|
|
|
+ .danger_lut = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x7040, /* SFE_RD_DANGERLUT_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .safe_lut = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x7048, /* SFE_RD_SAFELUT_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .ubwc_ctl = {
|
|
|
+ /*
|
|
|
+ * Do not explicitly set ubwc config register.
|
|
|
+ * Power on default values are taking care of required
|
|
|
+ * register settings.
|
|
|
+ */
|
|
|
+ .enable = false,
|
|
|
+ },
|
|
|
+ .qosgen_mainctl = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x7208, /* SFE_RD_QOSGEN_MAINCTL */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_low = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x7220, /* SFE_RD_QOSGEN_SHAPING_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_high = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x7224, /* SFE_RD_QOSGEN_SHAPING_HIGH */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .port_type = CAM_CAMNOC_IPE_WR,
|
|
|
+ .enable = true,
|
|
|
+ .priority_lut_low = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x6a30, /* IPE_WR_PRIORITYLUT_LOW */
|
|
|
+ .value = 0x33333333,
|
|
|
+ },
|
|
|
+ .priority_lut_high = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x6a34, /* IPE_WR_PRIORITYLUT_HIGH */
|
|
|
+ .value = 0x33333333,
|
|
|
+ },
|
|
|
+ .urgency = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x6a38, /* IPE_WR_URGENCY_LOW */
|
|
|
+ .value = 0x30,
|
|
|
+ },
|
|
|
+ .danger_lut = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x6a40, /* IPE_WR_DANGERLUT_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .safe_lut = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x6a48, /* IPE_WR_SAFELUT_LOW */
|
|
|
+ .value = 0xffff,
|
|
|
+ },
|
|
|
+ .ubwc_ctl = {
|
|
|
+ .enable = false,
|
|
|
+ },
|
|
|
+ .qosgen_mainctl = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x6c08, /* IPE_WR_QOSGEN_MAINCTL */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_low = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x6c20, /* IPE_WR_QOSGEN_SHAPING_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_high = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x6c24, /* IPE_WR_QOSGEN_SHAPING_HIGH */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .port_type = CAM_CAMNOC_BPS_WR,
|
|
|
+ .enable = true,
|
|
|
+ .priority_lut_low = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x630, /* BPS_WR_PRIORITYLUT_LOW */
|
|
|
+ .value = 0x33333333,
|
|
|
+ },
|
|
|
+ .priority_lut_high = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x634, /* BPS_WR_PRIORITYLUT_HIGH */
|
|
|
+ .value = 0x33333333,
|
|
|
+ },
|
|
|
+ .urgency = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x638, /* BPS_WR_URGENCY_LOW */
|
|
|
+ .value = 0x30,
|
|
|
+ },
|
|
|
+ .danger_lut = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x640, /* BPS_WR_DANGERLUT_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .safe_lut = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x648, /* BPS_WR_SAFELUT_LOW */
|
|
|
+ .value = 0xffff,
|
|
|
+ },
|
|
|
+ .ubwc_ctl = {
|
|
|
+ .enable = false,
|
|
|
+ },
|
|
|
+ .qosgen_mainctl = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x808, /* BPS_WR_QOSGEN_MAINCTL */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_low = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x820, /* BPS_WR_QOSGEN_SHAPING_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_high = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x824, /* BPS_WR_QOSGEN_SHAPING_HIGH */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .port_type = CAM_CAMNOC_BPS_RD,
|
|
|
+ .enable = true,
|
|
|
+ .priority_lut_low = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x30, /* BPS_RD_PRIORITYLUT_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .priority_lut_high = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x34, /* BPS_RD_PRIORITYLUT_HIGH */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .urgency = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x38, /* BPS_RD_URGENCY_LOW */
|
|
|
+ .value = 0x3,
|
|
|
+ },
|
|
|
+ .danger_lut = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x40, /* BPS_RD_DANGERLUT_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .safe_lut = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x48, /* BPS_RD_SAFELUT_LOW */
|
|
|
+ .value = 0xffff,
|
|
|
+ },
|
|
|
+ .ubwc_ctl = {
|
|
|
+ .enable = false,
|
|
|
+ },
|
|
|
+ .qosgen_mainctl = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x208, /* BPS_RD_QOSGEN_MAINCTL */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_low = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x220, /* BPS_RD_QOSGEN_SHAPING_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_high = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x224, /* BPS_RD_QOSGEN_SHAPING_HIGH */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .port_type = CAM_CAMNOC_JPEG,
|
|
|
+ .enable = true,
|
|
|
+ .priority_lut_low = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x7c30, /* JPEG_PRIORITYLUT_LOW */
|
|
|
+ .value = 0x22222222,
|
|
|
+ },
|
|
|
+ .priority_lut_high = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x7c34, /* JPEG_PRIORITYLUT_HIGH */
|
|
|
+ .value = 0x22222222,
|
|
|
+ },
|
|
|
+ .urgency = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x7c38, /* JPEG_URGENCY_LOW */
|
|
|
+ .value = 0x22,
|
|
|
+ },
|
|
|
+ .danger_lut = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x7c40, /* JPEG_DANGERLUT_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .safe_lut = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x7c48, /* JPEG_SAFELUT_LOW */
|
|
|
+ .value = 0xffff,
|
|
|
+ },
|
|
|
+ .ubwc_ctl = {
|
|
|
+ .enable = false,
|
|
|
+ },
|
|
|
+ .qosgen_mainctl = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x7e08, /* JPEG_QOSGEN_MAINCTL */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_low = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x7e20, /* JPEG_QOSGEN_SHAPING_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_high = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x7e24, /* JPEG_QOSGEN_SHAPING_HIGH */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .port_type = CAM_CAMNOC_IPE0_RD,
|
|
|
+ .enable = true,
|
|
|
+ .priority_lut_low = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x5E30, /* IPE0_RD_PRIORITYLUT_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .priority_lut_high = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x5E34, /* IPE0_RD_PRIORITYLUT_HIGH */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .urgency = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x5E38, /* IPE0_RD_URGENCY_LOW */
|
|
|
+ .value = 0x3,
|
|
|
+ },
|
|
|
+ .danger_lut = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x5E40, /* IPE0_RD_DANGERLUT_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .safe_lut = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x5E48, /* IPE0_RD_SAFELUT_LOW */
|
|
|
+ .value = 0xffff,
|
|
|
+ },
|
|
|
+ .ubwc_ctl = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x5F08, /* IPE0_RD_DECCTL_LOW */
|
|
|
+ .value = 1,
|
|
|
+ },
|
|
|
+ .qosgen_mainctl = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x6008, /* IPE0_RD_QOSGEN_MAINCTL */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_low = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x6020, /* IPE0_RD_QOSGEN_SHAPING_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_high = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x6024, /* IPE0_RD_QOSGEN_SHAPING_HIGH */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .port_type = CAM_CAMNOC_IPE1_RD,
|
|
|
+ .enable = true,
|
|
|
+ .priority_lut_low = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x6430, /* IPE1_RD_PRIORITYLUT_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .priority_lut_high = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x6434, /* IPE1_RD_PRIORITYLUT_HIGH */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .urgency = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x6438, /* IPE1_RD_URGENCY_LOW */
|
|
|
+ .value = 0x3,
|
|
|
+ },
|
|
|
+ .danger_lut = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x6440, /* IPE1_RD_DANGERLUT_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .safe_lut = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x6448, /* IPE1_RD_SAFELUT_LOW */
|
|
|
+ .value = 0xffff,
|
|
|
+ },
|
|
|
+ .ubwc_ctl = {
|
|
|
+ .enable = false,
|
|
|
+ },
|
|
|
+ .qosgen_mainctl = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x6608, /* IPE1_RD_QOSGEN_MAINCTL */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_low = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x6620, /* IPE1_RD_QOSGEN_SHAPING_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_high = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x6624, /* IPE1_RD_QOSGEN_SHAPING_HIGH */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .port_type = CAM_CAMNOC_CDM,
|
|
|
+ .enable = true,
|
|
|
+ .priority_lut_low = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x3830, /* CDM_PRIORITYLUT_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .priority_lut_high = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x3834, /* CDM_PRIORITYLUT_HIGH */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .urgency = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x3838, /* CDM_URGENCY_LOW */
|
|
|
+ .value = 0x3,
|
|
|
+ },
|
|
|
+ .danger_lut = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x3840, /* CDM_DANGERLUT_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .safe_lut = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x3848, /* CDM_SAFELUT_LOW */
|
|
|
+ .value = 0xffff,
|
|
|
+ },
|
|
|
+ .ubwc_ctl = {
|
|
|
+ .enable = false,
|
|
|
+ },
|
|
|
+ .qosgen_mainctl = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x3a08, /* CDM_QOSGEN_MAINCTL */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_low = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x3a20, /* CDM_QOSGEN_SHAPING_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_high = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x3a24, /* CDM_QOSGEN_SHAPING_HIGH */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .port_type = CAM_CAMNOC_ICP,
|
|
|
+ .enable = true,
|
|
|
+ .flag_out_set0_low = {
|
|
|
+ .enable = true,
|
|
|
+ .access_type = CAM_REG_TYPE_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x2288,
|
|
|
+ .value = 0x100000,
|
|
|
+ },
|
|
|
+ .qosgen_mainctl = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x7688, /* ICP_QOSGEN_MAINCTL */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_low = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x76A0, /* ICP_QOSGEN_SHAPING_LOW */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ .qosgen_shaping_high = {
|
|
|
+ .enable = false,
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
+ .masked_value = 0,
|
|
|
+ .offset = 0x76A4, /* ICP_QOSGEN_SHAPING_HIGH */
|
|
|
+ .value = 0x0,
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static struct cam_camnoc_err_logger_info cam680_cpas100_err_logger_offsets = {
|
|
|
+ .mainctrl = 0x2008, /* ERRLOGGER_MAINCTL_LOW */
|
|
|
+ .errvld = 0x2010, /* ERRLOGGER_ERRVLD_LOW */
|
|
|
+ .errlog0_low = 0x2020, /* ERRLOGGER_ERRLOG0_LOW */
|
|
|
+ .errlog0_high = 0x2024, /* ERRLOGGER_ERRLOG0_HIGH */
|
|
|
+ .errlog1_low = 0x2028, /* ERRLOGGER_ERRLOG1_LOW */
|
|
|
+ .errlog1_high = 0x202c, /* ERRLOGGER_ERRLOG1_HIGH */
|
|
|
+ .errlog2_low = 0x2030, /* ERRLOGGER_ERRLOG2_LOW */
|
|
|
+ .errlog2_high = 0x2034, /* ERRLOGGER_ERRLOG2_HIGH */
|
|
|
+ .errlog3_low = 0x2038, /* ERRLOGGER_ERRLOG3_LOW */
|
|
|
+ .errlog3_high = 0x203c, /* ERRLOGGER_ERRLOG3_HIGH */
|
|
|
+};
|
|
|
+
|
|
|
+static struct cam_cpas_hw_errata_wa_list cam680_cpas100_errata_wa_list = {
|
|
|
+ .camnoc_flush_slave_pending_trans = {
|
|
|
+ .enable = false,
|
|
|
+ .data.reg_info = {
|
|
|
+ .access_type = CAM_REG_TYPE_READ,
|
|
|
+ .offset = 0x2300, /* sbm_SenseIn0_Low */
|
|
|
+ .mask = 0xE0000, /* Bits 17, 18, 19 */
|
|
|
+ .value = 0, /* expected to be 0 */
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static struct cam_camnoc_info cam680_cpas100_camnoc_info = {
|
|
|
+ .specific = &cam_cpas_v680_100_camnoc_specific[0],
|
|
|
+ .specific_size = ARRAY_SIZE(cam_cpas_v680_100_camnoc_specific),
|
|
|
+ .irq_sbm = &cam_cpas_v680_100_irq_sbm,
|
|
|
+ .irq_err = &cam_cpas_v680_100_irq_err[0],
|
|
|
+ .irq_err_size = ARRAY_SIZE(cam_cpas_v680_100_irq_err),
|
|
|
+ .err_logger = &cam680_cpas100_err_logger_offsets,
|
|
|
+ .errata_wa_list = &cam680_cpas100_errata_wa_list,
|
|
|
+};
|
|
|
+
|
|
|
+#endif /* _CPASTOP_V680_100_H_ */
|
|
|
+
|