mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 22:23:14 -04:00
disp: msm: sde: add regblk id for reglog through debugfs
This change adds register blk id for reglog while dumping through debugfs. Change-Id: I59ce35a0b6cb4199dd5489568c8d315e584650be Signed-off-by: Yashwanth <yvulapu@codeaurora.org>
This commit is contained in:
parent
73b5bf579d
commit
5a0388a3ed
2 changed files with 5 additions and 4 deletions
|
|
@ -64,6 +64,7 @@ static u32 sde_hw_util_log_mask = SDE_DBG_MASK_NONE;
|
|||
#define QSEED4_DEFAULT_PRELOAD_V 0x2
|
||||
#define QSEED4_DEFAULT_PRELOAD_H 0x4
|
||||
|
||||
#define GET_REG_BLK_ID(c) (c->log_mask ? (ilog2(c->log_mask) + 1) : 0)
|
||||
typedef void (*scaler_lut_type)(struct sde_hw_blk_reg_map *,
|
||||
struct sde_hw_scaler3_cfg *, u32);
|
||||
|
||||
|
|
@ -76,10 +77,9 @@ void sde_reg_write(struct sde_hw_blk_reg_map *c,
|
|||
if (c->log_mask & sde_hw_util_log_mask)
|
||||
SDE_DEBUG_DRIVER("[%s:0x%X] <= 0x%X\n",
|
||||
name, c->blk_off + reg_off, val);
|
||||
SDE_EVT32_REGWRITE(c->blk_off, reg_off, val);
|
||||
SDE_EVT32_REGWRITE(c->blk_off + reg_off, val, GET_REG_BLK_ID(c));
|
||||
writel_relaxed(val, c->base_off + c->blk_off + reg_off);
|
||||
SDE_REG_LOG(c->log_mask ? ilog2(c->log_mask)+1 : 0,
|
||||
val, c->blk_off + reg_off);
|
||||
SDE_REG_LOG(GET_REG_BLK_ID(c), val, c->blk_off + reg_off);
|
||||
}
|
||||
|
||||
int sde_reg_read(struct sde_hw_blk_reg_map *c, u32 reg_off)
|
||||
|
|
|
|||
|
|
@ -36,7 +36,8 @@ void dss_reg_w(struct dss_io_data *io, u32 offset, u32 value, u32 debug)
|
|||
DEV_DBG("[%08x] => %08x [%08x]\n",
|
||||
(u32)(unsigned long)(io->base + offset),
|
||||
value, in_val);
|
||||
SDE_EVT32_REGWRITE(io->base, offset, value, in_val);
|
||||
SDE_EVT32_REGWRITE(io->base + offset, value,
|
||||
SDE_REG_LOG_RSCC, in_val);
|
||||
}
|
||||
SDE_REG_LOG(SDE_REG_LOG_RSCC, value, offset);
|
||||
} /* dss_reg_w */
|
||||
|
|
|
|||
Loading…
Reference in a new issue