i2c: designware_i2c: check is high speed possible support
authorJun Chen <jun.chen@vatics.com>
Mon, 2 Mar 2020 08:58:55 +0000 (16:58 +0800)
committerHeiko Schocher <hs@denx.de>
Mon, 16 Mar 2020 07:04:09 +0000 (08:04 +0100)
commit565e328b959b58c181fdec33b2e161ada90dd521
treeb46626db87850386a3d6a572d5882c96ee91ae10
parent70c894f85e9e116b8f215f522ed96b60ac60f201
i2c: designware_i2c: check is high speed possible support

To read IC_COMP_PARAM_1[3:2] to check is high speed possible,
and fall back to fast mode if not.

Signed-off-by: Jun Chen <ptchentw@gmail.com>
Signed-off-by: Jun Chen <jun.chen@vatics.com>
drivers/i2c/designware_i2c.c
drivers/i2c/designware_i2c.h