From 2cab8b20816eea34f71cc0b74e1d14c3d7d22a96 Mon Sep 17 00:00:00 2001 From: Mary Ruthven Date: Tue, 19 Apr 2016 18:48:54 -0700 Subject: cr50: enable AP and EC flash access The cr50 SPI master can control the external AP and EC SPI ROM. This change adds support for doing spi_transactions, but does not use the SPI transactions for anything except console commands. This support will be used for flashing the AP and EC through CCD. For now AP and EC flash select must be done manually using the spi_flash_select console command. Flash select should be disabled after use, because it will prevent the system from booting. BUG=chrome-os-partner:50701 BRANCH=none TEST=Enable spi_flash commands. Select AP ROM and verify spi_flashinfo, read, erase, and write commands work properly. Select EC ROM and verify the same commands. Change-Id: I16c55015794f8513effe0fa5712488a84bed2627 Signed-off-by: Mary Ruthven Reviewed-on: https://chromium-review.googlesource.com/339844 Reviewed-by: Shawn N --- include/config.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/config.h b/include/config.h index 173db8f3ed..63096c843c 100644 --- a/include/config.h +++ b/include/config.h @@ -1606,6 +1606,9 @@ /* SPI master feature */ #undef CONFIG_SPI_MASTER +/* SPI master configure gpios on init */ +#undef CONFIG_SPI_MASTER_CONFIGURE_GPIOS + /* Support SPI masters without GPIO-specified Chip Selects, instead rely on the * SPI master port's hardwired CS pin. */ #undef CONFIG_SPI_MASTER_NO_CS_GPIOS -- cgit v1.2.1