ARM: sa11x0: assabet: better reset handling
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 9 Jul 2013 09:27:12 +0000 (10:27 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 12 Dec 2013 22:59:15 +0000 (22:59 +0000)
commit7dde0c032869ea92206398ad5c538d01931e3947
treecc85223cd5c247a1ef6cdc41aaf55d25a4293508
parent374b105797c3d4f29c685f3be535c35f5689b30e
ARM: sa11x0: assabet: better reset handling

The codec reset pin is connected to several peripherals.  When the
reset is released, unfortunately the ADV7171 powers itself up rather
than remaining in power-down mode.  As we don't have a driver for
this device, we end up needlessly consuming an additional 330mW.

Not only that but we should have a way to arbitrate the reset signal.

This patch provides that facility: we program the ADV7171 to sleep
mode whenever the reset is released, and we release the reset when
any one of the three peripherals requests the reset to be released.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-sa1100/assabet.c
arch/arm/mach-sa1100/include/mach/assabet.h