Skip to content
Snippets Groups Projects
Commit f52bf5a3 authored by Siva Durga Prasad Paladugu's avatar Siva Durga Prasad Paladugu Committed by Michal Simek
Browse files

arm64: zynqmp: Make chip_id a global routine()


This patch makes chip_id() as a global routine so that
it can be used in other places as required.

Signed-off-by: default avatarSiva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent db3123b4
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment