]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM64: zynqmp: Remove get_uart_clk()
authorMichal Simek <michal.simek@xilinx.com>
Thu, 14 Jul 2016 12:41:28 +0000 (14:41 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 22 Jul 2016 12:04:41 +0000 (14:04 +0200)
ZynqMP will use reading clock freq directly from DT.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/cpu/armv8/zynqmp/clk.c
arch/arm/include/asm/arch-zynqmp/clk.h

index 690c72dd66836190a5c709900d1d694d8d5fd02d..f7e5ebfa6343dc79b542700a80816c0e6365de1d 100644 (file)
 
 DECLARE_GLOBAL_DATA_PTR;
 
-unsigned long get_uart_clk(int dev_id)
-{
-       u32 ver = zynqmp_get_silicon_version();
-
-       switch (ver) {
-       case ZYNQMP_CSU_VERSION_VELOCE:
-               return 48000;
-       case ZYNQMP_CSU_VERSION_EP108:
-               return 25000000;
-       case ZYNQMP_CSU_VERSION_QEMU:
-               return 133000000;
-       }
-
-       return 100000000;
-}
-
 unsigned long zynqmp_get_system_timer_freq(void)
 {
        u32 ver = zynqmp_get_silicon_version();
index b18333d1ca25fd29bb13100d58646fe01adb8316..bfd53b530584285c51e35a3af58c8353df54474c 100644 (file)
@@ -8,7 +8,6 @@
 #ifndef _ASM_ARCH_CLK_H_
 #define _ASM_ARCH_CLK_H_
 
-unsigned long get_uart_clk(int dev_id);
 unsigned long zynqmp_get_system_timer_freq(void);
 
 #endif /* _ASM_ARCH_CLK_H_ */