linux/drivers/soc
Valentin Longchamp 2ccf80b756 soc/fsl/qe: round brg_freq to 1kHz granularity
Because of integer computation rounding in u-boot (that sets the QE
brg-frequency DTS prop), the clk value is 99999999 Hz even though it is
100 MHz.

When setting brg clks that are exact divisors of 100 MHz, this small
differnce plays a role and can result in lower clks to be output (for
instance 20 MHz - divide by 5 - results in 16.666 MHz - divide by 6).

This patch fixes that by "forcing" the brg_clk to the nearest kHz when
the difference is below 2 integer rounding errors (i.e. 4).

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Signed-off-by: Scott Wood <oss@buserror.net>
2017-04-30 01:31:51 -05:00
..
bcm soc: raspberrypi-power: add CONFIG_OF dependency 2016-07-07 14:58:38 +02:00
dove soc: dove: constify reset_control_ops structures 2017-01-27 17:52:57 +01:00
fsl soc/fsl/qe: round brg_freq to 1kHz granularity 2017-04-30 01:31:51 -05:00
mediatek soc: mediatek: Add MT2701 scpsys driver 2016-10-31 00:58:58 +01:00
qcom remoteproc: qcom: mdt_loader: Use signed type for offset 2017-02-22 02:07:13 -08:00
renesas ARM: SoC driver updates for v4.10 2016-12-15 16:03:25 -08:00
rockchip soc: rockchip: add driver handling grf setup 2017-01-06 10:28:19 +01:00
samsung Improve the PM domains driver for Exynos by displaying a user-friendly name of 2017-02-07 17:20:07 +01:00
sunxi drivers: soc: sunxi: Fix mask generation for SRAM mapping 2016-01-27 20:29:20 +01:00
tegra soc/tegra: pmc: Use consistent naming for PM domains 2016-11-15 15:51:56 +01:00
ti ARM: SoC driver updates 2017-02-23 15:57:04 -08:00
ux500 ARM: ux500: move soc_id driver to drivers/soc 2016-07-12 11:24:09 +02:00
versatile soc: versatile: dynamically detect RealView HBI numbers 2016-04-04 10:58:47 +02:00
zte soc: zte: pm_domains: Add support for zx296718 2017-01-11 16:21:14 +08:00
Kconfig soc: zte: pm_domains: Prepare for supporting ARMv8 zx2967 family 2017-01-11 16:21:10 +08:00
Makefile soc: zte: pm_domains: Prepare for supporting ARMv8 zx2967 family 2017-01-11 16:21:10 +08:00