mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
SMC calls are common for IPQ807x, IPQ40xx hence moving it to common folder Change-Id: I3d6564ad51ebe396f85cedbf41374374f40865c6 Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
37 lines
1.2 KiB
C
37 lines
1.2 KiB
C
/* Copyright (c) 2015-2016 The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
#ifndef __MACH_SCM_H
|
|
#define __MACH_SCM_H
|
|
|
|
#define SCM_SVC_BOOT 0x1
|
|
#define SCM_SVC_PIL 0x2
|
|
#define SCM_SVC_UTIL 0x3
|
|
#define SCM_SVC_TZ 0x4
|
|
#define SCM_SVC_IO 0x5
|
|
#define SCM_SVC_INFO 0x6
|
|
#define SCM_SVC_SSD 0x7
|
|
#define SCM_SVC_FUSE 0x8
|
|
#define SCM_SVC_PWR 0x9
|
|
#define SCM_SVC_CP 0xC
|
|
#define SCM_SVC_DCVS 0xD
|
|
#define SCM_SVC_TZSCHEDULER 0xFC
|
|
#define SCM_SVC_WR 0x10
|
|
#define SCM_SVC_RD 0x12
|
|
#define QFPROM_IS_AUTHENTICATE_CMD 0x7
|
|
|
|
#define KERNEL_AUTH_CMD 0x13
|
|
#define CE_CHN_SWITCH_CMD 0x2
|
|
|
|
int scm_init(void);
|
|
extern int scm_call(u32 svc_id, u32 cmd_id, const void *cmd_buf, size_t cmd_len,
|
|
void *resp_buf, size_t resp_len);
|
|
#endif
|