commit | 8cc7331ff372b9d03f8b2eb1422052bd99430611 | [log] [tgz] |
---|---|---|
author | Jingchang Lu <b35083@freescale.com> | Wed Aug 07 17:05:40 2013 +0800 |
committer | Wolfram Sang <wsa@the-dreams.de> | Thu Aug 15 16:13:17 2013 +0200 |
tree | 66e705a8e5b33abd0d7d1d920a5018a9ecef926e | |
parent | 1d5ef2a83e3097408924b5eea8d7750bbde21e45 [diff] |
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>