static int pic32_spi_prepare_hardware(struct spi_master *master) { struct pic32_spi *pic32s = spi_master_get_devdata(master); pic32_spi_enable(pic32s); return 0; }
static int pic32_spi_claim_bus(struct udevice *slave) { struct pic32_spi_priv *priv = dev_get_priv(slave->parent); /* enable chip */ pic32_spi_enable(priv); return 0; }