Lines Matching refs:grf
56 int (*init_usb_uart)(struct regmap *grf,
324 static int __init rockchip_init_usb_uart_common(struct regmap *grf, in rockchip_init_usb_uart_common() argument
342 ret = regmap_write(grf, regoffs + UOC_CON0, val); in rockchip_init_usb_uart_common()
348 ret = regmap_write(grf, regoffs + UOC_CON2, val); in rockchip_init_usb_uart_common()
359 ret = regmap_write(grf, UOC_CON3, val); in rockchip_init_usb_uart_common()
374 static int __init rk3188_init_usb_uart(struct regmap *grf, in rk3188_init_usb_uart() argument
380 ret = rockchip_init_usb_uart_common(grf, pdata); in rk3188_init_usb_uart()
388 ret = regmap_write(grf, RK3188_UOC0_CON0, val); in rk3188_init_usb_uart()
424 static int __init rk3288_init_usb_uart(struct regmap *grf, in rk3288_init_usb_uart() argument
430 ret = rockchip_init_usb_uart_common(grf, pdata); in rk3288_init_usb_uart()
438 ret = regmap_write(grf, RK3288_UOC0_CON3, val); in rk3288_init_usb_uart()
527 struct regmap *grf; in rockchip_init_usb_uart() local
549 grf = ERR_PTR(-ENODEV); in rockchip_init_usb_uart()
551 grf = syscon_node_to_regmap(np->parent); in rockchip_init_usb_uart()
552 if (IS_ERR(grf)) in rockchip_init_usb_uart()
553 grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); in rockchip_init_usb_uart()
554 if (IS_ERR(grf)) { in rockchip_init_usb_uart()
556 __func__, PTR_ERR(grf)); in rockchip_init_usb_uart()
557 return PTR_ERR(grf); in rockchip_init_usb_uart()
560 ret = data->init_usb_uart(grf, data); in rockchip_init_usb_uart()