/* use phobos gpio pin to simulate ss line for hardware controlled Output mode.  */
static int32_t dw_spi_ss_init(dw_spi_priv_t *spi_priv)
/* use phobos gpio pin to simulate ss line for hardware controlled Output mode.  */
static int32_t dw_spi_ss_init(dw_spi_priv_t *spi_priv)
{
    csi_gpio_port_initialize(0, NULL);
    pgpio_pin_handle = csi_gpio_pin_initialize(spi_priv->ssel);
    csi_gpio_pin_config(pgpio_pin_handle, GPIO_MODE_PULLNONE, GPIO_DIRECTION_OUTPUT);
    csi_gpio_pin_write(pgpio_pin_handle, true);
    spi_priv->ss_mode = SPI_SS_MASTER_HW_OUTPUT;
    return 0;
}