diff options
author | Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> | 2017-01-17 16:27:30 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2017-02-17 10:22:46 +0100 |
commit | 781745bd87710c5604a0ae005153d0c9578d616a (patch) | |
tree | 1f769cbd756322f578ea632b5b6f384d36c4f0a3 /drivers/serial | |
parent | 3a64b2536487fe03d4d21d9cefb45b2c841a9d21 (diff) | |
download | u-boot-781745bd87710c5604a0ae005153d0c9578d616a.zip u-boot-781745bd87710c5604a0ae005153d0c9578d616a.tar.gz u-boot-781745bd87710c5604a0ae005153d0c9578d616a.tar.bz2 |
zynq: Move zynq to clock framework
Move the zynq to clock framework and remove unused functions as well as
the CONFIG_ZYNQ_PS_CLK_FREQ configuration.
Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/serial_zynq.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/serial/serial_zynq.c b/drivers/serial/serial_zynq.c index 4f6e7e4..a2967c0 100644 --- a/drivers/serial/serial_zynq.c +++ b/drivers/serial/serial_zynq.c @@ -15,7 +15,6 @@ #include <asm/io.h> #include <linux/compiler.h> #include <serial.h> -#include <asm/arch/clk.h> #include <asm/arch/hardware.h> DECLARE_GLOBAL_DATA_PTR; @@ -111,7 +110,6 @@ int zynq_serial_setbrg(struct udevice *dev, int baudrate) struct zynq_uart_priv *priv = dev_get_priv(dev); unsigned long clock; -#if defined(CONFIG_CLK) || defined(CONFIG_SPL_CLK) int ret; struct clk clk; @@ -133,9 +131,7 @@ int zynq_serial_setbrg(struct udevice *dev, int baudrate) dev_err(dev, "failed to enable clock\n"); return ret; } -#else - clock = get_uart_clk(0); -#endif + _uart_zynq_serial_setbrg(priv->regs, clock, baudrate); return 0; |