• Sascha Hauer's avatar
    soc: mediatek: PMIC wrap: Fix clock rate handling · d71c11f3
    Sascha Hauer authored
    replace chipselect extension values based on SPI clock with hardcoded SoC
    specific values.
    
    The PMIC wrapper has the ability of extending the chipselects by configurable
    amounts of time. We configured the values based on the rate of SPI clock, but
    this is wrong. The delays should be configured based on the internal PMIC clock
    that latches the values from the SPI bus to the internal PMIC registers. By
    default this clock is 24MHz. Other clock frequencies are for debugging only
    and can be removed from the driver.
    Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
    Signed-off-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
    d71c11f3
mtk-pmic-wrap.c 24.2 KB