soc/intel/common/block/gspi: set cs polarity before using
commitcb06fab1fcb17cf9fd82b2d74c2eb2e319f2bba2
authorNick Vaccaro <nvaccaro@google.com>
Thu, 21 Dec 2017 01:18:01 +0000 (20 17:18 -0800)
committerPatrick Georgi <pgeorgi@google.com>
Thu, 8 Mar 2018 18:24:05 +0000 (8 18:24 +0000)
tree3fe00f80b6045f292ec090d40b7f1633560524ad
parent5d6ab45dbb641187f82b4e3ed7487488ccd4971c
soc/intel/common/block/gspi: set cs polarity before using

Move call to __gspi_cs_change() in gspi_ctrlr_setup() to after
initialization of cs polarity since it requires polarity to be
set to work properly.  Failure to do so confuses cr50.

BUG=b:70628116
BRANCH=chromeos-2016.05
TEST='emerge-meowth coreboot' and verify on scope that chip select
polarity is correct for the first transaction.

Change-Id: I20b4f584663477d751a07889bccc865efbf9c469
Signed-off-by: Nick Vaccaro <nvaccaro@google.com>
Reviewed-on: https://review.coreboot.org/25013
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Caveh Jalali <caveh@google.com>
Reviewed-by: Furquan Shaikh <furquan@google.com>
src/soc/intel/common/block/gspi/gspi.c