google/oak: Configure SPI_LEVEL_ENABLE pin for rev5
Oak introduces a 1.8V to 3.3V level shifter for EC SPI bus after rev5. BRANCH=none BUG=none TEST=emerge-oak coreboot Change-Id: I71868b003fc71dee0532033299afc155a9fbec9c Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: 030b478fedf046a7b818696779299c591415fcbd Original-Change-Id: Ibff9705832700867279cb1b39b752b8f5f27cf33 Original-Signed-off-by: Yidi Lin <yidi.lin@mediatek.com> Original-Reviewed-on: https://chromium-review.googlesource.com/320026 Original-Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/13970 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
e2979df3df
commit
22d94ba8a2
|
@ -17,6 +17,7 @@
|
||||||
#include <boardid.h>
|
#include <boardid.h>
|
||||||
#include <bootblock_common.h>
|
#include <bootblock_common.h>
|
||||||
#include <delay.h>
|
#include <delay.h>
|
||||||
|
#include <gpio.h>
|
||||||
#include <soc/gpio.h>
|
#include <soc/gpio.h>
|
||||||
#include <soc/i2c.h>
|
#include <soc/i2c.h>
|
||||||
#include <soc/mt6391.h>
|
#include <soc/mt6391.h>
|
||||||
|
@ -79,6 +80,10 @@ void bootblock_mainboard_init(void)
|
||||||
/* set nor related GPIO */
|
/* set nor related GPIO */
|
||||||
nor_set_gpio_pinmux();
|
nor_set_gpio_pinmux();
|
||||||
|
|
||||||
|
/* SPI_LEVEL_ENABLE: Enable 1.8V to 3.3V level shifter for EC SPI bus */
|
||||||
|
if (board_id() > 4)
|
||||||
|
gpio_output(PAD_SRCLKENAI2, 1);
|
||||||
|
|
||||||
/* Init i2c bus 2 Timing register for TPM */
|
/* Init i2c bus 2 Timing register for TPM */
|
||||||
mtk_i2c_bus_init(CONFIG_DRIVER_TPM_I2C_BUS);
|
mtk_i2c_bus_init(CONFIG_DRIVER_TPM_I2C_BUS);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue