• Arseny Solokha's avatar
    i2c: mpc: unify obtaining the MPC8533/44 I2C clock prescaler w/ MPC8xxx · f6214f6f
    Arseny Solokha authored
    Commit 8ce795cb ("i2c: mpc: assign the correct prescaler from SVR")
    introduced the common helper function for obtaining the actual clock
    prescaler value for MPC85xx. However, getting the prescaler for MPC8544
    which depends on the SEC frequency ratio on this platform, has been always
    performed separately based on the corresponding Device Tree configuration.
    
    Move special handling of MPC8544 into that common helper. Make it dependent
    on the SoC version and not on Device Tree compatible node, as is the case
    with all other SoCs. Handle MPC8533 the same way which is similar
    to MPC8544 in this regard, according to AN2919 "Determining the I2C
    Frequency Divider Ratio for SCL".
    Signed-off-by: default avatarArseny Solokha <asolokha@kb.kras.ru>
    Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
    f6214f6f
i2c-mpc.c 21.8 KB