| 1 | /* SPDX-License-Identifier: GPL-2.0-only OR MIT */ |
| 2 | |
| 3 | #include <device/mmio.h> |
| 4 | #include <soc/iocfg.h> |
| 5 | #include <soc/pmif_spi.h> |
| 6 | |
| 7 | /* IOCFG_BM, PWRAP_SPI_DRIVING */ |
| 8 | DEFINE_BITFIELD(PWRAP_SPI_DRIVING, 11, 9) |
| 9 | |
| 10 | void pmif_spi_iocfg(void) |
| 11 | { |
| 12 | /* Set SoC SPI IO driving strength to 6 mA */ |
| 13 | SET32_BITFIELDS(&mtk_iocfg_lt->drv_cfg2, PWRAP_SPI_DRIVING, IO_6_MA); |
| 14 | } |