rcar3.c (be0a42a7d62605cfcabd8cbba6c104a80471cd94) | rcar3.c (76eff170bb05e59218008a21df670cb7177110e4) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Renesas USB driver R-Car Gen. 3 initialization and power control 4 * 5 * Copyright (C) 2016-2019 Renesas Electronics Corporation 6 */ 7 8#include <linux/delay.h> --- 81 unchanged lines hidden (view full) --- 90 usbhs_write32(priv, UGCTRL, 0); 91 usbhs_bset(priv, LPSTS, LPSTS_SUSPM, 0); 92 usbhs_write32(priv, UGCTRL, UGCTRL_PLLRESET); 93 } 94 95 return 0; 96} 97 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Renesas USB driver R-Car Gen. 3 initialization and power control 4 * 5 * Copyright (C) 2016-2019 Renesas Electronics Corporation 6 */ 7 8#include <linux/delay.h> --- 81 unchanged lines hidden (view full) --- 90 usbhs_write32(priv, UGCTRL, 0); 91 usbhs_bset(priv, LPSTS, LPSTS_SUSPM, 0); 92 usbhs_write32(priv, UGCTRL, UGCTRL_PLLRESET); 93 } 94 95 return 0; 96} 97 |
98const struct renesas_usbhs_platform_callback usbhs_rcar3_ops = { 99 .power_ctrl = usbhs_rcar3_power_ctrl, 100 .get_id = usbhs_get_id_as_gadget, | 98const struct renesas_usbhs_platform_info usbhs_rcar_gen3_plat_info = { 99 .platform_callback = { 100 .power_ctrl = usbhs_rcar3_power_ctrl, 101 .get_id = usbhs_get_id_as_gadget, 102 }, 103 .driver_param = { 104 .has_usb_dmac = 1, 105 .multi_clks = 1, 106 .has_new_pipe_configs = 1, 107 }, |
101}; 102 | 108}; 109 |
103const struct renesas_usbhs_platform_callback usbhs_rcar3_with_pll_ops = { 104 .power_ctrl = usbhs_rcar3_power_and_pll_ctrl, 105 .get_id = usbhs_get_id_as_gadget, | 110const struct renesas_usbhs_platform_info usbhs_rcar_gen3_with_pll_plat_info = { 111 .platform_callback = { 112 .power_ctrl = usbhs_rcar3_power_and_pll_ctrl, 113 .get_id = usbhs_get_id_as_gadget, 114 }, 115 .driver_param = { 116 .has_usb_dmac = 1, 117 .multi_clks = 1, 118 .has_new_pipe_configs = 1, 119 }, |
106}; | 120}; |