@@ -402,6 +402,30 @@ int board_phy_config(struct phy_device *phydev)
return 0;
}
+int board_spi_find_bus(unsigned int bus, unsigned int cs)
+{
+ switch(bus) {
+ case SPI_BUS_FSL_QSPI0:
+ break;
+ default:
+ return -1;
+ }
+
+ switch(bus) {
+ case SPI_BUS_FSL_QSPI0:
+ if(cs == 0)
+ return 0;
+ default:
+ return -1;
+ }
+}
+
+void board_print_spi_device(void)
+{
+ printf("VF610-TWR spi flash info:\n");
+ printf("S25FL128S is on spi bus 0 cs 0\n");
+}
+
int board_early_init_f(void)
{
clock_init();
@@ -68,6 +68,8 @@
#define CONFIG_PHYLIB
#define CONFIG_PHY_MICREL
+#define CONFIG_FSL_SPI_INTERFACE
+
/* QSPI Configs*/
#define CONFIG_FSL_QSPI