gru: Increase SPI speed to 33MHz
Increase the SPI bus speed to speed up boot time. The maximum supported speed at 1.8V is 37.5MHz, and 33MHz is the next lowest convenient speed, given the clock parents. BUG=chrome-os-partner:56556 BRANCH=none TEST=boot on gru and see that things still work correctly. Total time spent on reading from SPI reduces from 185ms to 141ms. Change-Id: I55a19f523817862e081d23469e94fd795456dd67 Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/381313 Commit-Ready: Julius Werner <jwerner@chromium.org> Tested-by: Simon Glass <sjg@google.com> Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
parent
e9b620c47f
commit
d7576f6e53
1 changed files with 2 additions and 1 deletions
|
|
@ -82,7 +82,8 @@ void bootblock_mainboard_init(void)
|
|||
/* Set pinmux and configure spi flashrom. */
|
||||
write32(&rk3399_pmugrf->spi1_rxd, IOMUX_SPI1_RX);
|
||||
write32(&rk3399_pmugrf->spi1_csclktx, IOMUX_SPI1_CSCLKTX);
|
||||
rockchip_spi_init(CONFIG_BOOT_DEVICE_SPI_FLASH_BUS, 24750*KHz);
|
||||
rockchip_spi_init(CONFIG_BOOT_DEVICE_SPI_FLASH_BUS, 33000*KHz);
|
||||
rockchip_spi_set_sample_delay(CONFIG_BOOT_DEVICE_SPI_FLASH_BUS, 5);
|
||||
|
||||
/* Set pinmux and configure EC SPI. */
|
||||
write32(&rk3399_grf->iomux_spi5, IOMUX_SPI5);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue