diff options
author | Jack Chen <zenghuchen@google.com> | 2023-02-16 10:10:57 -0500 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2023-02-28 23:54:49 +0100 |
commit | 510d2358c466bf6588034f0d3b2266eed2bc0a51 (patch) | |
tree | be4e8c59c6a690c348b5d6f7bd1e1ecab13020a9 /drivers/i3c/master.c | |
parent | f195c470f2c2cf3737b2b157a5a2dbe182e374fa (diff) |
i3c: master: dw: stop hardcoding initial speed
Bus-speed could be default(12.5MHz) or defined by users in dts.
Dw-i3c-master should not hard-code the initial speed to be
I3C_BUS_TYP_I3C_SCL_RATE (12.5MHz)
And because of Synopsys's I3C controller limit (hcnt/lcnt register
length) and core-clk provided, there is a limit to bus speed, too.
For example, when core-clk is 250 MHz, the bus speed cannot be
lowered below 1MHz.
Tested: tested with an i3c sensor and captured with a logic analyzer.
Signed-off-by: Jack Chen <zenghuchen@google.com>
Link: https://lore.kernel.org/r/20230216151057.293764-1-zenghuchen@google.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/i3c/master.c')
0 files changed, 0 insertions, 0 deletions