• Jernej Skrabec's avatar
    clk: sunxi-ng: h3/h5: Add max. rate constraint to pll-video · 02d79016
    Jernej Skrabec authored
    As it turns out, pll-video can be set to higher rate that it is really
    supported by HW.
    
    For example, one monitor requested 185.58 MHz pixel clock. Clock
    framework calculated that minimum rate error would be when pll-video
    is set to 2040 MHz. This is clearly out of specs.
    
    Both H3 and H5 user manuals specify 600 MHz as maximum supported rate.
    However, BSP clock drivers allow up to 912 MHz and 1008 MHz
    respectively. Here 912 MHz is chosen because user manuals were already
    proven wrong once for lower limits.
    Signed-off-by: default avatarJernej Skrabec <jernej.skrabec@siol.net>
    Signed-off-by: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
    02d79016
ccu-sun8i-h3.c 37.9 KB