Lines Matching +full:pseudo +full:- +full:device
4 * SPDX-License-Identifier: Apache-2.0
26 * PPC and VBUS rely on TCPC/UTCPD and are just pseudo. They are completely
31 * @brief Immutable device context
34 const struct device *tcpc_dev;
38 * @brief Initializes the usb-c ppc driver
41 * @retval -ENODEV if dependent TCPC device is not ready
43 static int numaker_ppc_init(const struct device *dev) in numaker_ppc_init()
45 const struct numaker_ppc_config *const config = dev->config; in numaker_ppc_init()
46 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_init()
50 LOG_ERR("TCPC device not ready"); in numaker_ppc_init()
51 return -ENODEV; in numaker_ppc_init()
62 * @retval -EIO if on failure
64 static int numaker_ppc_is_dead_battery_mode(const struct device *dev) in numaker_ppc_is_dead_battery_mode()
66 const struct numaker_ppc_config *const config = dev->config; in numaker_ppc_is_dead_battery_mode()
67 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_is_dead_battery_mode()
76 * @retval -EIO if on failure
78 static int numaker_ppc_exit_dead_battery_mode(const struct device *dev) in numaker_ppc_exit_dead_battery_mode()
80 const struct numaker_ppc_config *const config = dev->config; in numaker_ppc_exit_dead_battery_mode()
81 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_exit_dead_battery_mode()
91 * @retval -EIO on failure
93 static int numaker_ppc_is_vbus_source(const struct device *dev) in numaker_ppc_is_vbus_source()
95 const struct numaker_ppc_config *const config = dev->config; in numaker_ppc_is_vbus_source()
96 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_is_vbus_source()
106 * @retval -EIO on failure
108 static int numaker_ppc_is_vbus_sink(const struct device *dev) in numaker_ppc_is_vbus_sink()
110 const struct numaker_ppc_config *const config = dev->config; in numaker_ppc_is_vbus_sink()
111 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_is_vbus_sink()
120 * @retval -EIO on failure
122 static int numaker_ppc_set_snk_ctrl(const struct device *dev, bool enable) in numaker_ppc_set_snk_ctrl()
124 const struct numaker_ppc_config *const config = dev->config; in numaker_ppc_set_snk_ctrl()
125 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_set_snk_ctrl()
134 * @retval -EIO on failure
136 static int numaker_ppc_set_src_ctrl(const struct device *dev, bool enable) in numaker_ppc_set_src_ctrl()
138 const struct numaker_ppc_config *const config = dev->config; in numaker_ppc_set_src_ctrl()
139 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_set_src_ctrl()
148 * @retval -EIO on failure
150 static int numaker_ppc_set_vbus_discharge(const struct device *dev, bool enable) in numaker_ppc_set_vbus_discharge()
152 const struct numaker_ppc_config *const config = dev->config; in numaker_ppc_set_vbus_discharge()
153 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_set_vbus_discharge()
163 * @retval -EIO on failure
165 static int numaker_ppc_is_vbus_present(const struct device *dev) in numaker_ppc_is_vbus_present()
167 const struct numaker_ppc_config *const config = dev->config; in numaker_ppc_is_vbus_present()
168 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_is_vbus_present()
178 static int numaker_ppc_set_event_handler(const struct device *dev, usbc_ppc_event_cb_t handler, in numaker_ppc_set_event_handler()
181 const struct numaker_ppc_config *const config = dev->config; in numaker_ppc_set_event_handler()
182 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_set_event_handler()
191 * @retval -EIO on failure
193 static int numaker_ppc_dump_regs(const struct device *dev) in numaker_ppc_dump_regs()
195 const struct numaker_ppc_config *const config = dev->config; in numaker_ppc_dump_regs()
196 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_dump_regs()