diff options
author | Michal Simek <michal.simek@xilinx.com> | 2015-04-15 14:59:19 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2015-04-29 11:19:03 +0200 |
commit | 16247d28d5e50fca8b2e11b5e1804524bca83361 (patch) | |
tree | b39b7593a9663e426f3eb5425fb8d0def474ad16 /arch/arm/cpu | |
parent | a7858f62d7bff145fe699ea0af7b8f61a2affa8a (diff) | |
download | u-boot-16247d28d5e50fca8b2e11b5e1804524bca83361.tar.gz u-boot-16247d28d5e50fca8b2e11b5e1804524bca83361.tar.xz u-boot-16247d28d5e50fca8b2e11b5e1804524bca83361.zip |
zynqmp: Add support for emulation platform - Veloce
Add support for Veloce - zynqmp emulation platform.
Platform doesn't support SDHCI.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r-- | arch/arm/cpu/armv8/zynqmp/clk.c | 3 | ||||
-rw-r--r-- | arch/arm/cpu/armv8/zynqmp/cpu.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv8/zynqmp/clk.c b/arch/arm/cpu/armv8/zynqmp/clk.c index 0af619d92f..9218586e94 100644 --- a/arch/arm/cpu/armv8/zynqmp/clk.c +++ b/arch/arm/cpu/armv8/zynqmp/clk.c @@ -6,6 +6,7 @@ */ #include <common.h> +#include <asm/arch/clk.h> #include <asm/arch/hardware.h> #include <asm/arch/sys_proto.h> @@ -16,6 +17,8 @@ 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; } diff --git a/arch/arm/cpu/armv8/zynqmp/cpu.c b/arch/arm/cpu/armv8/zynqmp/cpu.c index 11958fea6f..60d7d20e17 100644 --- a/arch/arm/cpu/armv8/zynqmp/cpu.c +++ b/arch/arm/cpu/armv8/zynqmp/cpu.c @@ -20,6 +20,8 @@ unsigned int zynqmp_get_silicon_version(void) gd->cpu_clk = get_tbclk(); switch (gd->cpu_clk) { + case 0 ... 1000000: + return ZYNQMP_CSU_VERSION_VELOCE; case 50000000: return ZYNQMP_CSU_VERSION_QEMU; } |