diff options
author | Antonio Niño Díaz <antonio.ninodiaz@arm.com> | 2018-10-31 12:02:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-31 12:02:22 +0100 |
commit | 318c2f9760377605ba257b5799bbdf52139030dd (patch) | |
tree | 6e4ca9fcf982092b6d80b0facd6dc3f5790b1156 /include/drivers | |
parent | 55dd52a39d077d46078d60b01cbfce91b3036f4d (diff) | |
parent | 7db0c96023281d8a530f5e011a232e5d56557437 (diff) |
Merge pull request #1646 from Andre-ARM/allwinner/pmic-v2
Allwinner/pmic v2
Diffstat (limited to 'include/drivers')
-rw-r--r-- | include/drivers/allwinner/sunxi_rsb.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/drivers/allwinner/sunxi_rsb.h b/include/drivers/allwinner/sunxi_rsb.h new file mode 100644 index 00000000..5a69d35f --- /dev/null +++ b/include/drivers/allwinner/sunxi_rsb.h @@ -0,0 +1,20 @@ +/* + * Copyright (c) 2017-2018 ARM Limited and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef SUNXI_RSB_H +#define SUNXI_RSB_H + +#include <stdint.h> + +int rsb_init_controller(void); +int rsb_set_bus_speed(uint32_t source_freq, uint32_t bus_freq); +int rsb_set_device_mode(uint32_t device_mode); +int rsb_assign_runtime_address(uint16_t hw_addr, uint8_t rt_addr); + +int rsb_read(uint8_t rt_addr, uint8_t reg_addr); +int rsb_write(uint8_t rt_addr, uint8_t reg_addr, uint8_t value); + +#endif |