cleaning up SPI driver, added LPM 2 support