summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2015-08-20 14:01:39 +0200
committerMichal Simek <michal.simek@xilinx.com>2016-01-27 15:55:56 +0100
commitbe6f6af1d63d92d6c9496656d97c603b7ae17656 (patch)
treee6afc107d780ac2d5931bfbdb8795cca39f96864 /arch
parent0785dfd8a7b14cb2c99fc1271c865eb2170c620b (diff)
downloadu-boot-imx-be6f6af1d63d92d6c9496656d97c603b7ae17656.zip
u-boot-imx-be6f6af1d63d92d6c9496656d97c603b7ae17656.tar.gz
u-boot-imx-be6f6af1d63d92d6c9496656d97c603b7ae17656.tar.bz2
ARM64: zynqmp: Add initial support for the first silicon
Add basic configuration for the first silicon. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/armv8/zynqmp/clk.c4
-rw-r--r--arch/arm/cpu/armv8/zynqmp/cpu.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/cpu/armv8/zynqmp/clk.c b/arch/arm/cpu/armv8/zynqmp/clk.c
index 40bd2ca..690c72d 100644
--- a/arch/arm/cpu/armv8/zynqmp/clk.c
+++ b/arch/arm/cpu/armv8/zynqmp/clk.c
@@ -21,9 +21,11 @@ unsigned long get_uart_clk(int dev_id)
return 48000;
case ZYNQMP_CSU_VERSION_EP108:
return 25000000;
+ case ZYNQMP_CSU_VERSION_QEMU:
+ return 133000000;
}
- return 133000000;
+ return 100000000;
}
unsigned long zynqmp_get_system_timer_freq(void)
diff --git a/arch/arm/cpu/armv8/zynqmp/cpu.c b/arch/arm/cpu/armv8/zynqmp/cpu.c
index 45b49dc..c71f291 100644
--- a/arch/arm/cpu/armv8/zynqmp/cpu.c
+++ b/arch/arm/cpu/armv8/zynqmp/cpu.c
@@ -38,9 +38,11 @@ unsigned int zynqmp_get_silicon_version(void)
return ZYNQMP_CSU_VERSION_VELOCE;
case 50000000:
return ZYNQMP_CSU_VERSION_QEMU;
+ case 4000000:
+ return ZYNQMP_CSU_VERSION_EP108;
}
- return ZYNQMP_CSU_VERSION_EP108;
+ return ZYNQMP_CSU_VERSION_SILICON;
}
#ifndef CONFIG_SYS_DCACHE_OFF