blob: 23471d1d3b2ef4d6213f5a74550baeee3380f4fd [file] [log] [blame]
Matt Wagantallb3fe8992011-12-07 19:26:55 -08001/*
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
16struct regulator;
17struct clk;
18struct pil_device;
19struct pil_desc;
20struct platform_device;
21
22struct q6v5_data {
23 void __iomem *reg_base;
24 void __iomem *clk_base;
25 void __iomem *rmb_base;
26 unsigned long start_addr;
27 struct regulator *vreg;
28 bool vreg_enabled;
29 int self_auth;
30 struct clk *xo;
31 struct pil_device *pil;
32};
33
34int pil_q6v5_make_proxy_votes(struct pil_desc *pil);
35void pil_q6v5_remove_proxy_votes(struct pil_desc *pil);
36int pil_q6v5_init_image(struct pil_desc *pil, const u8 *metadata,
37 size_t size);
38void pil_q6v5_shutdown(struct pil_desc *pil);
39int pil_q6v5_reset(struct pil_desc *pil);
40struct pil_desc *pil_q6v5_init(struct platform_device *pdev);
41
42#endif