Lines Matching refs:srom
67 static int exynos_srom_configure_bank(struct exynos_srom *srom, in exynos_srom_configure_bank() argument
90 bw = readl_relaxed(srom->reg_base + EXYNOS_SROM_BW); in exynos_srom_configure_bank()
92 writel_relaxed(bw, srom->reg_base + EXYNOS_SROM_BW); in exynos_srom_configure_bank()
100 srom->reg_base + EXYNOS_SROM_BC0 + bank); in exynos_srom_configure_bank()
108 struct exynos_srom *srom; in exynos_srom_probe() local
118 srom = devm_kzalloc(&pdev->dev, in exynos_srom_probe()
120 if (!srom) in exynos_srom_probe()
123 srom->dev = dev; in exynos_srom_probe()
124 srom->reg_base = of_iomap(np, 0); in exynos_srom_probe()
125 if (!srom->reg_base) { in exynos_srom_probe()
130 platform_set_drvdata(pdev, srom); in exynos_srom_probe()
132 srom->reg_offset = exynos_srom_alloc_reg_dump(exynos_srom_offsets, in exynos_srom_probe()
134 if (!srom->reg_offset) { in exynos_srom_probe()
135 iounmap(srom->reg_base); in exynos_srom_probe()
140 if (exynos_srom_configure_bank(srom, child)) { in exynos_srom_probe()
177 struct exynos_srom *srom = dev_get_drvdata(dev); in exynos_srom_suspend() local
179 exynos_srom_save(srom->reg_base, srom->reg_offset, in exynos_srom_suspend()
186 struct exynos_srom *srom = dev_get_drvdata(dev); in exynos_srom_resume() local
188 exynos_srom_restore(srom->reg_base, srom->reg_offset, in exynos_srom_resume()