spmi_arb.h 711 B

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