[PATCH 1/2] soc: mediatek: PMIC wrap: Fix clock rate handling

Matthias Brugger matthias.bgg at gmail.com
Wed May 27 05:31:46 PDT 2015


2015-05-26 11:37 GMT+02:00 Sascha Hauer <s.hauer at pengutronix.de>:
> 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: Sascha Hauer <s.hauer at pengutronix.de>
> ---
>  drivers/soc/mediatek/mtk-pmic-wrap.c | 42 ++++++------------------------------
>  1 file changed, 7 insertions(+), 35 deletions(-)
>

Applied, thanks.
Matthias



More information about the Linux-mediatek mailing list