i2c: mv_i2c.c: Enable runtime speed selection (standard vs fast mode)
authorStefan Roese <sr@denx.de>
Fri, 16 Sep 2016 13:07:53 +0000 (15:07 +0200)
committerHeiko Schocher <hs@denx.de>
Mon, 26 Sep 2016 08:42:37 +0000 (10:42 +0200)
commit9ad5a00712fd1a75b047eca76d9ebaa76609ca11
tree6d77a3105187f138e995db39ff09c913268e690e
parent0c0f719ad2f46c8566a56daee37ebdb7c078c3b1
i2c: mv_i2c.c: Enable runtime speed selection (standard vs fast mode)

This patch adds runtime speed configuration to the mv_i2c driver.
Currently standard (max 100kHz) and fast mode (max 400kHz) are
supported.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Nadav Haklai <nadavh@marvell.com>
Cc: Kostya Porotchkin <kostap@marvell.com>
Cc: Wilson Ding <dingwei@marvell.com>
Cc: Victor Gu <xigu@marvell.com>
Cc: Hua Jing <jinghua@marvell.com>
Cc: Terry Zhou <bjzhou@marvell.com>
Cc: Hanna Hawa <hannah@marvell.com>
Cc: Haim Boot <hayim@marvell.com>
Cc: Heiko Schocher <hs@denx.de>
drivers/i2c/mv_i2c.c
drivers/i2c/mv_i2c.h