]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: cros ec: spi: Add delay for raising CS
authorRhyland Klein <rklein@nvidia.com>
Mon, 9 Dec 2013 11:36:09 +0000 (12:36 +0100)
committerLee Jones <lee.jones@linaro.org>
Tue, 21 Jan 2014 08:28:06 +0000 (08:28 +0000)
commitf33ae426dbf2e584c70b4ecd6621a7cc85d019b1
treedaef78c50110f4fed3218742bf8c6560e3645639
parent9cb377d28bdf7cf837fd993443f136551f7e7d92
mfd: cros ec: spi: Add delay for raising CS

The EC has specific timing it requires. Add support for an optional delay
after raising CS to fix timing issues. This is configurable based on
a DT property "google,cros-ec-spi-msg-delay".

If this property isn't set, then no delay will be added. However, if set
it will cause a delay equal to the value passed to it to be inserted at
the end of a transaction.

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Reviewed-by: Bernie Thompson <bhthompson@chromium.org>
Reviewed-by: Andrew Bresticker <abrestic@chromium.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Documentation/devicetree/bindings/mfd/cros-ec.txt
drivers/mfd/cros_ec_spi.c