Jorge Ramirez-Ortiz | ab853b0 | 2018-09-23 09:40:26 +0200 | [diff] [blame] | 1 | /* |
Biju Das | f51d74f | 2020-12-13 20:05:24 +0000 | [diff] [blame] | 2 | * Copyright (c) 2015-2021, Renesas Electronics Corporation. All rights reserved. |
Jorge Ramirez-Ortiz | ab853b0 | 2018-09-23 09:40:26 +0200 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 7 | #ifndef IIC_DVFS_H |
| 8 | #define IIC_DVFS_H |
Jorge Ramirez-Ortiz | ab853b0 | 2018-09-23 09:40:26 +0200 | [diff] [blame] | 9 | |
| 10 | /* PMIC slave */ |
Biju Das | f51d74f | 2020-12-13 20:05:24 +0000 | [diff] [blame] | 11 | #define PMIC (0x30U) |
| 12 | #define BKUP_MODE_CNT (0x20U) |
| 13 | #define DVFS_SET_VID (0x54U) |
| 14 | #define REG_KEEP10 (0x79U) |
Jorge Ramirez-Ortiz | ab853b0 | 2018-09-23 09:40:26 +0200 | [diff] [blame] | 15 | |
| 16 | /* EEPROM slave */ |
Biju Das | f51d74f | 2020-12-13 20:05:24 +0000 | [diff] [blame] | 17 | #define EEPROM (0x50U) |
| 18 | #define BOARD_ID (0x70U) |
Jorge Ramirez-Ortiz | ab853b0 | 2018-09-23 09:40:26 +0200 | [diff] [blame] | 19 | |
| 20 | int32_t rcar_iic_dvfs_receive(uint8_t slave, uint8_t reg, uint8_t *data); |
| 21 | int32_t rcar_iic_dvfs_send(uint8_t slave, uint8_t regr, uint8_t data); |
| 22 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 23 | #endif /* IIC_DVFS_H */ |