Skip to content
Commit 3f249755 authored by Wayne Ren's avatar Wayne Ren Committed by Anas Nashif
Browse files

drivers: spi: fix the bug of slave selection in spi_dw



According to data sheet of dw_spi, ser reg is used to
select spi device/slave.

one bit in ser maps to one spi device/slave, i.e..
cs 0 ---> bit 0
cs 1 ---> bit 1
cs 2 ---> bit 2

the original code has a bug. the config->slave cannot
directly be written into ser. It should be mapped to
the correct bits through 1 << config->slave.

Signed-off-by: default avatarWayne Ren <wei.ren@synopsys.com>
parent 3df9201e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment