media: atomisp: get rid of ISP_VMEM_IS_BAMEM unused defines
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 29 Apr 2020 12:12:27 +0000 (14:12 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 20 May 2020 10:32:18 +0000 (12:32 +0200)
There are several defines on ISP-specific definition sets
that are unused, related to VMEM_BAMEM. Get rid of those.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2400_system/hrt/isp2400_mamoiada_params.h
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/isp_global.h
drivers/staging/media/atomisp/pci/atomisp2/css2400/isp2401_mamoiada_params.h

index 843c819..edc4d4f 100644 (file)
 #define ISP_VMEM_BSEL_DOWNSAMPLE               8
 #define ISP_VMEM_ELEMBITS                      14
 #define ISP_VMEM_ELEM_PRECISION                14
-#define ISP_VMEM_IS_BAMEM                      1
-#if ISP_VMEM_IS_BAMEM
-#define ISP_VMEM_BAMEM_MAX_BOI_HEIGHT        8
-#define ISP_VMEM_BAMEM_LATENCY               5
-#define ISP_VMEM_BAMEM_BANK_NARROWING_FACTOR 2
-#define ISP_VMEM_BAMEM_NR_DATA_PLANES        8
-#define ISP_VMEM_BAMEM_NR_CFG_REGISTERS      16
-#define ISP_VMEM_BAMEM_LININT                0
-#define ISP_VMEM_BAMEM_DAP_BITS              3
-#define ISP_VMEM_BAMEM_LININT_FRAC_BITS      0
-#define ISP_VMEM_BAMEM_PID_BITS              3
-#define ISP_VMEM_BAMEM_OFFSET_BITS           19
-#define ISP_VMEM_BAMEM_ADDRESS_BITS          25
-#define ISP_VMEM_BAMEM_RID_BITS              4
-#define ISP_VMEM_BAMEM_TRANSPOSITION         1
-#define ISP_VMEM_BAMEM_VEC_PLUS_SLICE        1
-#define ISP_VMEM_BAMEM_ARB_SERVICE_CYCLE_BITS 1
-#define ISP_VMEM_BAMEM_LUT_ELEMS             16
-#define ISP_VMEM_BAMEM_LUT_ADDR_WIDTH        14
-#define ISP_VMEM_BAMEM_HALF_BLOCK_WRITE      1
-#define ISP_VMEM_BAMEM_SMART_FETCH           1
-#define ISP_VMEM_BAMEM_BIG_ENDIANNESS        0
-#endif /* ISP_VMEM_IS_BAMEM */
 #define ISP_PMEM_DEPTH                         2048
 #define ISP_PMEM_WIDTH                         640
 #define ISP_VAMEM_ADDRESS_BITS                 12
 #define ISP_SLICE_WIDTH                        56
 #define ISP_VMEM_WIDTH                         896
 #define ISP_VMEM_ALIGN                         128
-#if ISP_VMEM_IS_BAMEM
-#define ISP_VMEM_ALIGN_ELEM                  2
-#endif /* ISP_VMEM_IS_BAMEM */
 #define ISP_SIMDLSU                            1
 #define ISP_LSU_IMM_BITS                       12
 
index 59d28f4..1a8547d 100644 (file)
@@ -98,7 +98,6 @@
 #define ISP_HMEM_SINK_REG              0x08
 
 /* ISP2401 */
-#define ISP_BAMEM_ALIGN_ELEM ISP_VMEM_ALIGN_ELEM
 #define BAMEM VMEM
 #define XNR3_DOWN_BAMEM_BASE_ADDRESS    (0x16880)
 #define XNR3_UP_BAMEM_BASE_ADDRESS      (0x12880)
index e548e45..42f8214 100644 (file)
 #define ISP_VMEM_BSEL_DOWNSAMPLE               8
 #define ISP_VMEM_ELEMBITS                      14
 #define ISP_VMEM_ELEM_PRECISION                14
-#define ISP_VMEM_IS_BAMEM                      1
-#if ISP_VMEM_IS_BAMEM
-#define ISP_VMEM_BAMEM_MAX_BOI_HEIGHT        8
-#define ISP_VMEM_BAMEM_LATENCY               5
-#define ISP_VMEM_BAMEM_BANK_NARROWING_FACTOR 2
-#define ISP_VMEM_BAMEM_NR_DATA_PLANES        8
-#define ISP_VMEM_BAMEM_NR_CFG_REGISTERS      16
-#define ISP_VMEM_BAMEM_LININT                0
-#define ISP_VMEM_BAMEM_DAP_BITS              3
-#define ISP_VMEM_BAMEM_LININT_FRAC_BITS      0
-#define ISP_VMEM_BAMEM_PID_BITS              3
-#define ISP_VMEM_BAMEM_OFFSET_BITS           19
-#define ISP_VMEM_BAMEM_ADDRESS_BITS          25
-#define ISP_VMEM_BAMEM_RID_BITS              4
-#define ISP_VMEM_BAMEM_TRANSPOSITION         1
-#define ISP_VMEM_BAMEM_VEC_PLUS_SLICE        1
-#define ISP_VMEM_BAMEM_ARB_SERVICE_CYCLE_BITS 1
-#define ISP_VMEM_BAMEM_LUT_ELEMS             16
-#define ISP_VMEM_BAMEM_LUT_ADDR_WIDTH        14
-#define ISP_VMEM_BAMEM_HALF_BLOCK_WRITE      1
-#define ISP_VMEM_BAMEM_SMART_FETCH           1
-#define ISP_VMEM_BAMEM_BIG_ENDIANNESS        0
-#endif /* ISP_VMEM_IS_BAMEM */
 #define ISP_PMEM_DEPTH                         2048
 #define ISP_PMEM_WIDTH                         640
 #define ISP_VAMEM_ADDRESS_BITS                 12
 #define ISP_SLICE_WIDTH                        56
 #define ISP_VMEM_WIDTH                         896
 #define ISP_VMEM_ALIGN                         128
-#if ISP_VMEM_IS_BAMEM
-#define ISP_VMEM_ALIGN_ELEM                  2
-#endif /* ISP_VMEM_IS_BAMEM */
 #define ISP_SIMDLSU                            1
 #define ISP_LSU_IMM_BITS                       12