Lines Matching +full:pmic +full:- +full:specific

1 /* SPDX-License-Identifier: GPL-2.0 */
63 * iosf_mbi_read() - MailBox Interface read command
65 * @opcode: port specific read or write opcode
69 * Locking is handled by spinlock - cannot sleep.
75 * iosf_mbi_write() - MailBox unmasked write command
77 * @opcode: port specific read or write opcode
81 * Locking is handled by spinlock - cannot sleep.
87 * iosf_mbi_modify() - MailBox masked write command
89 * @opcode: port specific read or write opcode
94 * Locking is handled by spinlock - cannot sleep.
100 * iosf_mbi_punit_acquire() - Acquire access to the P-Unit
102 * One some systems the P-Unit accesses the PMIC to change various voltages
105 * If a driver sends requests to the P-Unit which require the P-Unit to access
106 * the PMIC bus while another driver is also accessing the PMIC bus various bad
109 * Call this function before sending requests to the P-Unit which may make it
110 * access the PMIC, be it through iosf_mbi* functions or through other means.
111 * This function will block all kernel access to the PMIC I2C bus, so that the
112 * P-Unit can safely access the PMIC over the shared I2C bus.
114 * Note on these systems the i2c-bus driver will request a sempahore from the
115 * P-Unit for exclusive access to the PMIC bus when i2c drivers are accessing
117 * certain P-Unit requests during the access window to avoid problems.
124 * iosf_mbi_punit_release() - Release access to the P-Unit
129 * iosf_mbi_block_punit_i2c_access() - Block P-Unit accesses to the PMIC bus
131 * Call this function to block P-Unit access to the PMIC I2C bus, so that the
132 * kernel can safely access the PMIC over the shared I2C bus.
134 * This function acquires the P-Unit bus semaphore and notifies
136 * P-Unit in a way which may cause it to access the shared I2C bus.
147 * iosf_mbi_unblock_punit_i2c_access() - Release PMIC I2C bus block
154 * iosf_mbi_register_pmic_bus_access_notifier - Register PMIC bus notifier
156 * This function can be used by drivers which may need to acquire P-Unit
161 * process context) before other drivers start accessing the PMIC bus.
164 * the window the other driver is accessing the PMIC, before hand.
171 * iosf_mbi_register_pmic_bus_access_notifier - Unregister PMIC bus notifier
178 * iosf_mbi_unregister_pmic_bus_access_notifier_unlocked - Unregister PMIC bus
190 * iosf_mbi_assert_punit_acquired - Assert that the P-Unit has been acquired.
205 return -EPERM; in iosf_mbi_read()
212 return -EPERM; in iosf_mbi_write()
219 return -EPERM; in iosf_mbi_modify()