media: rockchip: ispp: support sharp fbc rotation

Change-Id: Ide6b2adf289d03524b0105b3b7640c419e86fb2a
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This commit is contained in:
Cai YiWei
2020-07-13 17:34:30 +08:00
committed by Tao Huang
parent 27e2f35d39
commit fb9c868033
3 changed files with 6 additions and 0 deletions

View File

@@ -343,6 +343,9 @@ static void shp_config(struct rkispp_params_vdev *params_vdev,
void __iomem *base = params_vdev->dev->base_addr;
u32 i, val;
rkispp_set_bits(base + RKISPP_SHARP_CTRL, SW_SHP_WR_ROT_MODE(3),
SW_SHP_WR_ROT_MODE(arg->rotation));
rkispp_write(base + RKISPP_SHARP_SC_DOWN,
(arg->scl_down_v & 0x1) << 1 | (arg->scl_down_h & 0x1));

View File

@@ -1041,6 +1041,8 @@ static int config_mb(struct rkispp_stream *stream)
}
if (stream->out_cap_fmt.wr_fmt & FMT_YUYV)
mult = 2;
else if (stream->out_cap_fmt.wr_fmt & FMT_FBC)
mult = 0;
set_vir_stride(stream, ALIGN(stream->out_fmt.width * mult, 16) >> 2);
v4l2_dbg(1, rkispp_debug, &dev->v4l2_dev,
"%s last module:%d\n", __func__, i);

View File

@@ -167,6 +167,7 @@ struct rkispp_nr_config {
} __attribute__ ((packed));
struct rkispp_sharp_config {
u8 rotation;
u8 scl_down_v;
u8 scl_down_h;
u8 tile_ycnt;