]> git.karo-electronics.de Git - linux-beck.git/commit
i2c: imx: change register offset representation
authorJingchang Lu <b35083@freescale.com>
Wed, 7 Aug 2013 09:05:40 +0000 (17:05 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 15 Aug 2013 14:13:17 +0000 (16:13 +0200)
commit8cc7331ff372b9d03f8b2eb1422052bd99430611
tree66e705a8e5b33abd0d7d1d920a5018a9ecef926e
parent1d5ef2a83e3097408924b5eea8d7750bbde21e45
i2c: imx: change register offset representation

the I2C register offset may different between SoCs,
to provid support for all these chips, split the
register offset into a fixed base address and a
variable shift value, then the full register offset
will be calculated by
reg_off = ( reg_base_addr << reg_shift)

Signed-off-by: Jingchang Lu <b35083@freescale.com>
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-imx.c