mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
spi: spi-uclass: Read chipselect and restrict capabilities
Read chipselect properties from DT which are populated using 'reg' property and save it in plat->cs[] array for later use. Also read multi chipselect capability which is used for parallel-memories and return errors if they are passed on using DT but driver is not capable of handling it. Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@amd.com> Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
This commit is contained in:
committed by
Tom Rini
parent
c480ec2c45
commit
34da258bb0
@@ -728,7 +728,7 @@ static int acpi_device_set_spi(const struct udevice *dev, struct acpi_spi *spi,
|
||||
|
||||
plat = dev_get_parent_plat(slave->dev);
|
||||
memset(spi, '\0', sizeof(*spi));
|
||||
spi->device_select = plat->cs;
|
||||
spi->device_select = plat->cs[0];
|
||||
spi->device_select_polarity = SPI_POLARITY_LOW;
|
||||
spi->wire_mode = SPI_4_WIRE_MODE;
|
||||
spi->speed = plat->max_hz;
|
||||
|
||||
Reference in New Issue
Block a user