mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Remove mutex_* calls from the MR:500 SPI driver
As before, they would trigger a panic. Change-Id: I3c140f2897a9d3ed21e13f0a9e45025ede311de5
This commit is contained in:
parent
e00d78d5ab
commit
6df15ea653
1 changed files with 0 additions and 6 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue