]> git.baikalelectronics.ru Git - 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)
commit881d9553acf8f479b709f7a6f42182efb7c137dc
tree96a4c446fc380bffb040418beffbc3ba7cc438b1
parent3cb1709fc21cc339e8367186a36c0d78952a999d
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