Lines Matching refs:regmap_nfi
212 struct regmap *regmap_nfi; member
439 err = regmap_write(as_ctrl->regmap_nfi, REG_SPI_NFI_SNF_NFI_CNFG, in airoha_snand_nfi_init()
445 return regmap_update_bits(as_ctrl->regmap_nfi, REG_SPI_NFI_INTR_EN, in airoha_snand_nfi_init()
454 err = regmap_write(as_ctrl->regmap_nfi, REG_SPI_NFI_CON, in airoha_snand_nfi_config()
460 err = regmap_clear_bits(as_ctrl->regmap_nfi, REG_SPI_NFI_CNFG, in airoha_snand_nfi_config()
466 err = regmap_clear_bits(as_ctrl->regmap_nfi, REG_SPI_NFI_CNFG, in airoha_snand_nfi_config()
472 err = regmap_set_bits(as_ctrl->regmap_nfi, REG_SPI_NFI_CNFG, in airoha_snand_nfi_config()
493 err = regmap_update_bits(as_ctrl->regmap_nfi, REG_SPI_NFI_PAGEFMT, in airoha_snand_nfi_config()
510 err = regmap_update_bits(as_ctrl->regmap_nfi, REG_SPI_NFI_PAGEFMT, in airoha_snand_nfi_config()
517 err = regmap_update_bits(as_ctrl->regmap_nfi, REG_SPI_NFI_CON, in airoha_snand_nfi_config()
523 err = regmap_set_bits(as_ctrl->regmap_nfi, REG_SPI_NFI_SECCUS_SIZE, in airoha_snand_nfi_config()
530 return regmap_update_bits(as_ctrl->regmap_nfi, in airoha_snand_nfi_config()
666 err = regmap_write(as_ctrl->regmap_nfi, REG_SPI_NFI_STRADDR, in airoha_snand_dirmap_read()
674 err = regmap_update_bits(as_ctrl->regmap_nfi, in airoha_snand_dirmap_read()
681 err = regmap_write(as_ctrl->regmap_nfi, REG_SPI_NFI_RD_CTL2, in airoha_snand_dirmap_read()
687 err = regmap_write(as_ctrl->regmap_nfi, REG_SPI_NFI_SNF_MISC_CTL, in airoha_snand_dirmap_read()
693 err = regmap_write(as_ctrl->regmap_nfi, REG_SPI_NFI_RD_CTL3, 0x0); in airoha_snand_dirmap_read()
698 err = regmap_update_bits(as_ctrl->regmap_nfi, REG_SPI_NFI_CNFG, in airoha_snand_dirmap_read()
704 err = regmap_set_bits(as_ctrl->regmap_nfi, REG_SPI_NFI_CNFG, in airoha_snand_dirmap_read()
709 err = regmap_write(as_ctrl->regmap_nfi, REG_SPI_NFI_CMD, 0x0); in airoha_snand_dirmap_read()
714 err = regmap_clear_bits(as_ctrl->regmap_nfi, REG_SPI_NFI_CON, in airoha_snand_dirmap_read()
719 err = regmap_set_bits(as_ctrl->regmap_nfi, REG_SPI_NFI_CON, in airoha_snand_dirmap_read()
724 err = regmap_read_poll_timeout(as_ctrl->regmap_nfi, in airoha_snand_dirmap_read()
735 err = regmap_write_bits(as_ctrl->regmap_nfi, REG_SPI_NFI_SNF_STA_CTL1, in airoha_snand_dirmap_read()
741 err = regmap_read_poll_timeout(as_ctrl->regmap_nfi, REG_SPI_NFI_INTR, in airoha_snand_dirmap_read()
803 err = regmap_write(as_ctrl->regmap_nfi, REG_SPI_NFI_STRADDR, in airoha_snand_dirmap_write()
810 err = regmap_update_bits(as_ctrl->regmap_nfi, in airoha_snand_dirmap_write()
816 err = regmap_write(as_ctrl->regmap_nfi, REG_SPI_NFI_PG_CTL1, in airoha_snand_dirmap_write()
822 err = regmap_write(as_ctrl->regmap_nfi, REG_SPI_NFI_SNF_MISC_CTL, in airoha_snand_dirmap_write()
827 err = regmap_write(as_ctrl->regmap_nfi, REG_SPI_NFI_PG_CTL2, 0x0); in airoha_snand_dirmap_write()
831 err = regmap_clear_bits(as_ctrl->regmap_nfi, REG_SPI_NFI_CNFG, in airoha_snand_dirmap_write()
836 err = regmap_update_bits(as_ctrl->regmap_nfi, REG_SPI_NFI_CNFG, in airoha_snand_dirmap_write()
842 err = regmap_set_bits(as_ctrl->regmap_nfi, REG_SPI_NFI_CNFG, in airoha_snand_dirmap_write()
847 err = regmap_write(as_ctrl->regmap_nfi, REG_SPI_NFI_CMD, 0x80); in airoha_snand_dirmap_write()
851 err = regmap_clear_bits(as_ctrl->regmap_nfi, REG_SPI_NFI_CON, in airoha_snand_dirmap_write()
856 err = regmap_set_bits(as_ctrl->regmap_nfi, REG_SPI_NFI_CON, in airoha_snand_dirmap_write()
861 err = regmap_read_poll_timeout(as_ctrl->regmap_nfi, REG_SPI_NFI_INTR, in airoha_snand_dirmap_write()
867 err = regmap_read_poll_timeout(as_ctrl->regmap_nfi, in airoha_snand_dirmap_write()
878 err = regmap_write_bits(as_ctrl->regmap_nfi, REG_SPI_NFI_SNF_STA_CTL1, in airoha_snand_dirmap_write()
989 err = regmap_read(as_ctrl->regmap_nfi, REG_SPI_NFI_CON, &val); in airoha_snand_nfi_setup()
995 err = regmap_read(as_ctrl->regmap_nfi, REG_SPI_NFI_SECCUS_SIZE, &val); in airoha_snand_nfi_setup()
1065 as_ctrl->regmap_nfi = devm_regmap_init_mmio(dev, base, in airoha_snand_probe()
1067 if (IS_ERR(as_ctrl->regmap_nfi)) in airoha_snand_probe()
1068 return dev_err_probe(dev, PTR_ERR(as_ctrl->regmap_nfi), in airoha_snand_probe()