]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynqmp: Get chipid from ATF using SMC
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Wed, 24 Aug 2016 09:19:12 +0000 (14:49 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 24 Aug 2016 09:36:03 +0000 (11:36 +0200)
Get the chipid from ATF using SMC as ATF
is supporting it now.

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

index 0522fb27ad1af3e6a4cd5b644d69b04e3a0e6451..b266e916eb7df65366c0ae39ca6ba2e1ba2c6cf4 100644 (file)
@@ -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(&regs);
-#endif
 
        return regs.regs[0];
 }
index 048ee284ea34d223820fd72504d87fcb63cb4be0..542ace9a03b9b6d9262bc64b0191c758e28cb500 100644 (file)
@@ -10,8 +10,7 @@
 
 #include <xilinx.h>
 
-#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)