Home
last modified time | relevance | path

Searched hist:"5405817 a6e7a6538c4bcb1c3076ddc83fe5d03f9" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/spi/
H A Dcadence_qspi_apb.c5405817a6e7a6538c4bcb1c3076ddc83fe5d03f9 Sun Aug 07 14:50:40 UTC 2016 Chin Liang See <clsee@altera.com> spi: cadence_qspi_apb: Ensure baudrate doesn't exceed max value

Ensuring the baudrate divisor value doesn't exceed the max value
in the calculation.It will be capped at max value to ensure the
correct value being written into the register.

Example of the existing bug is when calculated div = 16. After and
with the mask, the value written to register is actually 0 (register
field for baudrate divisor). With this fix, the value written is now
15 which is max value for baudrate divisor.

Signed-off-by: Chin Liang See <clsee@altera.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Jagan Teki <jteki@openedev.com>
Cc: Dinh Nguyen <dinguyen@altera.com>