• Russell King's avatar
    drm: bridge/dw_hdmi: adjust pixel clock values in N calculation · 426701d0
    Russell King authored
    Adjust the pixel clock values in the N calculation to match the more
    accurate clock values we're given by the DRM subsystem, which are the
    kHz pixel rate, with any fractional kHz rounded down in the case of
    the non-240, non-480 line modes, or rounded up for the others.  So,
    
    	 25.20 / 1.001 =>  25175
    	 27.00 * 1.001 =>  27027
    	 74.25 / 1.001 =>  74176
    	148.50 / 1.001 => 148352
    
    DRM derives these rates from the EDID CEA mode identifiers, which are
    looked up in the tables in drivers/gpu/drm/drm_edid.c.  The values on
    the right are the clock values found in these tables, and are
    currently expected to be passed to the HDMI driver unchanged.
    Tested-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
    Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
    426701d0
dw_hdmi.c 52 KB