Andre Przywara | 10d69c7 | 2017-12-13 01:08:01 +0000 | [diff] [blame] | 1 | /* |
| 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 | |
| 12 | int rsb_init_controller(void); |
| 13 | int rsb_set_bus_speed(uint32_t source_freq, uint32_t bus_freq); |
| 14 | int rsb_set_device_mode(uint32_t device_mode); |
| 15 | int rsb_assign_runtime_address(uint16_t hw_addr, uint8_t rt_addr); |
| 16 | |
| 17 | int rsb_read(uint8_t rt_addr, uint8_t reg_addr); |
| 18 | int rsb_write(uint8_t rt_addr, uint8_t reg_addr, uint8_t value); |
| 19 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 20 | #endif /* SUNXI_RSB_H */ |