|
@@ -0,0 +1,649 @@
|
|
|
|
+/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
+/*
|
|
|
|
+ * Copyright (c) 2024, Qualcomm Innovation Center, Inc. All rights reserved.
|
|
|
|
+ */
|
|
|
|
+
|
|
|
|
+#ifndef _CPASTOP_V665_100_H_
|
|
|
|
+#define _CPASTOP_V665_100_H_
|
|
|
|
+
|
|
|
|
+#define TEST_IRQ_ENABLE 0
|
|
|
|
+
|
|
|
|
+static struct cam_camnoc_irq_sbm cam_cpas_v665_100_irq_sbm = {
|
|
|
|
+ .sbm_enable = {
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .enable = true,
|
|
|
|
+ .offset = 0x240, /* 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 = 0x248, /* CAM_NOC_SBM_FAULTINSTATUS0_LOW */
|
|
|
|
+ },
|
|
|
|
+ .sbm_clear = {
|
|
|
|
+ .access_type = CAM_REG_TYPE_WRITE,
|
|
|
|
+ .enable = true,
|
|
|
|
+ .offset = 0x280, /* CAM_NOC_SBM_FLAGOUTCLR0_LOW */
|
|
|
|
+ .value = TEST_IRQ_ENABLE ? 0x5 : 0x1,
|
|
|
|
+ }
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct cam_camnoc_irq_err
|
|
|
|
+ cam_cpas_v665_100_irq_err[] = {
|
|
|
|
+ {
|
|
|
|
+ .irq_type = CAM_CAMNOC_HW_IRQ_SLAVE_ERROR,
|
|
|
|
+ .enable = false,
|
|
|
|
+ .sbm_port = 0x1, /* SBM_FAULTINSTATUS0_LOW */
|
|
|
|
+ .err_enable = {
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .enable = true,
|
|
|
|
+ .offset = 0x8, /* CAM_NOC_ERL_MAINCTL_LOW */
|
|
|
|
+ .value = 1,
|
|
|
|
+ },
|
|
|
|
+ .err_status = {
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ,
|
|
|
|
+ .enable = true,
|
|
|
|
+ .offset = 0x10, /* CAM_NOC_ERL_ERRVLD_LOW */
|
|
|
|
+ },
|
|
|
|
+ .err_clear = {
|
|
|
|
+ .access_type = CAM_REG_TYPE_WRITE,
|
|
|
|
+ .enable = true,
|
|
|
|
+ .offset = 0x18, /* CAM_NOC_ERL_ERRCLR_LOW */
|
|
|
|
+ .value = 1,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ .irq_type = CAM_CAMNOC_HW_IRQ_IPE_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 = 0x89A0, /* WR_NIU_ENCERREN_LOW */
|
|
|
|
+ .value = 0XF,
|
|
|
|
+ },
|
|
|
|
+ .err_status = {
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ,
|
|
|
|
+ .enable = true,
|
|
|
|
+ .offset = 0x8990, /* WR_NIU_ENCERRSTATUS_LOW */
|
|
|
|
+ },
|
|
|
|
+ .err_clear = {
|
|
|
|
+ .access_type = CAM_REG_TYPE_WRITE,
|
|
|
|
+ .enable = true,
|
|
|
|
+ .offset = 0x8998, /* 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 = 0x8720, /* CAM_NOC_IPE_0_RD_NIU_DECERREN_LOW */
|
|
|
|
+ .value = 0xFF,
|
|
|
|
+ },
|
|
|
|
+ .err_status = {
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ,
|
|
|
|
+ .enable = true,
|
|
|
|
+ .offset = 0x8710, /* CAM_NOC_IPE_0_RD_NIU_DECERRSTATUS_LOW */
|
|
|
|
+ },
|
|
|
|
+ .err_clear = {
|
|
|
|
+ .access_type = CAM_REG_TYPE_WRITE,
|
|
|
|
+ .enable = true,
|
|
|
|
+ .offset = 0x8718, /* CAM_NOC_IPE_0_RD_NIU_DECERRCLR_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 = 0x288, /* CAM_NOC_SBM_FLAGOUTSET0_LOW */
|
|
|
|
+ .value = 0x1,
|
|
|
|
+ },
|
|
|
|
+ .err_status = {
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ,
|
|
|
|
+ .enable = true,
|
|
|
|
+ .offset = 0x290, /* 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,
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct cam_camnoc_specific
|
|
|
|
+ cam_cpas_v665_100_camnoc_specific[] = {
|
|
|
|
+ {
|
|
|
|
+ .port_type = CAM_CAMNOC_TFE_BAYER_STATS,
|
|
|
|
+ .port_name = "TFE_BAYER",
|
|
|
|
+ .enable = true,
|
|
|
|
+ .priority_lut_low = {
|
|
|
|
+ .enable = true,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8A30, /* TFE_BAYER_NIU_PRIORITYLUT_LOW */
|
|
|
|
+ .value = 0x66665433,
|
|
|
|
+ },
|
|
|
|
+ .priority_lut_high = {
|
|
|
|
+ .enable = true,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8A34, /* TFE_BAYER_NIU_PRIORITYLUT_HIGH */
|
|
|
|
+ .value = 0x66666666,
|
|
|
|
+ },
|
|
|
|
+ .urgency = {
|
|
|
|
+ .enable = true,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8A38, /* TFE_BAYER_NIU_URGENCY_LOW */
|
|
|
|
+ .value = 0x1030,
|
|
|
|
+ },
|
|
|
|
+ .danger_lut = {
|
|
|
|
+ .enable = true,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8A40, /* TFE_BAYER_NIU_DANGERLUT_LOW */
|
|
|
|
+ .value = 0xffffff00,
|
|
|
|
+ },
|
|
|
|
+ .safe_lut = {
|
|
|
|
+ .enable = true,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8A48, /* TFE_BAYER_NIU_SAFELUT_LOW */
|
|
|
|
+ .value = 0x0000000f,
|
|
|
|
+ },
|
|
|
|
+ .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 = 0x9008, /* TFE_BAYER_QOSGEN_MAINCTL */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ .qosgen_shaping_low = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x9020, /* TFE_BAYER_QOSGEN_SHAPING_LOW */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ .qosgen_shaping_high = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x9024, /* TFE_BAYER_QOSGEN_SHAPING_HIGH */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ .maxwr_low = {
|
|
|
|
+ .enable = true,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8A20, /* TFE_BAYER_NIU_MAXWR_LOW */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ .port_type = CAM_CAMNOC_TFE_RAW,
|
|
|
|
+ .port_name = "TFE_RDI_RAW",
|
|
|
|
+ .enable = true,
|
|
|
|
+ .priority_lut_low = {
|
|
|
|
+ .enable = true,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8C30, /* TFE_RDI_NIU_PRIORITYLUT_LOW */
|
|
|
|
+ .value = 0x66665433,
|
|
|
|
+ },
|
|
|
|
+ .priority_lut_high = {
|
|
|
|
+ .enable = true,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8C34, /* TFE_RDI_NIU_PRIORITYLUT_HIGH */
|
|
|
|
+ .value = 0x66666666,
|
|
|
|
+ },
|
|
|
|
+ .urgency = {
|
|
|
|
+ .enable = true,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8C38, /* TFE_RDI_RAW_URGENCY_LOW */
|
|
|
|
+ .value = 0x1030,
|
|
|
|
+ },
|
|
|
|
+ .danger_lut = {
|
|
|
|
+ .enable = true,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8C40, /* TFE_RDI_NIU_DANGERLUT_LOW */
|
|
|
|
+ .value = 0xffffff00,
|
|
|
|
+ },
|
|
|
|
+ .safe_lut = {
|
|
|
|
+ .enable = true,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8C48, /* TFE_RDI_NIU_SAFELUT_LOW */
|
|
|
|
+ .value = 0x0000000f,
|
|
|
|
+ },
|
|
|
|
+ .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 = 0x9088, /* TFE_RDI_QOSGEN_MAINCTL */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ .qosgen_shaping_low = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x90A0, /* TFE_RDI_QOSGEN_SHAPING_LOW */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ .qosgen_shaping_high = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x90A4, /* TFE_RDI_QOSGEN_SHAPING_HIGH */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ .maxwr_low = {
|
|
|
|
+ .enable = true,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8C20, /* TFE_RDI_NIU_MAXWR_LOW */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ .port_type = CAM_CAMNOC_OPE_BPS_WR,
|
|
|
|
+ .port_name = "OPE_BPS_WR",
|
|
|
|
+ .enable = true,
|
|
|
|
+ .priority_lut_low = {
|
|
|
|
+ .enable = true,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8830, /* OFFLINE_WR_NIU_PRIORITYLUT_LOW */
|
|
|
|
+ .value = 0x33333333,
|
|
|
|
+ },
|
|
|
|
+ .priority_lut_high = {
|
|
|
|
+ .enable = true,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8834, /* OFFLINE_WR_NIU_PRIORITYLUT_HIGH */
|
|
|
|
+ .value = 0x33333333,
|
|
|
|
+ },
|
|
|
|
+ .urgency = {
|
|
|
|
+ .enable = true,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8838, /* OFFLINE_WR_NIU_URGENCY_LOW */
|
|
|
|
+ .value = 0x030,
|
|
|
|
+ },
|
|
|
|
+ .danger_lut = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8840, /* OFFLINE_WR_NIU_DANGERLUT_LOW */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ .safe_lut = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8848, /* OFFLINE_WR_NIU_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 = 0x8F88, /* OFFLINE_WR_QOSGEN_MAINCTL */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ .qosgen_shaping_low = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8FA0, /* OFFLINE_WR_QOSGEN_SHAPING_LOW */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ .qosgen_shaping_high = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8FA4, /* OFFLINE_WR_QOSGEN_SHAPING_HIGH */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ .maxwr_low = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8820, /* OFFLINE_WR_NIU_MAXWR_LOW */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ .port_type = CAM_CAMNOC_OPE_BPS_CDM_RD,
|
|
|
|
+ .port_name = "OPE_BPS_CDM_RD",
|
|
|
|
+ .enable = true,
|
|
|
|
+ .priority_lut_low = {
|
|
|
|
+ .enable = true,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8630, /* OFFLINE_RD_NIU_PRIORITYLUT_LOW */
|
|
|
|
+ .value = 0x33333333,
|
|
|
|
+ },
|
|
|
|
+ .priority_lut_high = {
|
|
|
|
+ .enable = true,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8634, /* OFFLINE_RD_NIU_PRIORITYLUT_HIGH */
|
|
|
|
+ .value = 0x33333333,
|
|
|
|
+ },
|
|
|
|
+ .urgency = {
|
|
|
|
+ .enable = true,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8638, /* OFFLINE_RD_NIU_URGENCY_LOW */
|
|
|
|
+ .value = 0x003,
|
|
|
|
+ },
|
|
|
|
+ .danger_lut = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8640, /* OFFLINE_RD_NIU_DANGERLUT_LOW */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ .safe_lut = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8648, /* OFFLINE_RD_NIU_SAFELUT_LOW */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ .ubwc_ctl = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ },
|
|
|
|
+ .qosgen_mainctl = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8F08, /* OFFLINE_RD_QOSGEN_MAINCTL */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ .qosgen_shaping_low = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8F20, /* OFFLINE_RD_QOSGEN_SHAPING_LOW */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ .qosgen_shaping_high = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8F24, /* OFFLINE_RD_QOSGEN_SHAPING_HIGH */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ .port_type = CAM_CAMNOC_CRE,
|
|
|
|
+ .port_name = "CRE_RD_WR",
|
|
|
|
+ .enable = true,
|
|
|
|
+ .priority_lut_low = {
|
|
|
|
+ .enable = true,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8230, /* CRE_NIU_PRIORITYLUT_LOW */
|
|
|
|
+ .value = 0x33333333,
|
|
|
|
+ },
|
|
|
|
+ .priority_lut_high = {
|
|
|
|
+ .enable = true,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8234, /* CRE_NIU_PRIORITYLUT_HIGH */
|
|
|
|
+ .value = 0x33333333,
|
|
|
|
+ },
|
|
|
|
+ .urgency = {
|
|
|
|
+ .enable = true,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8238, /* CRE_NIU_URGENCY_LOW */
|
|
|
|
+ .value = 0x033,
|
|
|
|
+ },
|
|
|
|
+ .danger_lut = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8240, /* CRE_NIU_DANGERLUT_LOW */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ .safe_lut = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8248, /* CRE_NIU_SAFELUT_LOW */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ .ubwc_ctl = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ },
|
|
|
|
+ .qosgen_mainctl = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8E88, /* CRE_QOSGEN_MAINCTL */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ .qosgen_shaping_low = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8EA0, /* CRE_QOSGEN_SHAPING_LOW */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ .qosgen_shaping_high = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8EA4, /* CRE_QOSGEN_SHAPING_HIGH */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ .maxwr_low = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8220, /* CRE_NIU_MAXWR_LOW */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ .port_type = CAM_CAMNOC_CDM,
|
|
|
|
+ .port_name = "CDM",
|
|
|
|
+ .enable = true,
|
|
|
|
+ .priority_lut_low = {
|
|
|
|
+ .enable = true,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8030, /* CDM_NIU_PRIORITYLUT_LOW */
|
|
|
|
+ .value = 0x33333333,
|
|
|
|
+ },
|
|
|
|
+ .priority_lut_high = {
|
|
|
|
+ .enable = true,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8034, /* CDM_NIU_PRIORITYLUT_HIGH */
|
|
|
|
+ .value = 0x33333333,
|
|
|
|
+ },
|
|
|
|
+ .urgency = {
|
|
|
|
+ .enable = true,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8038, /* CDM_NIU_URGENCY_LOW */
|
|
|
|
+ .value = 0x3,
|
|
|
|
+ },
|
|
|
|
+ .danger_lut = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8040, /* CDM_NIU_DANGERLUT_LOW */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ .safe_lut = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8048, /* CDM_NIU_SAFELUT_LOW */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ .ubwc_ctl = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ },
|
|
|
|
+ .qosgen_mainctl = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8E08, /* CDM_QOSGEN_MAINCTL */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ .qosgen_shaping_low = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8E20, /* CDM_QOSGEN_SHAPING_LOW */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ .qosgen_shaping_high = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x8E24, /* CDM_QOSGEN_SHAPING_HIGH */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ .port_type = CAM_CAMNOC_ICP,
|
|
|
|
+ .port_name = "ICP",
|
|
|
|
+ .enable = false,
|
|
|
|
+ .flag_out_set0_low = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x288,
|
|
|
|
+ .value = 0x100000,
|
|
|
|
+ },
|
|
|
|
+ .qosgen_mainctl = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x9108, /* ICP_QOSGEN_MAINCTL */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ .qosgen_shaping_low = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x9120, /* ICP_QOSGEN_SHAPING_LOW */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ .qosgen_shaping_high = {
|
|
|
|
+ .enable = false,
|
|
|
|
+ .access_type = CAM_REG_TYPE_READ_WRITE,
|
|
|
|
+ .masked_value = 0,
|
|
|
|
+ .offset = 0x9124, /* ICP_QOSGEN_SHAPING_HIGH */
|
|
|
|
+ .value = 0x0,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct cam_camnoc_err_logger_info cam665_cpas100_err_logger_offsets = {
|
|
|
|
+ .mainctrl = 0x8, /* ERL_MAINCTL_LOW */
|
|
|
|
+ .errvld = 0x10, /* ERl_ERRVLD_LOW */
|
|
|
|
+ .errlog0_low = 0x20, /* ERL_ERRLOG0_LOW */
|
|
|
|
+ .errlog0_high = 0x24, /* ERL_ERRLOG0_HIGH */
|
|
|
|
+ .errlog1_low = 0x28, /* ERL_ERRLOG1_LOW */
|
|
|
|
+ .errlog1_high = 0x2C, /* ERL_ERRLOG1_HIGH */
|
|
|
|
+ .errlog2_low = 0x30, /* ERL_ERRLOG2_LOW */
|
|
|
|
+ .errlog2_high = 0x34, /* ERL_ERRLOG2_HIGH */
|
|
|
|
+ .errlog3_low = 0x38, /* ERL_ERRLOG3_LOW */
|
|
|
|
+ .errlog3_high = 0x3C, /* ERL_ERRLOG3_HIGH */
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct cam_cpas_hw_errata_wa_list cam665_cpas100_errata_wa_list = {
|
|
|
|
+ .enable_icp_clk_for_qchannel = {
|
|
|
|
+ .enable = true,
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct cam_camnoc_info cam665_cpas100_camnoc_info = {
|
|
|
|
+ .specific = &cam_cpas_v665_100_camnoc_specific[0],
|
|
|
|
+ .specific_size = ARRAY_SIZE(cam_cpas_v665_100_camnoc_specific),
|
|
|
|
+ .irq_sbm = &cam_cpas_v665_100_irq_sbm,
|
|
|
|
+ .irq_err = &cam_cpas_v665_100_irq_err[0],
|
|
|
|
+ .irq_err_size = ARRAY_SIZE(cam_cpas_v665_100_irq_err),
|
|
|
|
+ .err_logger = &cam665_cpas100_err_logger_offsets,
|
|
|
|
+ .errata_wa_list = &cam665_cpas100_errata_wa_list,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct cam_cpas_camnoc_qchannel cam665_cpas100_qchannel_info = {
|
|
|
|
+ .qchannel_ctrl = 0x14,
|
|
|
|
+ .qchannel_status = 0x18,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct cam_cpas_info cam665_cpas100_cpas_info = {
|
|
|
|
+ .hw_caps_info = {
|
|
|
|
+ .num_caps_registers = 1,
|
|
|
|
+ .hw_caps_offsets = {0x8},
|
|
|
|
+ },
|
|
|
|
+ .qchannel_info = {&cam665_cpas100_qchannel_info},
|
|
|
|
+ .num_qchannel = 1,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct cam_cpas_top_regs cam665_cpas100_cpas_top_info = {
|
|
|
|
+ .tpg_mux_sel_enabled = true,
|
|
|
|
+ .tpg_mux_sel_shift = 0x0,
|
|
|
|
+ .tpg_mux_sel = 0x1C,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+#endif /* _CPASTOP_V665_100_H_ */
|
|
|
|
+
|