diff options
author | Hans de Goede <hdegoede@redhat.com> | 2014-05-03 17:46:26 +0200 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2014-05-14 12:58:55 +0200 |
commit | fab356a0b87d57d474d6e87408f1ede98a503150 (patch) | |
tree | a1f3ffaae31c02683de01986589bb823b3fd2c56 /mkconfig | |
parent | 557a3319089499aa0e55d65a6b43b7137f362003 (diff) | |
download | u-boot-imx-fab356a0b87d57d474d6e87408f1ede98a503150.zip u-boot-imx-fab356a0b87d57d474d6e87408f1ede98a503150.tar.gz u-boot-imx-fab356a0b87d57d474d6e87408f1ede98a503150.tar.bz2 |
mvtwsi: Fix clock programming
The TWSI_FREQUENCY macro was wrong in 2 ways:
1) It was casting the result of the calculations to an u8, while i2c clk
rates are often >= 100Khz which won't fit in a u8, drop the cast.
2) It had an extra factor of 2 in the divider which neither the datasheet nor
the Linux driver have.
The comment for the default value was wrongly saying that m lives in
bits 4-7, while in reality it is in bits 3-6, as can be seen from the correct
shift by 3 used in i2c_init().
While at it remove the unused twsi_actual_speed variable.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'mkconfig')
0 files changed, 0 insertions, 0 deletions