• M
    mxs: i2c: Implement algorithm to set up arbitrary i2c speed · fa5e2845
    Marek Vasut 提交于
    This algorithm computes the values of TIMING{0,1,2} registers for the
    MX28 I2C block. This algorithm was derived by using a scope, but the
    result seems correct.
    
    The resulting values programmed into the registers do not correlate
    with the contents in datasheet. When using the values from the datasheet,
    the I2C clock were completely wrong.
    Signed-off-by: NMarek Vasut <marex@denx.de>
    Cc: Stefano Babic <sbabic@denx.de>
    Cc: Fabio Estevam <fabio.estevam@freescale.com>
    Cc: Wolfgang Denk <wd@denx.de>
    fa5e2845
clock.c 8.4 KB