Hsin-Hsiung Wang | 22f8370 | 2020-05-29 19:46:14 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
Hsin-Hsiung Wang | 22f8370 | 2020-05-29 19:46:14 +0800 | [diff] [blame] | 3 | #include <device/mmio.h> |
Yidi Lin | 2368a31 | 2021-02-02 21:00:36 +0800 | [diff] [blame] | 4 | #include <soc/iocfg.h> |
Hsin-Hsiung Wang | 22f8370 | 2020-05-29 19:46:14 +0800 | [diff] [blame] | 5 | #include <soc/pmif_spi.h> |
Hsin-Hsiung Wang | 22f8370 | 2020-05-29 19:46:14 +0800 | [diff] [blame] | 6 | |
| 7 | /* IOCFG_LM, PWRAP_SPI0_DRIVING */ |
| 8 | DEFINE_BITFIELD(PWRAP_SPI0_DRIVING, 2, 0) |
| 9 | |
Yidi Lin | 2368a31 | 2021-02-02 21:00:36 +0800 | [diff] [blame] | 10 | void pmif_spi_iocfg(void) |
Hsin-Hsiung Wang | 22f8370 | 2020-05-29 19:46:14 +0800 | [diff] [blame] | 11 | { |
| 12 | /* Set SoC SPI IO driving strength to 4 mA */ |
| 13 | SET32_BITFIELDS(&mtk_iocfg_lm->drv_cfg1, PWRAP_SPI0_DRIVING, IO_4_MA); |
Hsin-Hsiung Wang | 22f8370 | 2020-05-29 19:46:14 +0800 | [diff] [blame] | 14 | } |