Move SPI controller code into a common location.

Moves mutual exclusion code to atheros.h, which handles
enabling/disabling the temperature sensor pin when attempting to grab
a lock for SPI operations.

The common location is necessary for the proper functioning of the
temperature sensor driver (pending), as it shares the MISO and CLK pins
with the flash storage device.

Change-Id: I00d18b16f552f1f30e4ff477eb7838ca52e7a5c2
4 files changed