]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: pxa: Add definition of fast and high speed modes via the regs layout
authorRomain Perier <romain.perier@free-electrons.com>
Thu, 1 Dec 2016 11:04:37 +0000 (12:04 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 1 Dec 2016 22:33:05 +0000 (23:33 +0100)
commit1ae97d548862e931f9f7e2f3a2dba854ea618405
tree3e39b3eb920610dace91bb2f655fdabca75e2695
parent062a084d3c465d834e2a9ab676a80431f0f3d25a
i2c: pxa: Add definition of fast and high speed modes via the regs layout

So far, the bit masks for the fast and high speed mode were statically
defined. Some IP blocks might use different bits for these modes.

This commit introduces new fields in order to enable the definition of
different bit masks for these features. If these fields are undefined,
ICR_FM and ICR_HS are selected to preserve backward compatibility with
other IPs.

Signed-off-by: Romain Perier <romain.perier@free-electrons.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-pxa.c