]> git.baikalelectronics.ru Git - kernel.git/commit
of serial port driver - add clk_get_rate() support
authorMurali Karicheri <m-karicheri2@ti.com>
Mon, 22 Oct 2012 15:58:01 +0000 (11:58 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Oct 2012 18:32:29 +0000 (11:32 -0700)
commit5e76e49629dc43aa5d55b03998b3bb1386752e53
tree7cde25a865c1acd1bc030da4816ea78603484ec8
parentac38e3efdebfbb7271f52eaef34eba287967ec0f
of serial port driver - add clk_get_rate() support

Currently this driver expects the clock-frequency attribute. This
patch allows getting clock-frequency through clk driver API
clk_get_rate() if clock-frequency attribute is not defined.

So in the device bindings for serial device, one can add clocks
phandle to refer to the clk device to get the rate.

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/of_serial.c