X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=include%2Fspi.h;h=ec17bd0bcc8963e4c4e402e57c0003d3b839b568;hb=1a1ad8e0903ec916d1e3ef8c18fa335d765a4342;hp=aa0a48ea62710dd019c77c75cc5350a9f61fb14d;hpb=dee8abcd80d0981f7a1c2bb5d1f2e9313fddf189;p=karo-tx-uboot.git diff --git a/include/spi.h b/include/spi.h index aa0a48ea62..ec17bd0bcc 100644 --- a/include/spi.h +++ b/include/spi.h @@ -34,6 +34,7 @@ /* SPI TX operation modes */ #define SPI_OPM_TX_QPP (1 << 0) +#define SPI_OPM_TX_BP (1 << 1) /* SPI RX operation modes */ #define SPI_OPM_RX_AS (1 << 0) @@ -534,18 +535,14 @@ int spi_get_bus_and_cs(int busnum, int cs, int speed, int mode, int spi_chip_select(struct udevice *slave); /** - * spi_bind_device() - bind a device to a bus's chip select - * - * This binds a new device to an given chip select (which must be unused). + * spi_find_chip_select() - Find the slave attached to chip select * * @bus: SPI bus to search - * @cs: Chip select to attach to - * @drv_name: Name of driver to attach to this chip select - * @dev_name: Name of the new device thus created - * @devp: Returns the newly bound device + * @cs: Chip select to look for + * @devp: Returns the slave device if found + * @return 0 if found, -ENODEV on error */ -int spi_bind_device(struct udevice *bus, int cs, const char *drv_name, - const char *dev_name, struct udevice **devp); +int spi_find_chip_select(struct udevice *bus, int cs, struct udevice **devp); /** * spi_ofdata_to_platdata() - decode standard SPI platform data