]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: zynq: Add ps7GetSiliconVersion() to ps7_spl_init
authorMichal Simek <michal.simek@xilinx.com>
Fri, 10 Nov 2017 10:06:02 +0000 (11:06 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 29 Nov 2017 07:02:39 +0000 (08:02 +0100)
Unfortunately camelcase is coming from ps7_init* format.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/mach-zynq/include/mach/ps7_init_gpl.h
arch/arm/mach-zynq/ps7_spl_init.c

index c7c716e7f2c408524f8c49634a3abf40ef3af63d..fa5d486afb0c92dfc78118690ca97c59c208ed70 100644 (file)
 #define PS7_POLL_FAILED_DMA            (4)
 #define PS7_POLL_FAILED_PLL            (5)
 
+#define PCW_SILICON_VERSION_1  0
+#define PCW_SILICON_VERSION_2  1
+#define PCW_SILICON_VERSION_3  2
+
 /* Called by spl.c */
 int ps7_init(void);
 int ps7_post_config(void);
@@ -37,4 +41,6 @@ int ps7_post_config(void);
 /* Defined in ps7_init_common.c */
 int ps7_config(unsigned long *ps7_config_init);
 
+unsigned long ps7GetSiliconVersion(void);
+
 #endif /* _ASM_ARCH_PS7_INIT_GPL_H */
index 180099577b04337bf970fc3683febcf444b575c6..069827880d102fc66620e0cbe83ff23c85a38005 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <asm/io.h>
 #include <asm/spl.h>
+#include <asm/arch/sys_proto.h>
 #include <asm/arch/ps7_init_gpl.h>
 
 __weak int ps7_init(void)
@@ -134,3 +135,8 @@ int __weak ps7_config(unsigned long *ps7_config_init)
                ptr += numargs;
        }
 }
+
+unsigned long __weak __maybe_unused ps7GetSiliconVersion(void)
+{
+       return zynq_get_silicon_version();
+}