Commit c6bd4905 authored by Dhaval Patel's avatar Dhaval Patel Committed by Nikola Majkić
Browse files

msm: mdss: update layer mixer access for calibration tool


Calibration tool should have register access on all layer
mixers connected to DSPP pipe and WB path. It should
also have control layer register access to read
the current layer mixer configuration.

Change-Id: If2cc86c2e6f470e090746a400b16cb540948c3e9
Signed-off-by: default avatarDhaval Patel <pdhaval@codeaurora.org>
parent bfe0c961
......@@ -110,7 +110,8 @@ enum mdss_mdp_ctl_index {
#define MDSS_MDP_REG_CTL_OFFSET(ctl) (0x00600 + ((ctl) * \
MDSS_MDP_CTL_ADDRESS_OFFSET))
#define MDSS_MDP_REG_CTL_LAYER(lm) ((lm) * 0x004)
#define MDSS_MDP_REG_CTL_LAYER(lm) \
((lm == 5) ? (0x024) : ((lm) * 0x004))
#define MDSS_MDP_REG_CTL_TOP 0x014
#define MDSS_MDP_REG_CTL_FLUSH 0x018
#define MDSS_MDP_REG_CTL_START 0x01C
......
......@@ -4626,7 +4626,8 @@ static int is_valid_calib_ctrl_addr(char __iomem *ptr)
break;
}
for (stage = 0; stage < mdss_res->nmixers_intf; stage++)
for (stage = 0; stage < (mdss_res->nmixers_intf +
mdss_res->nmixers_wb); stage++)
if (ptr == base + MDSS_MDP_REG_CTL_LAYER(stage)) {
ret = MDP_PP_OPS_READ | MDP_PP_OPS_WRITE;
goto End;
......@@ -4805,7 +4806,8 @@ static int is_valid_calib_mixer_addr(char __iomem *ptr)
int stage = 0;
struct mdss_mdp_mixer *mixer;
for (counter = 0; counter < mdss_res->nmixers_intf; counter++) {
for (counter = 0; counter < (mdss_res->nmixers_intf +
mdss_res->nmixers_wb); counter++) {
mixer = mdss_res->mixer_intf + counter;
base = mixer->base;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment