Skip to content
Unverified Commit 3fe26121 authored by Lucas Tanure's avatar Lucas Tanure Committed by Mark Brown
Browse files

spi: amd: Configure device speed



Number of clock frequencies are supported by AMD controller
which are mentioned in the amd_spi_freq structure table.

Create mechanism to configure device clock frequency such
that it is strictly less than the requested frequency.

Give priority to the device transfer speed and in case
it is not set then use the max clock speed supported
by the device.

Signed-off-by: default avatarLucas Tanure <tanureal@opensource.cirrus.com>
Co-developed-by: default avatarShreeya Patel <shreeya.patel@collabora.com>
Signed-off-by: default avatarShreeya Patel <shreeya.patel@collabora.com>
Link: https://lore.kernel.org/r/20220825143132.253224-1-shreeya.patel@collabora.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent d294e99c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment