blob: 3d003cee7101d4d6202bd9f5a906911b94ba239d [file] [log] [blame]
Andre Przywara10d69c72017-12-13 01:08:01 +00001/*
2 * Copyright (c) 2017-2018 ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef SUNXI_RSB_H
8#define SUNXI_RSB_H
9
10#include <stdint.h>
11
12int rsb_init_controller(void);
13int rsb_set_bus_speed(uint32_t source_freq, uint32_t bus_freq);
14int rsb_set_device_mode(uint32_t device_mode);
15int rsb_assign_runtime_address(uint16_t hw_addr, uint8_t rt_addr);
16
17int rsb_read(uint8_t rt_addr, uint8_t reg_addr);
18int rsb_write(uint8_t rt_addr, uint8_t reg_addr, uint8_t value);
19
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000020#endif /* SUNXI_RSB_H */