2010-08-27 17:01:23 +00:00
|
|
|
/* Copyright (c) 2010, Code Aurora Forum. All rights reserved.
|
|
|
|
*
|
2011-02-15 00:15:26 +00:00
|
|
|
* 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.
|
2010-08-27 17:01:23 +00:00
|
|
|
*
|
2011-02-15 00:15:26 +00:00
|
|
|
* 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.
|
2010-08-27 17:01:23 +00:00
|
|
|
*/
|
2015-02-04 22:30:46 +00:00
|
|
|
#ifndef __QCOM_SCM_H
|
|
|
|
#define __QCOM_SCM_H
|
2010-08-27 17:01:23 +00:00
|
|
|
|
2015-02-04 22:30:46 +00:00
|
|
|
#define QCOM_SCM_FLAG_WARMBOOT_CPU0 0x04
|
|
|
|
#define QCOM_SCM_FLAG_WARMBOOT_CPU1 0x02
|
|
|
|
#define QCOM_SCM_FLAG_WARMBOOT_CPU2 0x10
|
|
|
|
#define QCOM_SCM_FLAG_WARMBOOT_CPU3 0x40
|
2015-02-04 21:46:04 +00:00
|
|
|
|
2015-03-02 23:30:28 +00:00
|
|
|
extern int qcom_scm_set_cold_boot_addr(void *entry, const cpumask_t *cpus);
|
2015-02-04 21:46:04 +00:00
|
|
|
|
2015-02-04 22:30:46 +00:00
|
|
|
#define QCOM_SCM_VERSION(major, minor) (((major) << 16) | ((minor) & 0xFF))
|
2010-08-27 17:01:23 +00:00
|
|
|
|
2015-02-04 22:30:46 +00:00
|
|
|
extern u32 qcom_scm_get_version(void);
|
2010-08-27 17:01:23 +00:00
|
|
|
|
|
|
|
#endif
|