Various registers need to be preserved before resetting the device. Signed-off-by: Ayaz Abdulla