Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b6fc57a authored by Gopikrishnaiah Anandan's avatar Gopikrishnaiah Anandan Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdp: update pgc



PGC block of mdss supports 8/10 bit rounding options.
Default setting is 10 bit, userspace module can enable 8 bit rounding by
updating the flag.

Change-Id: Ide66c3854e333a0a1ce48b15d82760f37a05cc10
Signed-off-by: default avatarGopikrishnaiah Anandan <agopik@codeaurora.org>
parent 3b3deef7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
 * Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1990,6 +1990,8 @@ set_ops:
		writel_relaxed(0, base_addr + PGC_OPMODE_OFF);
	} else if (pgc_data->flags & MDP_PP_OPS_ENABLE) {
		val = PGC_ENABLE;
		val |= (pgc_data->flags & MDP_PP_PGC_ROUNDING_ENABLE)
			? BIT(1) : 0;
		writel_relaxed(val, base_addr + PGC_OPMODE_OFF);
		*sts |= PP_STS_ENABLE;
	}
+1 −0
Original line number Diff line number Diff line
@@ -912,6 +912,7 @@ struct mdp_ar_gc_lut_data {
	uint32_t offset;
};

#define MDP_PP_PGC_ROUNDING_ENABLE 0x10
struct mdp_pgc_lut_data {
	uint32_t version;
	uint32_t block;