From b660199bd5b6a463371a9357524bbb7e146717d2 Mon Sep 17 00:00:00 2001 From: Siva Durga Prasad Paladugu Date: Wed, 24 Aug 2016 14:49:12 +0530 Subject: [PATCH] zynqmp: Get chipid from ATF using SMC Get the chipid from ATF using SMC as ATF is supporting it now. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- board/xilinx/zynqmp/zynqmp.c | 3 --- include/zynqmppl.h | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c index 0522fb27ad1..b266e916eb7 100644 --- a/board/xilinx/zynqmp/zynqmp.c +++ b/board/xilinx/zynqmp/zynqmp.c @@ -83,10 +83,7 @@ static int chip_id(void) regs.regs[2] = 0; regs.regs[3] = 0; -/* Uncomment this when you have ATF version which supports this SMC call */ -#if 0 smc_call(®s); -#endif return regs.regs[0]; } diff --git a/include/zynqmppl.h b/include/zynqmppl.h index 048ee284ea3..542ace9a03b 100644 --- a/include/zynqmppl.h +++ b/include/zynqmppl.h @@ -10,8 +10,7 @@ #include -#define ZYNQMP_SIP_SVC_CSU_DMA_CHIPID 0x82002007 - +#define ZYNQMP_SIP_SVC_CSU_DMA_CHIPID 0xC2000018 #define ZYNQMP_SIP_SVC_PM_FPGA_LOAD 0xC2000016 #define ZYNQMP_FPGA_OP_INIT (1 << 0) #define ZYNQMP_FPGA_OP_LOAD (1 << 1) -- 2.47.3