]> git.sur5r.net Git - u-boot/commitdiff
ARM64: zynqmp: Add initial support for the first silicon
authorMichal Simek <michal.simek@xilinx.com>
Thu, 20 Aug 2015 12:01:39 +0000 (14:01 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 27 Jan 2016 14:55:56 +0000 (15:55 +0100)
Add basic configuration for the first silicon.

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

index 40bd2ca213a87a7c34a9c947f3cecb537c5c1aa7..690c72dd66836190a5c709900d1d694d8d5fd02d 100644 (file)
@@ -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)
index 45b49dc0182e76b7122dc690fae11ffc2ce65e4e..c71f29152deed40d1d55683c57ad8db36a940ed7 100644 (file)
@@ -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