aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2014-05-22 20:07:35 +0200
committerMark Brown <broonie@linaro.org>2014-05-26 14:30:37 +0100
commit3beb61dbfcf188399cbc36ce1eeb8b2ba724de38 (patch)
tree03a8a90b71a75dfc60b468fc541d59731b92470a /tools/perf/scripts/python/export-to-postgresql.py
parentLinux 3.15-rc1 (diff)
downloadlinux-dev-3beb61dbfcf188399cbc36ce1eeb8b2ba724de38.tar.xz
linux-dev-3beb61dbfcf188399cbc36ce1eeb8b2ba724de38.zip
spi: rspi: Round up division to avoid slave overclocking
The calculation of the bit rate divider used a standard C division, which rounds down the quotient. This may lead to a higher bitrate than requested. Round up to avoid this. E.g. on Koelsch, the SPI flash (configured for 30 MHz) was driven at 48.75 MHz. After this patch it's driven at a safe 24.375 MHz. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions