提交 cf7d4505 编写于 作者: D David Müller (ELSOFT AG) 提交者: Tom Rini

PATI: fix broken SPI access

fix broken SPI access by adding/activating BOARD_EARLY_INIT_F
functionality and calling spi_init_f() from there.
Signed-off-by: NDavid Müller <d.mueller@elsoft.ch>
上级 6c4c9a7c
......@@ -311,6 +311,11 @@ void user_led1(int led_on)
sysconf->sc_sgpiodt2=reg; /* Data register */
}
int board_early_init_f(void)
{
spi_init_f();
return 0;
}
/****************************************************************
* Last Stage Init
......
......@@ -98,6 +98,7 @@
#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, 1250000 }
#define CONFIG_BOARD_EARLY_INIT_F
/***********************************************************************
* Last Stage Init
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册