Various fixes for RTC and SPI

For RTC and SPI.