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)
commit01e73c89cf03c020e586dc9e30d52a6e098853f6
treedaef78c50110f4fed3218742bf8c6560e3645639
parentdaf93d2287ff8eb4a2f28224275fb02d623df2ab
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