blob: e16531b6b1c0a69d92db0d07d01af38361eeb5a0 [file] [log] [blame]
/*
* Copyright (c) 2016 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*
* EXYNOS - Security Dump Manager support
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/smc.h>
#include <linux/printk.h>
int exynos_sdm_dump_secure_region(void)
{
int ret;
ret = exynos_smc(SMC_CMD_DUMP_SECURE_REGION, 0, 0, 0);
pr_info("%s: 0x%x\n", __func__, ret);
return ret;
}
int exynos_sdm_flush_secdram(void)
{
int ret;
ret = exynos_smc(SMC_CMD_FLUSH_SECDRAM, 0, 0, 0);
return ret;
}