Deepak Katragadda | 4118ccc | 2013-07-05 10:01:19 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2010-2013, The Linux Foundation. All rights reserved. |
Stephen Boyd | e44ec39 | 2011-08-29 12:03:24 -0700 | [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 | */ |
Deepak Katragadda | 4118ccc | 2013-07-05 10:01:19 -0700 | [diff] [blame] | 12 | |
| 13 | #include <mach/msm_bus_board.h> |
| 14 | |
Stephen Boyd | e44ec39 | 2011-08-29 12:03:24 -0700 | [diff] [blame] | 15 | #ifndef __MSM_SCM_PAS_H |
| 16 | #define __MSM_SCM_PAS_H |
| 17 | |
| 18 | enum pas_id { |
| 19 | PAS_MODEM, |
| 20 | PAS_Q6, |
| 21 | PAS_DSPS, |
Stephen Boyd | d89eebe | 2011-09-28 23:28:11 -0700 | [diff] [blame] | 22 | PAS_TZAPPS, |
Stephen Boyd | e44ec39 | 2011-08-29 12:03:24 -0700 | [diff] [blame] | 23 | PAS_MODEM_SW, |
| 24 | PAS_MODEM_FW, |
Tianyi Gou | ca0aaac | 2012-07-27 14:13:29 -0700 | [diff] [blame] | 25 | PAS_WCNSS, |
Matt Wagantall | 11afeee | 2012-02-07 18:38:59 -0800 | [diff] [blame] | 26 | PAS_SECAPP, |
| 27 | PAS_GSS, |
Stephen Boyd | 7b973de | 2012-03-09 12:26:16 -0800 | [diff] [blame] | 28 | PAS_VIDC, |
Stephen Boyd | e44ec39 | 2011-08-29 12:03:24 -0700 | [diff] [blame] | 29 | }; |
| 30 | |
Stephen Boyd | 866f9a2 | 2012-07-10 18:56:53 -0700 | [diff] [blame] | 31 | #ifdef CONFIG_MSM_PIL |
Stephen Boyd | e44ec39 | 2011-08-29 12:03:24 -0700 | [diff] [blame] | 32 | extern int pas_init_image(enum pas_id id, const u8 *metadata, size_t size); |
Stephen Boyd | b16e016 | 2012-07-30 17:10:54 -0700 | [diff] [blame] | 33 | extern int pas_mem_setup(enum pas_id id, u32 start_addr, u32 len); |
Stephen Boyd | e44ec39 | 2011-08-29 12:03:24 -0700 | [diff] [blame] | 34 | extern int pas_auth_and_reset(enum pas_id id); |
| 35 | extern int pas_shutdown(enum pas_id id); |
| 36 | extern int pas_supported(enum pas_id id); |
Deepak Katragadda | 4118ccc | 2013-07-05 10:01:19 -0700 | [diff] [blame] | 37 | extern void scm_pas_init(enum msm_bus_fabric_master_type id); |
Stephen Boyd | 866f9a2 | 2012-07-10 18:56:53 -0700 | [diff] [blame] | 38 | #else |
| 39 | static inline int pas_init_image(enum pas_id id, const u8 *metadata, |
| 40 | size_t size) |
| 41 | { |
| 42 | return 0; |
| 43 | } |
Stephen Boyd | b16e016 | 2012-07-30 17:10:54 -0700 | [diff] [blame] | 44 | static inline int pas_mem_setup(enum pas_id id, u32 start_addr, u32 len) |
| 45 | { |
| 46 | return 0; |
| 47 | } |
Stephen Boyd | 866f9a2 | 2012-07-10 18:56:53 -0700 | [diff] [blame] | 48 | static inline int pas_auth_and_reset(enum pas_id id) |
| 49 | { |
| 50 | return 0; |
| 51 | } |
| 52 | static inline int pas_shutdown(enum pas_id id) |
| 53 | { |
| 54 | return 0; |
| 55 | } |
| 56 | static inline int pas_supported(enum pas_id id) |
| 57 | { |
| 58 | return 0; |
| 59 | } |
Deepak Katragadda | 4118ccc | 2013-07-05 10:01:19 -0700 | [diff] [blame] | 60 | static inline void scm_pas_init(enum msm_bus_fabric_master_type id) |
| 61 | { |
| 62 | } |
Stephen Boyd | 866f9a2 | 2012-07-10 18:56:53 -0700 | [diff] [blame] | 63 | #endif |
| 64 | |
Stephen Boyd | e44ec39 | 2011-08-29 12:03:24 -0700 | [diff] [blame] | 65 | #endif |