2 * (C) Copyright 2014 - 2015 Xilinx, Inc.
3 * Michal Simek <michal.simek@xilinx.com>
5 * SPDX-License-Identifier: GPL-2.0+
9 #include <asm/arch/hardware.h>
10 #include <asm/arch/sys_proto.h>
13 #define ZYNQ_SILICON_VER_MASK 0xF000
14 #define ZYNQ_SILICON_VER_SHIFT 12
16 DECLARE_GLOBAL_DATA_PTR;
18 unsigned int zynqmp_get_silicon_version(void)
20 gd->cpu_clk = get_tbclk();
22 switch (gd->cpu_clk) {
24 return ZYNQMP_CSU_VERSION_QEMU;
27 return ZYNQMP_CSU_VERSION_EP108;