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