diff options
author | Franklin Wei <git@fwei.tk> | 2017-08-16 10:51:29 -0400 |
---|---|---|
committer | Franklin Wei <git@fwei.tk> | 2017-08-16 10:51:29 -0400 |
commit | 6df15ea653f336ff416e230f98bd6b0ec5b8dc84 (patch) | |
tree | 4f4fb2e7d34e107e86e0904e88b5af4d30d2f62b | |
parent | e00d78d5abf6960f92cc56554b756627be0d92f3 (diff) |
Remove mutex_* calls from the MR:500 SPI driver
As before, they would trigger a panic.
Change-Id: I3c140f2897a9d3ed21e13f0a9e45025ede311de5
-rw-r--r-- | firmware/target/arm/tms320dm320/spi-dm320.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/firmware/target/arm/tms320dm320/spi-dm320.c b/firmware/target/arm/tms320dm320/spi-dm320.c index e9a097b0ea..b671bdb2c1 100644 --- a/firmware/target/arm/tms320dm320/spi-dm320.c +++ b/firmware/target/arm/tms320dm320/spi-dm320.c @@ -33,8 +33,6 @@ #define GIO_BL_ENABLE (1<<13) #define GIO_LCD_ENABLE (1<<5) -static struct mutex spi_mtx; - struct SPI_info { volatile unsigned short *setreg; 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, uint8_t *rx_bytes, unsigned int rx_size) { - mutex_lock(&spi_mtx); - /* Enable the clock */ bitset16(&IO_CLK_MOD2, CLK_MOD2_SIF0); @@ -131,8 +127,6 @@ int spi_block_transfer(enum SPI_target target, void spi_init(void) { - mutex_init(&spi_mtx); - /* Enable the clock */ bitset16(&IO_CLK_MOD2, CLK_MOD2_SIF0); |