Lines Matching +full:bcm +full:- +full:ns2
1 // SPDX-License-Identifier: GPL-2.0-only
15 #include "spi-bcm-qspi.h"
33 void __iomem *mmio = priv->int_status_reg; in bcm_iproc_qspi_get_l2_int_status()
38 if (bcm_qspi_readl(priv->big_endian, mmio + (i * 4))) in bcm_iproc_qspi_get_l2_int_status()
58 void __iomem *mmio = priv->int_status_reg; in bcm_iproc_qspi_int_ack()
64 bcm_qspi_writel(priv->big_endian, 1, mmio + (i * 4)); in bcm_iproc_qspi_int_ack()
73 void __iomem *mmio = priv->int_reg; in bcm_iproc_qspi_int_set()
78 spin_lock_irqsave(&priv->soclock, flags); in bcm_iproc_qspi_int_set()
80 val = bcm_qspi_readl(priv->big_endian, mmio); in bcm_iproc_qspi_int_set()
87 bcm_qspi_writel(priv->big_endian, val, mmio); in bcm_iproc_qspi_int_set()
89 spin_unlock_irqrestore(&priv->soclock, flags); in bcm_iproc_qspi_int_set()
94 struct device *dev = &pdev->dev; in bcm_iproc_probe()
100 return -ENOMEM; in bcm_iproc_probe()
101 soc_intc = &priv->soc_intc; in bcm_iproc_probe()
102 priv->pdev = pdev; in bcm_iproc_probe()
104 spin_lock_init(&priv->soclock); in bcm_iproc_probe()
106 priv->int_reg = devm_platform_ioremap_resource_byname(pdev, "intr_regs"); in bcm_iproc_probe()
107 if (IS_ERR(priv->int_reg)) in bcm_iproc_probe()
108 return PTR_ERR(priv->int_reg); in bcm_iproc_probe()
110 priv->int_status_reg = devm_platform_ioremap_resource_byname(pdev, in bcm_iproc_probe()
112 if (IS_ERR(priv->int_status_reg)) in bcm_iproc_probe()
113 return PTR_ERR(priv->int_status_reg); in bcm_iproc_probe()
115 priv->big_endian = of_device_is_big_endian(dev->of_node); in bcm_iproc_probe()
120 soc_intc->bcm_qspi_int_ack = bcm_iproc_qspi_int_ack; in bcm_iproc_probe()
121 soc_intc->bcm_qspi_int_set = bcm_iproc_qspi_int_set; in bcm_iproc_probe()
122 soc_intc->bcm_qspi_get_int_status = bcm_iproc_qspi_get_l2_int_status; in bcm_iproc_probe()
133 { .compatible = "brcm,spi-nsp-qspi" },
134 { .compatible = "brcm,spi-ns2-qspi" },