Tool/software: Linux
Hi Sir
we used SDK 6.0 with uboot version 2013.01 and would like to control SPI CS0 and CS1for different device's data Read/Write.
we set the pin-mux as below in uboot
static struct module_pin_mux spi0_pin_mux[] = {
{OFFSET(spi0_sclk), (MODE(0) | RXACTIVE | PULLUDEN)}, /* SPI0_SCLK */
{OFFSET(spi0_d0), (MODE(0) | RXACTIVE |
PULLUDEN | PULLUP_EN)}, /* SPI0_D0 */
{OFFSET(spi0_d1), (MODE(0) | RXACTIVE | PULLUDEN)}, /* SPI0_D1 */
{OFFSET(spi0_cs0), (MODE(0) | RXACTIVE |
PULLUDEN | PULLUP_EN)}, /* SPI0_CS0 */
{OFFSET(spi0_cs1), (MODE(0) | RXACTIVE |
PULLUDEN | PULLUP_EN)}, /* SPI0_CS1 */
{-1},
};
and enable SSPI command
when we execute below command and found the pin signal of CS0 and CS1 has the same behavior.
sspi 0:0.0 8 1f
Is there any limitation/notices for SPI0 chip-select setting ??
thanks for your help.
BR
Yimin