Lines Matching +full:hi6220 +full:- +full:sysctrl
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Hisilicon Hi6220 reset controller driver
6 * Copyright (c) 2015-2016 HiSilicon Limited.
18 #include <linux/reset-controller.h>
47 struct regmap *regmap = data->regmap; in hi6220_peripheral_assert()
59 struct regmap *regmap = data->regmap; in hi6220_peripheral_deassert()
76 struct regmap *regmap = data->regmap; in hi6220_media_assert()
85 struct regmap *regmap = data->regmap; in hi6220_media_deassert()
109 struct regmap *regmap = data->regmap; in hi6220_ao_assert()
128 struct regmap *regmap = data->regmap; in hi6220_ao_deassert()
156 struct device_node *np = pdev->dev.of_node; in hi6220_reset_probe()
157 struct device *dev = &pdev->dev; in hi6220_reset_probe()
164 return -ENOMEM; in hi6220_reset_probe()
174 data->regmap = regmap; in hi6220_reset_probe()
175 data->rc_dev.of_node = np; in hi6220_reset_probe()
177 data->rc_dev.ops = &hi6220_media_reset_ops; in hi6220_reset_probe()
178 data->rc_dev.nr_resets = MEDIA_MAX_INDEX; in hi6220_reset_probe()
180 data->rc_dev.ops = &hi6220_peripheral_reset_ops; in hi6220_reset_probe()
181 data->rc_dev.nr_resets = PERIPH_MAX_INDEX; in hi6220_reset_probe()
183 data->rc_dev.ops = &hi6220_ao_reset_ops; in hi6220_reset_probe()
184 data->rc_dev.nr_resets = AO_MAX_INDEX; in hi6220_reset_probe()
187 return reset_controller_register(&data->rc_dev); in hi6220_reset_probe()
192 .compatible = "hisilicon,hi6220-sysctrl",
196 .compatible = "hisilicon,hi6220-mediactrl",
200 .compatible = "hisilicon,hi6220-aoctrl",
210 .name = "reset-hi6220",
222 MODULE_DESCRIPTION("Hisilicon Hi6220 reset controller driver");