]> git.dujemihanovic.xyz Git - u-boot.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)
commit30671860d746ead98296662c226be275041ed18a
tree4cbcbc699ad7db470f5c0ce29311181df2fb5c0d
parenta5a387a421105e671ee86a257eccf4d68aa1e7e7
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