tty: serial: qcom_geni_serial: Add 51.2MHz frequency support
authorsatya priya <skakit@codeaurora.org>
Fri, 29 May 2020 10:14:42 +0000 (15:44 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 May 2020 11:49:02 +0000 (13:49 +0200)
commita1b44ea340b21c99b34c93acad233da727cb88ba
treeda92fc13a819ae1aea6ebfa579cc988ec5144e51
parentd1d996afbd2bca3bf3c484fc1f7a738134d65207
tty: serial: qcom_geni_serial: Add 51.2MHz frequency support

To support BT use case over UART at baud rate of 3.2 Mbps,
we need SE clocks to run at 51.2MHz frequency. Previously this
frequency was not available in clk src, so, we were requesting
for 102.4 MHz and dividing it internally by 2 to get 51.2MHz.

As now 51.2MHz frequency is made available in clk src,
adding this frequency to UART frequency table.

We will save significant amount of power, if 51.2 is used
because it belongs to LowSVS range whereas 102.4 fall into
Nominal category.

Signed-off-by: satya priya <skakit@codeaurora.org>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/1590747282-5487-1-git-send-email-skakit@codeaurora.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/qcom_geni_serial.c