mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 04:05:18 +07:00
ebd5ac165f
On newer SH-/R-Mobile SoCs, a clock supply to the I2C hardware block, which is used to generate the SCL clock output, is getting faster than before, while on the other hand, the SCL clock control registers, ICCH and ICCL, stay unchanged in 9-bit-wide (8+1). On such silicons, the internal SCL clock counter gets incremented every 2 clocks of the operating clock. This patch makes it configurable through platform data. Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi.px@renesas.com> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
12 lines
223 B
C
12 lines
223 B
C
#ifndef __I2C_SH_MOBILE_H__
|
|
#define __I2C_SH_MOBILE_H__
|
|
|
|
#include <linux/platform_device.h>
|
|
|
|
struct i2c_sh_mobile_platform_data {
|
|
unsigned long bus_speed;
|
|
unsigned int clks_per_count;
|
|
};
|
|
|
|
#endif /* __I2C_SH_MOBILE_H__ */
|