1 /* 2 * Copyright (c) 2020, Google LLC. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef SPMI_ARB_H 8 #define SPMI_ARB_H 9 10 #include <stdint.h> 11 12 /******************************************************************************* 13 * WARNING: This driver does not arbitrate access with the kernel. These APIs 14 * must only be called when the kernel is known to be quiesced (such as before 15 * boot or while the system is shutting down). 16 ******************************************************************************/ 17 18 /* 32-bit addresses combine (U)SID, PID and register address. */ 19 20 int spmi_arb_read8(uint32_t addr); 21 int spmi_arb_write8(uint32_t addr, uint8_t data); 22 23 #endif /* SPMI_ARB_H */ 24