Archana Sathyakumar | 2844101 | 2013-02-01 17:45:38 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2011-2013, The Linux Foundation. All rights reserved. |
Maheshkumar Sivasubramanian | 8ccc16e | 2011-10-25 15:59:57 -0600 | [diff] [blame] | 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | * |
| 12 | */ |
| 13 | #ifndef _ARCH_ARM_MACH_MSM_PM_BOOT_H |
| 14 | #define _ARCH_ARM_MACH_MSM_PM_BOOT_H |
| 15 | |
Murali Nalajala | 41786ab | 2012-03-06 10:47:32 +0530 | [diff] [blame] | 16 | /* 8x25 specific macros */ |
| 17 | #define MPA5_CFG_CTL_REG 0x30 |
Murali Nalajala | 41786ab | 2012-03-06 10:47:32 +0530 | [diff] [blame] | 18 | /* end */ |
| 19 | |
Maheshkumar Sivasubramanian | 8ccc16e | 2011-10-25 15:59:57 -0600 | [diff] [blame] | 20 | enum { |
Archana Sathyakumar | 2844101 | 2013-02-01 17:45:38 -0700 | [diff] [blame] | 21 | MSM_PM_BOOT_CONFIG_TZ , |
| 22 | MSM_PM_BOOT_CONFIG_RESET_VECTOR_PHYS, |
| 23 | MSM_PM_BOOT_CONFIG_RESET_VECTOR_VIRT, |
| 24 | MSM_PM_BOOT_CONFIG_REMAP_BOOT_ADDR , |
Maheshkumar Sivasubramanian | c6c5503 | 2011-10-25 16:01:32 -0600 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | struct msm_pm_boot_platform_data { |
| 28 | int mode; |
| 29 | phys_addr_t p_addr; |
| 30 | void __iomem *v_addr; |
Maheshkumar Sivasubramanian | 8ccc16e | 2011-10-25 15:59:57 -0600 | [diff] [blame] | 31 | }; |
| 32 | |
Chintan Pandya | 1260788 | 2011-11-25 19:21:33 +0530 | [diff] [blame] | 33 | #ifdef CONFIG_PM |
Maheshkumar Sivasubramanian | c6c5503 | 2011-10-25 16:01:32 -0600 | [diff] [blame] | 34 | int __init msm_pm_boot_init(struct msm_pm_boot_platform_data *pdata); |
Chintan Pandya | 1260788 | 2011-11-25 19:21:33 +0530 | [diff] [blame] | 35 | #else |
Maheshkumar Sivasubramanian | c6c5503 | 2011-10-25 16:01:32 -0600 | [diff] [blame] | 36 | static inline int __init msm_pm_boot_init( |
Chintan Pandya | 8e49274 | 2011-12-30 18:59:42 +0530 | [diff] [blame] | 37 | struct msm_pm_boot_platform_data *pdata) |
Chintan Pandya | 1260788 | 2011-11-25 19:21:33 +0530 | [diff] [blame] | 38 | { |
| 39 | return 0; |
| 40 | } |
| 41 | #endif |
Maheshkumar Sivasubramanian | c6c5503 | 2011-10-25 16:01:32 -0600 | [diff] [blame] | 42 | |
Maheshkumar Sivasubramanian | 8ccc16e | 2011-10-25 15:59:57 -0600 | [diff] [blame] | 43 | void msm_pm_boot_config_before_pc(unsigned int cpu, unsigned long entry); |
| 44 | void msm_pm_boot_config_after_pc(unsigned int cpu); |
| 45 | |
| 46 | #endif |