Skip to content

Commit 2986ad9

Browse files
author
Wayne Ren
committed
board: emsk: SPI_MST_CS_CTRL only works in version 2.3
SPI_MST_CS_CTRL reg only works in version 2.3 Signed-off-by: Wayne Ren <[email protected]>
1 parent f115402 commit 2986ad9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

board/emsk/drivers/ip/designware/spi/dw_spi_obj.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ static void dw_spi_0_isr(void *ptr);
7575

7676
DEV_SPI dw_spi_0; /*!< designware spi object */
7777
DW_SPI_CTRL dw_spi_0_ctrl; /*!< designware spi 0 ctrl */
78-
#if HW_VERSION < 22
78+
#if HW_VERSION < 23
7979
static uint32_t dw_spi_0_cs_status;
8080
#endif
8181

@@ -94,7 +94,7 @@ static int32_t dw_spi_0_control (uint32_t ctrl_cmd, void *param)
9494
{
9595
int32_t ercd;
9696
ercd = dw_spi_control(&dw_spi_0, ctrl_cmd, param);
97-
#if HW_VERSION >= 22
97+
#if HW_VERSION >= 23
9898
if (ctrl_cmd == SPI_CMD_MST_SEL_DEV) {
9999
_arc_write_uncached_32((void *)(PERIPHERAL_BASE + REL_REGBASE_SPI_MST_CS_CTRL), 1 << ((uint32_t)param));
100100
} else if (ctrl_cmd == SPI_CMD_MST_DSEL_DEV) {

0 commit comments

Comments
 (0)