| Matt Wagantall | b3fe899 | 2011-12-07 19:26:55 -0800 | [diff] [blame] | 1 | /* | 
 | 2 |  * Copyright (c) 2012, Code Aurora Forum. All rights reserved. | 
 | 3 |  * | 
 | 4 |  * This program is free software; you can redistribute it and/or modify | 
 | 5 |  * it under the terms of the GNU General Public License version 2 and | 
 | 6 |  * only version 2 as published by the Free Software Foundation. | 
 | 7 |  * | 
 | 8 |  * This program is distributed in the hope that it will be useful, | 
 | 9 |  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
 | 10 |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
 | 11 |  * GNU General Public License for more details. | 
 | 12 |  */ | 
 | 13 | #ifndef __MSM_PIL_Q6V5_H | 
 | 14 | #define __MSM_PIL_Q6V5_H | 
 | 15 |  | 
 | 16 | struct regulator; | 
 | 17 | struct clk; | 
 | 18 | struct pil_device; | 
 | 19 | struct pil_desc; | 
 | 20 | struct platform_device; | 
 | 21 |  | 
 | 22 | struct q6v5_data { | 
 | 23 | 	void __iomem *reg_base; | 
| Matt Wagantall | d41ce77 | 2012-05-10 23:16:41 -0700 | [diff] [blame] | 24 | 	struct clk *xo; | 
 | 25 | 	struct clk *bus_clk; | 
 | 26 | 	struct clk *core_clk; | 
| Matt Wagantall | 56865f0 | 2012-08-09 15:03:36 -0700 | [diff] [blame] | 27 | 	struct clk *ss_clk; | 
| Matt Wagantall | c2bbdc3 | 2012-03-21 19:44:50 -0700 | [diff] [blame] | 28 | 	void __iomem *axi_halt_base; | 
| Matt Wagantall | b3fe899 | 2011-12-07 19:26:55 -0800 | [diff] [blame] | 29 | 	void __iomem *rmb_base; | 
| Matt Wagantall | 4e2599e | 2012-03-21 22:31:35 -0700 | [diff] [blame] | 30 | 	void __iomem *restart_reg; | 
| Matt Wagantall | 16bc5cc | 2012-08-09 21:33:23 -0700 | [diff] [blame^] | 31 | 	void __iomem *io_clamp_reg; | 
| Matt Wagantall | b3fe899 | 2011-12-07 19:26:55 -0800 | [diff] [blame] | 32 | 	unsigned long start_addr; | 
 | 33 | 	struct regulator *vreg; | 
| Matt Wagantall | d41ce77 | 2012-05-10 23:16:41 -0700 | [diff] [blame] | 34 | 	bool is_booted; | 
| Matt Wagantall | b3fe899 | 2011-12-07 19:26:55 -0800 | [diff] [blame] | 35 | 	int self_auth; | 
| Matt Wagantall | b3fe899 | 2011-12-07 19:26:55 -0800 | [diff] [blame] | 36 | 	struct pil_device *pil; | 
 | 37 | }; | 
 | 38 |  | 
 | 39 | int pil_q6v5_make_proxy_votes(struct pil_desc *pil); | 
 | 40 | void pil_q6v5_remove_proxy_votes(struct pil_desc *pil); | 
| Matt Wagantall | b774799 | 2012-05-11 19:37:51 -0700 | [diff] [blame] | 41 | void pil_q6v5_halt_axi_port(struct pil_desc *pil, void __iomem *halt_base); | 
| Matt Wagantall | b3fe899 | 2011-12-07 19:26:55 -0800 | [diff] [blame] | 42 | int pil_q6v5_init_image(struct pil_desc *pil, const u8 *metadata, | 
 | 43 | 			size_t size); | 
 | 44 | void pil_q6v5_shutdown(struct pil_desc *pil); | 
 | 45 | int pil_q6v5_reset(struct pil_desc *pil); | 
| Matt Wagantall | d41ce77 | 2012-05-10 23:16:41 -0700 | [diff] [blame] | 46 | int pil_q6v5_enable_clks(struct pil_desc *pil); | 
 | 47 | void pil_q6v5_disable_clks(struct pil_desc *pil); | 
| Matt Wagantall | b3fe899 | 2011-12-07 19:26:55 -0800 | [diff] [blame] | 48 | struct pil_desc *pil_q6v5_init(struct platform_device *pdev); | 
 | 49 |  | 
 | 50 | #endif |