提交 1993c339 编写于 作者: A Andrzej Hajda 提交者: Inki Dae

drm/exynos/hdmi: replace all writeb with writel

Registers are 32-bit, even if only lower 8-bits are used.
Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com>
Reviewed-by: NGustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: NInki Dae <inki.dae@samsung.com>
上级 74a74ff4
...@@ -537,7 +537,7 @@ static inline u32 hdmi_reg_read(struct hdmi_context *hdata, u32 reg_id) ...@@ -537,7 +537,7 @@ static inline u32 hdmi_reg_read(struct hdmi_context *hdata, u32 reg_id)
static inline void hdmi_reg_writeb(struct hdmi_context *hdata, static inline void hdmi_reg_writeb(struct hdmi_context *hdata,
u32 reg_id, u8 value) u32 reg_id, u8 value)
{ {
writeb(value, hdata->regs + hdmi_map_reg(hdata, reg_id)); writel(value, hdata->regs + hdmi_map_reg(hdata, reg_id));
} }
static inline void hdmi_reg_writev(struct hdmi_context *hdata, u32 reg_id, static inline void hdmi_reg_writev(struct hdmi_context *hdata, u32 reg_id,
...@@ -546,7 +546,7 @@ static inline void hdmi_reg_writev(struct hdmi_context *hdata, u32 reg_id, ...@@ -546,7 +546,7 @@ static inline void hdmi_reg_writev(struct hdmi_context *hdata, u32 reg_id,
reg_id = hdmi_map_reg(hdata, reg_id); reg_id = hdmi_map_reg(hdata, reg_id);
while (--bytes >= 0) { while (--bytes >= 0) {
writeb(val & 0xff, hdata->regs + reg_id); writel(val & 0xff, hdata->regs + reg_id);
val >>= 8; val >>= 8;
reg_id += 4; reg_id += 4;
} }
...@@ -579,7 +579,7 @@ static int hdmiphy_reg_write_buf(struct hdmi_context *hdata, ...@@ -579,7 +579,7 @@ static int hdmiphy_reg_write_buf(struct hdmi_context *hdata,
} else { } else {
int i; int i;
for (i = 0; i < len; i++) for (i = 0; i < len; i++)
writeb(buf[i], hdata->regs_hdmiphy + writel(buf[i], hdata->regs_hdmiphy +
((reg_offset + i)<<2)); ((reg_offset + i)<<2));
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册