Revision 2b6c53b1504865728a6dfad3e720918a2f89f3a5 authored by Jon Medhurst (Tixy) on 20 August 2014, 12:41:04 UTC, committed by Tomi Valkeinen on 26 August 2014, 09:50:27 UTC
If the device-tree specifies a max-memory-bandwidth property then the
CLCD driver uses that to calculate the bits-per-pixel supported,
however, this calculation is faulty for two reasons.

1. It doesn't ensure that the result is a sane value, i.e. a power of 2
   and <= 32 as the rest of the code assumes.

2. It uses the displayed resolution and calculates the average bandwidth
   across the whole frame. It should instead calculate the peak
   bandwidth based on the pixel clock.

This patch fixes both the above.

Signed-off-by: Jon Medhurst <tixy@linaro.org>
Acked-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
1 parent 754d561
History
File Mode Size
at91
bcm
berlin
hisilicon
keystone
mmp
mvebu
mxs
qcom
rockchip
samsung
shmobile
sirf
socfpga
spear
st
sunxi
tegra
ti
ux500
versatile
x86
zynq
Kconfig -rw-r--r-- 3.2 KB
Makefile -rw-r--r-- 2.5 KB
clk-axi-clkgen.c -rw-r--r-- 13.8 KB
clk-axm5516.c -rw-r--r-- 13.3 KB
clk-bcm2835.c -rw-r--r-- 1.9 KB
clk-clps711x.c -rw-r--r-- 5.8 KB
clk-composite.c -rw-r--r-- 7.8 KB
clk-conf.c -rw-r--r-- 3.8 KB
clk-devres.c -rw-r--r-- 1.1 KB
clk-divider.c -rw-r--r-- 11.9 KB
clk-efm32gg.c -rw-r--r-- 3.2 KB
clk-fixed-factor.c -rw-r--r-- 3.6 KB
clk-fixed-rate.c -rw-r--r-- 4.0 KB
clk-fractional-divider.c -rw-r--r-- 3.1 KB
clk-gate.c -rw-r--r-- 4.0 KB
clk-highbank.c -rw-r--r-- 8.2 KB
clk-ls1x.c -rw-r--r-- 2.8 KB
clk-max77686.c -rw-r--r-- 6.0 KB
clk-moxart.c -rw-r--r-- 2.4 KB
clk-mux.c -rw-r--r-- 4.4 KB
clk-nomadik.c -rw-r--r-- 13.6 KB
clk-nspire.c -rw-r--r-- 3.8 KB
clk-palmas.c -rw-r--r-- 7.7 KB
clk-ppc-corenet.c -rw-r--r-- 7.2 KB
clk-s2mps11.c -rw-r--r-- 7.5 KB
clk-si5351.c -rw-r--r-- 40.3 KB
clk-si5351.h -rw-r--r-- 5.7 KB
clk-si570.c -rw-r--r-- 13.2 KB
clk-twl6040.c -rw-r--r-- 3.2 KB
clk-u300.c -rw-r--r-- 37.7 KB
clk-vt8500.c -rw-r--r-- 17.6 KB
clk-wm831x.c -rw-r--r-- 9.7 KB
clk-xgene.c -rw-r--r-- 14.0 KB
clk.c -rw-r--r-- 62.5 KB
clk.h -rw-r--r-- 578 bytes
clkdev.c -rw-r--r-- 8.1 KB

back to top