Lines Matching +full:rk3399 +full:- +full:grf
1 // SPDX-License-Identifier: GPL-2.0-only
33 * clock-framework and the mmc controllers making them unreliable.
127 .compatible = "rockchip,rk3036-grf",
130 .compatible = "rockchip,rk3128-grf",
133 .compatible = "rockchip,rk3228-grf",
136 .compatible = "rockchip,rk3288-grf",
139 .compatible = "rockchip,rk3328-grf",
142 .compatible = "rockchip,rk3368-grf",
145 .compatible = "rockchip,rk3399-grf",
148 .compatible = "rockchip,rk3566-pipe-grf",
159 struct regmap *grf; in rockchip_grf_init() local
165 return -ENODEV; in rockchip_grf_init()
166 if (!match || !match->data) { in rockchip_grf_init()
167 pr_err("%s: missing grf data\n", __func__); in rockchip_grf_init()
169 return -EINVAL; in rockchip_grf_init()
172 grf_info = match->data; in rockchip_grf_init()
174 grf = syscon_node_to_regmap(np); in rockchip_grf_init()
176 if (IS_ERR(grf)) { in rockchip_grf_init()
177 pr_err("%s: could not get grf syscon\n", __func__); in rockchip_grf_init()
178 return PTR_ERR(grf); in rockchip_grf_init()
181 for (i = 0; i < grf_info->num_values; i++) { in rockchip_grf_init()
182 const struct rockchip_grf_value *val = &grf_info->values[i]; in rockchip_grf_init()
185 val->desc, val->reg, val->val); in rockchip_grf_init()
186 ret = regmap_write(grf, val->reg, val->val); in rockchip_grf_init()
189 __func__, val->reg, ret); in rockchip_grf_init()