]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm64: zynqmp: Make chip_id a global routine()
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Tue, 25 Jul 2017 06:21:38 +0000 (11:51 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 2 Aug 2017 07:11:52 +0000 (09:11 +0200)
This patch makes chip_id() as a global routine so that
it can be used in other places as required.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/include/asm/arch-zynqmp/sys_proto.h
board/xilinx/zynqmp/zynqmp.c

index cef4bd6bd465c987d6cb121c747d488964524bb6..e52abd71a5a30ca013ed861b274cea9395c0a619 100644 (file)
@@ -45,4 +45,6 @@ int invoke_smc(u32 pm_api_id, u32 arg0, u32 arg1, u32 arg2, u32 arg3,
 
 void initialize_tcm(bool mode);
 
+int chip_id(unsigned char id);
+
 #endif /* _ASM_ARCH_SYS_PROTO_H */
index 5958350a0098369bd6d42e2c2fc5b7447e9280da..ae69615bfdbb9af352c8d72b6863c0a6052d94bd 100644 (file)
@@ -76,7 +76,7 @@ static const struct {
        },
 };
 
-static int chip_id(unsigned char id)
+int chip_id(unsigned char id)
 {
        struct pt_regs regs;
        regs.regs[0] = ZYNQMP_SIP_SVC_CSU_DMA_CHIPID;