aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rpmsg
diff options
context:
space:
mode:
authorFugang Duan <B38611@freescale.com>2014-05-19 22:21:45 -0400
committerWolfram Sang <wsa@the-dreams.de>2014-06-02 13:18:33 -0400
commit9b2a6da33ccb1bc0d68f4319cef7c7299727ac4d (patch)
tree7a8f88926c912c9f23d96432260cf23795703e60 /drivers/rpmsg
parent054b62d9f25c903958749e4cea25261324a7a2a4 (diff)
i2c: imx: update i2c clock divider for each transaction
Since IMX serial SOCs support low bus freq mode, some clocks freq may change to save power. I2C needs to check the clock source and update the divider. For example: i.MX6SL I2C clk is from IPG_PERCLK which is sourced from IPG_CLK. Under normal operation, IPG_CLK is 66MHz, ipg_perclk is at 22MHz. In low bus freq mode, IPG_CLK is at 12MHz and IPG_PERCLK is down to 4MHz. So the I2C driver must update the divider register for each transaction when the current IPG_PERCLK is not equal to the clock of previous transaction. Signed-off-by: Fugang Duan <B38611@freescale.com> [wsa: removed an outdated comment and simplified debug output] Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/rpmsg')
0 files changed, 0 insertions, 0 deletions