Lines Matching full:grf
55 int (*init_usb_uart)(struct regmap *grf,
323 static int __init rockchip_init_usb_uart_common(struct regmap *grf,
341 ret = regmap_write(grf, regoffs + UOC_CON0, val);
347 ret = regmap_write(grf, regoffs + UOC_CON2, val);
358 ret = regmap_write(grf, UOC_CON3, val);
373 static int __init rk3188_init_usb_uart(struct regmap *grf,
379 ret = rockchip_init_usb_uart_common(grf, pdata);
387 ret = regmap_write(grf, RK3188_UOC0_CON0, val);
423 static int __init rk3288_init_usb_uart(struct regmap *grf,
429 ret = rockchip_init_usb_uart_common(grf, pdata);
437 ret = regmap_write(grf, RK3288_UOC0_CON3, val);
480 dev->of_node, "rockchip,grf");
482 dev_err(&pdev->dev, "Missing rockchip,grf property\n");
523 struct regmap *grf;
545 grf = ERR_PTR(-ENODEV);
547 grf = syscon_node_to_regmap(np->parent);
548 if (IS_ERR(grf))
549 grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf");
550 if (IS_ERR(grf)) {
551 pr_err("%s: Missing rockchip,grf property, %lu\n",
552 __func__, PTR_ERR(grf));
553 return PTR_ERR(grf);
556 ret = data->init_usb_uart(grf, data);