Skip to content
Snippets Groups Projects
Commit b33af11d authored by Suravee Suthikulpanit's avatar Suravee Suthikulpanit Committed by Wolfram Sang
Browse files

i2c: designware: Do not require clock when SSCN and FFCN are provided


The current driver uses input clock source frequency to calculate
values for [SS|FS]_[HC|LC] registers. However, when booting ACPI, we do not
currently have a good way to provide the frequency information.
Instead, we can leverage the SSCN and FFCN ACPI methods, which can be used
to directly provide these values. So, the clock information should
no longer be required during probing.

However, since clk can be invalid, additional checks must be done where
we are making use of it.

Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: default avatarSuravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Tested-by: default avatarLoc Ho <lho@apm.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent fa5b0bfa
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment