diff options
author | Shinya Kuribayashi <shinya.kuribayashi.px@renesas.com> | 2012-10-24 19:58:10 +0900 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2012-11-16 09:09:12 +0100 |
commit | ebd5ac165f2aaefb767c53112c2010b0ff3df688 (patch) | |
tree | 61ae10e5e50c38483e3c86b183c7cdcd19cc0c96 /include/linux/i2c | |
parent | 23a612916a51cc3772ff46c9dc34a86c9c50840e (diff) | |
download | blackbird-op-linux-ebd5ac165f2aaefb767c53112c2010b0ff3df688.tar.gz blackbird-op-linux-ebd5ac165f2aaefb767c53112c2010b0ff3df688.zip |
i2c: i2c-sh_mobile: support I2C hardware block with a faster operating clock
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>
Diffstat (limited to 'include/linux/i2c')
-rw-r--r-- | include/linux/i2c/i2c-sh_mobile.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/i2c/i2c-sh_mobile.h b/include/linux/i2c/i2c-sh_mobile.h index beda7081aead..06e3089795fb 100644 --- a/include/linux/i2c/i2c-sh_mobile.h +++ b/include/linux/i2c/i2c-sh_mobile.h @@ -5,6 +5,7 @@ struct i2c_sh_mobile_platform_data { unsigned long bus_speed; + unsigned int clks_per_count; }; #endif /* __I2C_SH_MOBILE_H__ */ |