mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-17 10:24:49 +00:00
i2c: nuvoton: remove standard mode only
first version is only support standard mode. remove this judgment to support standard/fast/fast plus mode. Signed-off-by: Jim Liu <JJLIU0@nuvoton.com> Changes for v2: - add commit message Reviewed-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
parent
d9650a4823
commit
af7a4ff86f
1 changed files with 0 additions and 5 deletions
|
@ -517,11 +517,6 @@ static int npcm_i2c_init_clk(struct npcm_i2c_bus *bus, u32 bus_freq)
|
|||
u32 sclfrq;
|
||||
u8 hldt, val;
|
||||
|
||||
if (bus_freq > I2C_FREQ_100K) {
|
||||
printf("Support standard mode only\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* SCLFRQ = T(SCL)/4/T(CLK) = FREQ(CLK)/4/FREQ(SCL) */
|
||||
sclfrq = freq / (bus_freq * 4);
|
||||
if (sclfrq < SCLFRQ_MIN || sclfrq > SCLFRQ_MAX)
|
||||
|
|
Loading…
Add table
Reference in a new issue