Lines Matching +full:sys +full:- +full:syscon
1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2018-2019, Intel Corporation.
7 * Based on syscon driver.
10 #include <linux/arm-smccc.h>
13 #include <linux/mfd/altera-sysmgr.h>
14 #include <linux/mfd/syscon.h>
22 * struct altr_sysmgr - Altera SOCFPGA System Manager
108 return ERR_PTR(-ENODEV); in altr_sysmgr_regmap_lookup_by_phandle()
116 return ERR_PTR(-EPROBE_DEFER); in altr_sysmgr_regmap_lookup_by_phandle()
120 return sysmgr->regmap; in altr_sysmgr_regmap_lookup_by_phandle()
130 struct device *dev = &pdev->dev; in sysmgr_probe()
131 struct device_node *np = dev->of_node; in sysmgr_probe()
136 return -ENOMEM; in sysmgr_probe()
140 return -ENOENT; in sysmgr_probe()
142 sysmgr_config.max_register = resource_size(res) - in sysmgr_probe()
144 if (of_device_is_compatible(np, "altr,sys-mgr-s10")) { in sysmgr_probe()
150 (void *)(uintptr_t)res->start, in sysmgr_probe()
153 base = devm_ioremap(dev, res->start, resource_size(res)); in sysmgr_probe()
155 return -ENOMEM; in sysmgr_probe()
157 sysmgr_config.max_register = resource_size(res) - 4; in sysmgr_probe()
166 sysmgr->regmap = regmap; in sysmgr_probe()
174 { .compatible = "altr,sys-mgr" },
175 { .compatible = "altr,sys-mgr-s10" },