blob: 30b67c216ca8edb09342996a407c1833edefee69 [file] [log] [blame]
/* Copyright (c) 2011-2012, Code Aurora Forum. 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 _ARCH_ARM_MACH_MSM_PM_BOOT_H
#define _ARCH_ARM_MACH_MSM_PM_BOOT_H
/* 8x25 specific macros */
#define MPA5_CFG_CTL_REG 0x30
#define MPA5_BOOT_REMAP_ADDR 0x34
/* end */
enum {
MSM_PM_BOOT_CONFIG_TZ = 0,
MSM_PM_BOOT_CONFIG_RESET_VECTOR_PHYS = 1,
MSM_PM_BOOT_CONFIG_RESET_VECTOR_VIRT = 2,
MSM_PM_BOOT_CONFIG_REMAP_BOOT_ADDR = 3,
};
struct msm_pm_boot_platform_data {
int mode;
phys_addr_t p_addr;
void __iomem *v_addr;
};
#ifdef CONFIG_PM
int __init msm_pm_boot_init(struct msm_pm_boot_platform_data *pdata);
#else
static inline int __init msm_pm_boot_init(
struct msm_pm_boot_platform_data *pdata)
{
return 0;
}
#endif
void msm_pm_boot_config_before_pc(unsigned int cpu, unsigned long entry);
void msm_pm_boot_config_after_pc(unsigned int cpu);
#endif