• Home
  • Raw
  • Download

Lines Matching +full:rc +full:- +full:map +full:- +full:name

2  * Copyright (c) 2016-2017 Linaro Ltd.
3 * Copyright (c) 2016-2017 HiSilicon Technologies Co., Ltd.
16 #include <linux/reset-controller.h>
20 struct regmap *map; member
29 struct hi3660_reset_controller *rc = to_hi3660_reset_controller(rcdev); in hi3660_reset_program_hw() local
34 return regmap_write(rc->map, offset, mask); in hi3660_reset_program_hw()
36 return regmap_write(rc->map, offset + 4, mask); in hi3660_reset_program_hw()
74 offset = reset_spec->args[0]; in hi3660_reset_xlate()
75 bit = reset_spec->args[1]; in hi3660_reset_xlate()
82 struct hi3660_reset_controller *rc; in hi3660_reset_probe() local
83 struct device_node *np = pdev->dev.of_node; in hi3660_reset_probe()
84 struct device *dev = &pdev->dev; in hi3660_reset_probe()
86 rc = devm_kzalloc(dev, sizeof(*rc), GFP_KERNEL); in hi3660_reset_probe()
87 if (!rc) in hi3660_reset_probe()
88 return -ENOMEM; in hi3660_reset_probe()
90 rc->map = syscon_regmap_lookup_by_phandle(np, "hisi,rst-syscon"); in hi3660_reset_probe()
91 if (IS_ERR(rc->map)) { in hi3660_reset_probe()
92 dev_err(dev, "failed to get hi3660,rst-syscon\n"); in hi3660_reset_probe()
93 return PTR_ERR(rc->map); in hi3660_reset_probe()
96 rc->rst.ops = &hi3660_reset_ops, in hi3660_reset_probe()
97 rc->rst.of_node = np; in hi3660_reset_probe()
98 rc->rst.of_reset_n_cells = 2; in hi3660_reset_probe()
99 rc->rst.of_xlate = hi3660_reset_xlate; in hi3660_reset_probe()
101 return reset_controller_register(&rc->rst); in hi3660_reset_probe()
105 { .compatible = "hisilicon,hi3660-reset", },
113 .name = "hi3660-reset",
125 MODULE_ALIAS("platform:hi3660-reset");