Remove mutex_* calls from the MR:500 SPI driver

As before, they would trigger a panic.

Change-Id: I3c140f2897a9d3ed21e13f0a9e45025ede311de5
This commit is contained in:
Franklin Wei 2017-08-16 10:51:29 -04:00
parent e00d78d5ab
commit 6df15ea653

View file

@ -33,8 +33,6 @@
#define GIO_BL_ENABLE (1<<13) #define GIO_BL_ENABLE (1<<13)
#define GIO_LCD_ENABLE (1<<5) #define GIO_LCD_ENABLE (1<<5)
static struct mutex spi_mtx;
struct SPI_info { struct SPI_info {
volatile unsigned short *setreg; volatile unsigned short *setreg;
volatile unsigned short *clrreg; volatile unsigned short *clrreg;
@ -75,8 +73,6 @@ int spi_block_transfer(enum SPI_target target,
const uint8_t *tx_bytes, unsigned int tx_size, const uint8_t *tx_bytes, unsigned int tx_size,
uint8_t *rx_bytes, unsigned int rx_size) uint8_t *rx_bytes, unsigned int rx_size)
{ {
mutex_lock(&spi_mtx);
/* Enable the clock */ /* Enable the clock */
bitset16(&IO_CLK_MOD2, CLK_MOD2_SIF0); bitset16(&IO_CLK_MOD2, CLK_MOD2_SIF0);
@ -131,8 +127,6 @@ int spi_block_transfer(enum SPI_target target,
void spi_init(void) void spi_init(void)
{ {
mutex_init(&spi_mtx);
/* Enable the clock */ /* Enable the clock */
bitset16(&IO_CLK_MOD2, CLK_MOD2_SIF0); bitset16(&IO_CLK_MOD2, CLK_MOD2_SIF0);