2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 04:34:11 +08:00
linux-next/arch/arm/mach-tegra
Colin Cross 421186e710 ARM: tegra: clock: Round rate before setting rate
Call the clock's round_rate op, if it exists, before calling
the set_rate op.  This will help later when dvfs is added,
dvfs needs to know what the final rate will be before the
frequency changes.

Also requires fixes to the round rate functions to ensure
calling round rate and then set rate will not cause the
frequency to be rounded down twice.  When picking clock
divider values, the clock framework picks the closest
frequency that is lower than the requested frequency.  If
the new frequency calculated from the divider value is
rounded down, and then passed to set_rate, it will get
rounded down again, possibly resulting in a frequency two
steps lower than the original requested frequency.

Fix the problem by rounding up when calculating the frequency
coming out of a clock divider, so if that frequency is
requested again, the same divider value will be picked.

Signed-off-by: Colin Cross <ccross@android.com>
Acked-by: Olof Johansson <olof@lixom.net>
2011-02-22 11:22:34 -08:00
..
include/mach ARM: tegra: clock: Add function to set SDMMC tap delay 2011-02-21 00:16:47 -08:00
board-harmony-pcie.c tegra: harmony: enable PCI Express 2010-10-21 18:13:10 -07:00
board-harmony-pinmux.c [ARM] tegra: harmony: Add harmony board file 2010-08-05 14:57:02 -07:00
board-harmony.c arm: remove machine_desc.io_pg_offst and .phys_io 2010-10-20 00:27:46 -04:00
board-harmony.h [ARM] tegra: harmony: Add harmony board file 2010-08-05 14:57:02 -07:00
board-trimslice-pinmux.c ARM: tegra: add TrimSlice board 2011-02-10 18:36:51 -08:00
board-trimslice.c ARM: tegra: add TrimSlice board 2011-02-10 18:36:51 -08:00
board-trimslice.h ARM: tegra: add TrimSlice board 2011-02-10 18:36:51 -08:00
board.h ARM: tegra: Allow overriding arch_reset 2011-02-10 17:50:41 -08:00
clock.c ARM: tegra: clock: Round rate before setting rate 2011-02-22 11:22:34 -08:00
clock.h ARM: tegra: clock: Add function to set SDMMC tap delay 2011-02-21 00:16:47 -08:00
common.c ARM: tegra: Fix hang on reboot 2011-02-20 20:04:16 -08:00
cpu-tegra.c ARM: tegra: cpufreq: Adjust memory frequency with cpu frequency 2011-02-21 00:16:46 -08:00
dma.c ARM: tegra: APB DMA: Enable clock and remove reset. 2011-02-20 20:04:15 -08:00
fuse.c [ARM] tegra: Add support for reading fuses 2010-10-21 18:12:09 -07:00
fuse.h [ARM] tegra: Add support for reading fuses 2010-10-21 18:12:09 -07:00
gpio-names.h [ARM] tegra: add GPIO support 2010-08-05 14:57:02 -07:00
gpio.c ARM: tegra: Add prototypes for subsystem suspend functions 2011-02-09 21:57:01 -08:00
headsmp.S [ARM] tegra: SMP support 2010-08-05 14:57:01 -07:00
hotplug.c ARM: fix wrongly patched constants 2011-01-14 12:06:26 +00:00
io.c [ARM] tegra: update iomap 2010-10-21 18:11:24 -07:00
irq.c ARM: tegra: irq: Implement retrigger 2011-02-09 22:18:30 -08:00
Kconfig ARM: tegra: Add external memory controller driver 2011-02-21 00:16:45 -08:00
legacy_irq.c ARM: tegra: irq: Add support for suspend wake sources 2011-02-09 22:18:21 -08:00
localtimer.c [ARM] tegra: SMP support 2010-08-05 14:57:01 -07:00
Makefile ARM: tegra: Add external memory controller driver 2011-02-21 00:16:45 -08:00
Makefile.boot [ARM] tegra: initial tegra support 2010-08-05 14:51:42 -07:00
pcie.c tegra: add PCI Express support 2010-10-21 18:13:02 -07:00
pinmux-t2-tables.c ARM: tegra: pinmux: Add missing drive pingroups and fix suspend 2011-02-09 21:57:02 -08:00
pinmux.c [ARM] tegra: pinmux: add safe values, move tegra2, add suspend 2010-10-21 18:11:41 -07:00
platsmp.c Merge branch 'misc' into devel 2011-01-06 22:32:52 +00:00
powergate.c ARM: tegra: Add api to control internal powergating 2011-02-09 21:57:00 -08:00
tegra2_clocks.c ARM: tegra: clock: Round rate before setting rate 2011-02-22 11:22:34 -08:00
tegra2_emc.c ARM: tegra: Add external memory controller driver 2011-02-21 00:16:45 -08:00
tegra2_emc.h ARM: tegra: Add external memory controller driver 2011-02-21 00:16:45 -08:00
timer.c ARM: tegra: timer: Add idle and suspend support to timers 2011-02-09 22:17:38 -08:00