drivers/wifi: Remove unnecessary data structure copy
[coreboot2.git] / src / soc / mediatek / mt8195 / pmif_spi.c
blob1901bc6dd56e13ee67dbd4d06147ad489da79fde
1 /* SPDX-License-Identifier: GPL-2.0-only OR MIT */
3 #include <device/mmio.h>
4 #include <soc/iocfg.h>
5 #include <soc/pmif_spi.h>
7 /* IOCFG_BM, PWRAP_SPI0_DRIVING */
8 DEFINE_BITFIELD(PWRAP_SPI0_DRIVING, 29, 24)
9 DEFINE_BITFIELD(PWRAP_SPI1_DRIVING, 5, 0)
11 void pmif_spi_iocfg(void)
13 /* Set SoC SPI IO driving strength to 6 mA */
14 SET32_BITFIELDS(&mtk_iocfg_bm->drv_cfg1, PWRAP_SPI0_DRIVING, IO_6_MA);
15 SET32_BITFIELDS(&mtk_iocfg_bm->drv_cfg2, PWRAP_SPI1_DRIVING, IO_6_MA);