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>
master
Michal Simek 10 years ago
parent a7858f62d7
commit 16247d28d5
  1. 3
      arch/arm/cpu/armv8/zynqmp/clk.c
  2. 2
      arch/arm/cpu/armv8/zynqmp/cpu.c
  3. 1
      arch/arm/include/asm/arch-zynqmp/hardware.h
  4. 8
      board/xilinx/zynqmp/zynqmp.c

@ -6,6 +6,7 @@
*/ */
#include <common.h> #include <common.h>
#include <asm/arch/clk.h>
#include <asm/arch/hardware.h> #include <asm/arch/hardware.h>
#include <asm/arch/sys_proto.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(); u32 ver = zynqmp_get_silicon_version();
switch (ver) { switch (ver) {
case ZYNQMP_CSU_VERSION_VELOCE:
return 48000;
case ZYNQMP_CSU_VERSION_EP108: case ZYNQMP_CSU_VERSION_EP108:
return 25000000; return 25000000;
} }

@ -20,6 +20,8 @@ unsigned int zynqmp_get_silicon_version(void)
gd->cpu_clk = get_tbclk(); gd->cpu_clk = get_tbclk();
switch (gd->cpu_clk) { switch (gd->cpu_clk) {
case 0 ... 1000000:
return ZYNQMP_CSU_VERSION_VELOCE;
case 50000000: case 50000000:
return ZYNQMP_CSU_VERSION_QEMU; return ZYNQMP_CSU_VERSION_QEMU;
} }

@ -84,6 +84,7 @@ struct apu_regs {
/* Board version value */ /* Board version value */
#define ZYNQMP_CSU_VERSION_SILICON 0x0 #define ZYNQMP_CSU_VERSION_SILICON 0x0
#define ZYNQMP_CSU_VERSION_EP108 0x1 #define ZYNQMP_CSU_VERSION_EP108 0x1
#define ZYNQMP_CSU_VERSION_VELOCE 0x2
#define ZYNQMP_CSU_VERSION_QEMU 0x3 #define ZYNQMP_CSU_VERSION_QEMU 0x3
#endif /* _ASM_ARCH_HARDWARE_H */ #endif /* _ASM_ARCH_HARDWARE_H */

@ -56,14 +56,18 @@ int board_mmc_init(bd_t *bd)
{ {
int ret = 0; int ret = 0;
u32 ver = zynqmp_get_silicon_version();
if (ver != ZYNQMP_CSU_VERSION_VELOCE) {
#if defined(CONFIG_ZYNQ_SDHCI) #if defined(CONFIG_ZYNQ_SDHCI)
# if defined(CONFIG_ZYNQ_SDHCI0) # if defined(CONFIG_ZYNQ_SDHCI0)
ret = zynq_sdhci_init(ZYNQ_SDHCI_BASEADDR0); ret = zynq_sdhci_init(ZYNQ_SDHCI_BASEADDR0);
# endif # endif
# if defined(CONFIG_ZYNQ_SDHCI1) # if defined(CONFIG_ZYNQ_SDHCI1)
ret |= zynq_sdhci_init(ZYNQ_SDHCI_BASEADDR1); ret |= zynq_sdhci_init(ZYNQ_SDHCI_BASEADDR1);
# endif # endif
#endif #endif
}
return ret; return ret;
} }

Loading…
Cancel
Save