[RFC v2 3/4] rtc-at91rm9200: add shadow interrupt mask

2013-04-03 Thread Johan Hovold
Add shadow interrupt-mask register which can be used on SoCs where the actual hardware register is broken. Note that some care needs to be taken to make sure the shadow mask corresponds to the actual hardware state. The added overhead is not an issue for the non-broken SoCs due to the relatively

[RFC v2 3/4] rtc-at91rm9200: add shadow interrupt mask

2013-04-03 Thread Johan Hovold
Add shadow interrupt-mask register which can be used on SoCs where the actual hardware register is broken. Note that some care needs to be taken to make sure the shadow mask corresponds to the actual hardware state. The added overhead is not an issue for the non-broken SoCs due to the relatively