diff options
author | Jernej Skrabec <jernej.skrabec@siol.net> | 2020-04-13 12:54:57 +0300 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2020-06-10 10:11:49 +0300 |
commit | 54e1e06bcf1cf6e7ac3f86daa5f7454add24b494 (patch) | |
tree | ac9f71238a029702a80ec4c191cfb102c1b66528 /drivers/gpu/drm/sun4i/sun4i_hdmi.h | |
parent | 968d81a64a883af2d16dd3f8a6ad6b67db2fde58 (diff) | |
download | linux-54e1e06bcf1cf6e7ac3f86daa5f7454add24b494.tar.xz |
drm/sun4i: hdmi ddc clk: Fix size of m divider
m divider in DDC clock register is 4 bits wide. Fix that.
Fixes: 9c5681011a0c ("drm/sun4i: Add HDMI support")
Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20200413095457.1176754-1-jernej.skrabec@siol.net
Diffstat (limited to 'drivers/gpu/drm/sun4i/sun4i_hdmi.h')
-rw-r--r-- | drivers/gpu/drm/sun4i/sun4i_hdmi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/sun4i/sun4i_hdmi.h b/drivers/gpu/drm/sun4i/sun4i_hdmi.h index 7ad3f06c127e..00ca35f07ba5 100644 --- a/drivers/gpu/drm/sun4i/sun4i_hdmi.h +++ b/drivers/gpu/drm/sun4i/sun4i_hdmi.h @@ -148,7 +148,7 @@ #define SUN4I_HDMI_DDC_CMD_IMPLICIT_WRITE 3 #define SUN4I_HDMI_DDC_CLK_REG 0x528 -#define SUN4I_HDMI_DDC_CLK_M(m) (((m) & 0x7) << 3) +#define SUN4I_HDMI_DDC_CLK_M(m) (((m) & 0xf) << 3) #define SUN4I_HDMI_DDC_CLK_N(n) ((n) & 0x7) #define SUN4I_HDMI_DDC_LINE_CTRL_REG 0x540 |