X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Flinux%2Frockchip%2Frockchip_sip.h;h=27b35463a604bb2f432fe343956cf2bc84e7d692;hb=d472b161d576a7304fab09d2423f2dd24132be2a;hp=92a28c669e9736c10bc994d8576d97b9518a0e79;hpb=c1b18ddbbc53dfce8422d0055e9f3ff772a3e87d;p=firefly-linux-kernel-4.4.55.git diff --git a/include/linux/rockchip/rockchip_sip.h b/include/linux/rockchip/rockchip_sip.h index 92a28c669e97..27b35463a604 100644 --- a/include/linux/rockchip/rockchip_sip.h +++ b/include/linux/rockchip/rockchip_sip.h @@ -91,8 +91,13 @@ struct arm_smccc_res sip_smc_ddr_cfg(u32 arg0, u32 arg1, u32 arg2); struct arm_smccc_res sip_smc_get_share_mem_page(u32 page_num, share_page_type_t page_type); +#ifdef CONFIG_ROCKCHIP_SIP u32 sip_smc_secure_reg_read(u32 addr_phy); int sip_smc_secure_reg_write(u32 addr_phy, u32 val); +#else +u32 sip_smc_secure_reg_read(u32 addr_phy) { return 0; } +int sip_smc_secure_reg_write(u32 addr_phy, u32 val) { return 0; } +#endif void psci_enable_fiq(void); u32 rockchip_psci_smc_get_tf_ver(void);