forked from Minki/linux
2970bf5a32
Set the controller registers according to the real clock rate. The
controller registers configuration (setup, hold, timeout, ... cycles)
depends on the clock rate of the GPMI. Using the real rate instead of
the ideal one, avoids that this inaccuracy (required_rate - real_rate)
affects the registers setting.
This patch has been tested on two custom boards with i.MX28 and i.MX6
SOCs:
- i.MX28:
required rate 100MHz, real rate 99.3MHz
- i.MX6
required rate 100MHz, real rate 99MHz
Fixes:
|
||
---|---|---|
.. | ||
onenand | ||
raw | ||
spi | ||
bbt.c | ||
core.c | ||
ecc-sw-bch.c | ||
ecc-sw-hamming.c | ||
ecc.c | ||
Kconfig | ||
Makefile |