Skip to content

Commit 2dfa30b

Browse files
drivers: flash: Update modification of macro define for RA OSPI
Update modification of macro define for Renesas RA OSPI Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
1 parent 6e6cc52 commit 2dfa30b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/flash/flash_renesas_ra_ospi_b.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ static int flash_renesas_ra_ospi_b_spi_mode_init(ospi_b_instance_ctrl_t *p_ctrl,
162162
}
163163

164164
/* DDR sampling window extend */
165-
R_XSPI->LIOCFGCS_b[p_ctrl->channel].DDRSMPEX = 1;
165+
R_XSPI0->LIOCFGCS_b[p_ctrl->channel].DDRSMPEX = 1;
166166

167167
/* Switch OSPI module to 1S-1S-1S mode to configure flash device */
168168
err = R_OSPI_B_SpiProtocolSet(p_ctrl, SPI_FLASH_PROTOCOL_EXTENDED_SPI);
@@ -172,9 +172,9 @@ static int flash_renesas_ra_ospi_b_spi_mode_init(ospi_b_instance_ctrl_t *p_ctrl,
172172
}
173173

174174
/* Reset flash device by driving OM_RESET pin */
175-
R_XSPI->LIOCTL_b.RSTCS0 = 0;
175+
R_XSPI0->LIOCTL_b.RSTCS0 = 0;
176176
k_sleep(K_USEC(500));
177-
R_XSPI->LIOCTL_b.RSTCS0 = 1;
177+
R_XSPI0->LIOCTL_b.RSTCS0 = 1;
178178
k_sleep(K_NSEC(50));
179179

180180
/* Transfer write enable command */

0 commit comments

Comments
 (0)