blob: 362f7406cf61d0d00e78c92783c74b55972bcead [file] [log] [blame]
Julius Werner898a8df2019-06-05 12:40:35 -07001/*
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
20int spmi_arb_read8(uint32_t addr);
21int spmi_arb_write8(uint32_t addr, uint8_t data);
22
23#endif /* SPMI_ARB_H */