mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-28 20:02:17 +00:00
![Shinya Kuribayashi](/assets/img/avatar_default.png)
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>
11 lines
223 B
C
11 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__ */
|