aboutsummaryrefslogtreecommitdiff
path: root/drivers/renesas/rcar/iic_dvfs/iic_dvfs.h
blob: 2dec58f6473190a841fb9aec305330eaa76ea81d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (c) 2015-2017, Renesas Electronics Corporation. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#ifndef IIC_DVFS_H
#define IIC_DVFS_H

/* PMIC slave */
#define PMIC			(0x30)
#define	BKUP_MODE_CNT		(0x20)
#define	DVFS_SET_VID		(0x54)
#define	REG_KEEP10		(0x79)

/* EEPROM slave */
#define EEPROM			(0x50)
#define	BOARD_ID		(0x70)

int32_t rcar_iic_dvfs_receive(uint8_t slave, uint8_t reg, uint8_t *data);
int32_t rcar_iic_dvfs_send(uint8_t slave, uint8_t regr, uint8_t data);

#endif /* IIC_DVFS_H */