]> git.baikalelectronics.ru Git - kernel.git/commit
soc: mediatek: PMIC wrap: Fix clock rate handling
authorSascha Hauer <s.hauer@pengutronix.de>
Tue, 26 May 2015 09:37:43 +0000 (11:37 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Wed, 27 May 2015 12:11:41 +0000 (14:11 +0200)
commit10031c297e292d8700df88cc4f6a59d74093670e
treeb24297c4079d9702257f9fe766f98dd1ecf00e2e
parentce88222e1fb53c38d3b94c3b5ceebe1d2ab4956d
soc: mediatek: PMIC wrap: Fix clock rate handling

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@pengutronix.de>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-pmic-wrap.c