commit | 890813f47504f18f824ffb239af5006e50f05fda | [log] [tgz] |
---|---|---|
author | Ye Li <ye.li@nxp.com> | Tue Jun 09 20:29:50 2020 -0700 |
committer | Heiko Schocher <hs@denx.de> | Thu Jul 09 06:02:44 2020 +0200 |
tree | c7114bbc097940eb7aec3fc5a2ef78350c143130 | |
parent | d0f7586ac6e3889f877928745ba160c2d13c7228 [diff] |
i2c: imx_lpi2c: Improve the codes to use private data Current driver calls the devfdt_get_addr to get the base address of lpi2c controller in each sub-functions. Since the devfdt_get_addr accesses the DTB and translate the address, it introduces much overhead. Improve the codes to use private variable which has recorded the base address from probe. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>