[media] s5p-mfc: Move INIT_BUFFER_OPTIONS from v7 to v6
authorArun Kumar K <arun.kk@samsung.com>
Mon, 19 May 2014 12:33:04 +0000 (09:33 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 23 May 2014 18:29:05 +0000 (15:29 -0300)
The register S5P_FIMV_D_INIT_BUFFER_OPTIONS holds good for v6
firmware too. So moving the definition from v7 regs to v6.

Signed-off-by: Arun Kumar K <arun.kk@samsung.com>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/s5p-mfc/regs-mfc-v6.h
drivers/media/platform/s5p-mfc/regs-mfc-v7.h
drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c

index 8e4021c45cbc7f18a967d314ef7f6078feefcdf9..51cb2dd0e13a857b9bcad8da08915ffc32adbfe3 100644 (file)
 #define S5P_FIMV_D_SLICE_IF_ENABLE_V6          0xf4c4
 #define S5P_FIMV_D_PICTURE_TAG_V6              0xf4c8
 #define S5P_FIMV_D_STREAM_DATA_SIZE_V6         0xf4d0
+#define S5P_FIMV_D_INIT_BUFFER_OPTIONS_V6      0xf47c
 
 /* Display information register */
 #define S5P_FIMV_D_DISPLAY_FRAME_WIDTH_V6      0xf500
index 5dfa1490054cca5d96a81b02c6adc3cff75f90dd..1a5c6fdf78462ea8cedc1cbe3026a8d180347519 100644 (file)
@@ -18,8 +18,6 @@
 #define S5P_FIMV_CODEC_VP8_ENC_V7      25
 
 /* Additional registers for v7 */
-#define S5P_FIMV_D_INIT_BUFFER_OPTIONS_V7              0xf47c
-
 #define S5P_FIMV_E_SOURCE_FIRST_ADDR_V7                        0xf9e0
 #define S5P_FIMV_E_SOURCE_SECOND_ADDR_V7               0xf9e4
 #define S5P_FIMV_E_SOURCE_THIRD_ADDR_V7                        0xf9e8
index f64621ae9b5a563d90a23f855c837d14f30f36fb..518d9a0aaaf67bf183c33149c260e5fb1dfd13aa 100644 (file)
@@ -1310,7 +1310,7 @@ static int s5p_mfc_init_decode_v6(struct s5p_mfc_ctx *ctx)
                reg |= (0x1 << S5P_FIMV_D_OPT_TILE_MODE_SHIFT_V6);
 
        if (IS_MFCV7(dev))
-               WRITEL(reg, S5P_FIMV_D_INIT_BUFFER_OPTIONS_V7);
+               WRITEL(reg, S5P_FIMV_D_INIT_BUFFER_OPTIONS_V6);
        else
                WRITEL(reg, S5P_FIMV_D_DEC_OPTIONS_V6);