]> git.baikalelectronics.ru Git - uboot.git/commit
spi: zynq_qspi: Add a check for baudrate and set default if not in limits
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Mon, 31 Jan 2022 05:22:39 +0000 (22:22 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 4 Feb 2022 12:20:28 +0000 (13:20 +0100)
commit28fa30ffa3c364144f4357189c57382e0b2c3fda
tree4cbcbc699ad7db470f5c0ce29311181df2fb5c0d
parent17d60ec0fcd86849a938d45b861da361c79b95d3
spi: zynq_qspi: Add a check for baudrate and set default if not in limits

Add a check afer baudrate calculation to see if the resultant value
falls within the range, else set it to default baudrate value.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
Link: https://lore.kernel.org/r/20220131052240.23403-4-ashok.reddy.soma@xilinx.com
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/spi/zynq_qspi.c