powerpc/qe: Implement qe_alive_during_sleep() helper function
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Thu, 27 Aug 2009 07:35:50 +0000 (07:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Aug 2009 04:51:33 +0000 (21:51 -0700)
commited24157ede901608e00f28b4897398a373e1e926
tree9c925bcaf5adb61084719c93ac579e82e6a169b2
parente0ad2cd8ff7fb957be867d17d44fb4b7093c91bd
powerpc/qe: Implement qe_alive_during_sleep() helper function

In some CPUs (i.e. MPC8569) QE shuts down completely during sleep,
drivers may want to know that to reinitialize registers and buffer
descriptors.

This patch implements qe_alive_during_sleep() helper function, so far
it just checks if MPC8569-compatible power management controller is
present, which is a sign that QE turns off during sleep.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/powerpc/include/asm/qe.h
arch/powerpc/sysdev/qe_lib/qe.c