Was playing with the U-boot sspi command some more and noticed a couple of things. Besides the fact that davinci_spi.c is hardcoded to only work with bus 0 and cs 0, which seems weird, it also is hardcoded to always use CONFIG_SYS_SPI_BASE (which is TCI6638_SPI0_BASE). In other words, if a call is placed to spi_setup_slave with bus = 1, it will use bus 0's registers. This might have happened from reusing this code for keystone. Might want to have someone look at that.
↧