]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
ARM: at91/pm_slowclock: function slow_clock() accepts parameters
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Wed, 22 Feb 2012 16:50:54 +0000 (17:50 +0100)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Thu, 23 Feb 2012 08:26:41 +0000 (09:26 +0100)
commit8ff12ad3df62ee343d5f5ec29572b9d2c5c2cedd
tree96a4c446fc380bffb040418beffbc3ba7cc438b1
parent0dcfed1486739afdce053ebdccac28076e9d9e1f
ARM: at91/pm_slowclock: function slow_clock() accepts parameters

Change slow_clock()/at91_slow_clock() prototype to accept the PMC
base address and one or two RAM controller addresses by parameters.
The r0, r1 and r2 registers are used differently and preserved during
function call.
Those values are defined in pm.c and slow_clock() function is called
from there with its new parameters.

This will allow to have a soc independent pm_slowclock.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Ached-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/mach-at91/pm.c
arch/arm/mach-at91/pm_slowclock.S