diff options
author | Mary Ruthven <mruthven@chromium.org> | 2016-04-19 18:48:54 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-04-26 14:21:00 -0700 |
commit | 2cab8b20816eea34f71cc0b74e1d14c3d7d22a96 (patch) | |
tree | 31ca0f0e11267324c9fcfc9fd7ae15c27e560385 /board/cr50/board.h | |
parent | 539e261d720e8851a64e2d95bbc5f5883718a193 (diff) | |
download | chrome-ec-2cab8b20816eea34f71cc0b74e1d14c3d7d22a96.tar.gz |
cr50: enable AP and EC flash accessstabilize-8249.B
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 <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/339844
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'board/cr50/board.h')
-rw-r--r-- | board/cr50/board.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/board/cr50/board.h b/board/cr50/board.h index 685d511c1c..d04c44a79e 100644 --- a/board/cr50/board.h +++ b/board/cr50/board.h @@ -38,6 +38,12 @@ #define CONFIG_USB_PID 0x5014 +/* Enable SPI Master (SPI) module */ +#define CONFIG_SPI_MASTER +#define CONFIG_SPI_MASTER_NO_CS_GPIOS +#define CONFIG_SPI_MASTER_CONFIGURE_GPIOS +#define CONFIG_SPI_FLASH_PORT 0 + /* Enable SPI Slave (SPS) module */ #define CONFIG_SPS #define CONFIG_TPM_SPS |