~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/staging/brcm80211/include/hndpmu.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (c) 2010 Broadcom Corporation
3
 
 *
4
 
 * Permission to use, copy, modify, and/or distribute this software for any
5
 
 * purpose with or without fee is hereby granted, provided that the above
6
 
 * copyright notice and this permission notice appear in all copies.
7
 
 *
8
 
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9
 
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10
 
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
11
 
 * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12
 
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
13
 
 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
14
 
 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15
 
 */
16
 
 
17
 
#ifndef _hndpmu_h_
18
 
#define _hndpmu_h_
19
 
 
20
 
#define SET_LDO_VOLTAGE_LDO1    1
21
 
#define SET_LDO_VOLTAGE_LDO2    2
22
 
#define SET_LDO_VOLTAGE_LDO3    3
23
 
#define SET_LDO_VOLTAGE_PAREF   4
24
 
#define SET_LDO_VOLTAGE_CLDO_PWM        5
25
 
#define SET_LDO_VOLTAGE_CLDO_BURST      6
26
 
#define SET_LDO_VOLTAGE_CBUCK_PWM       7
27
 
#define SET_LDO_VOLTAGE_CBUCK_BURST     8
28
 
#define SET_LDO_VOLTAGE_LNLDO1  9
29
 
#define SET_LDO_VOLTAGE_LNLDO2_SEL      10
30
 
 
31
 
extern void si_pmu_init(si_t *sih, struct osl_info *osh);
32
 
extern void si_pmu_chip_init(si_t *sih, struct osl_info *osh);
33
 
extern void si_pmu_pll_init(si_t *sih, struct osl_info *osh, u32 xtalfreq);
34
 
extern void si_pmu_res_init(si_t *sih, struct osl_info *osh);
35
 
extern void si_pmu_swreg_init(si_t *sih, struct osl_info *osh);
36
 
 
37
 
extern u32 si_pmu_force_ilp(si_t *sih, struct osl_info *osh, bool force);
38
 
 
39
 
extern u32 si_pmu_si_clock(si_t *sih, struct osl_info *osh);
40
 
extern u32 si_pmu_cpu_clock(si_t *sih, struct osl_info *osh);
41
 
extern u32 si_pmu_mem_clock(si_t *sih, struct osl_info *osh);
42
 
extern u32 si_pmu_alp_clock(si_t *sih, struct osl_info *osh);
43
 
extern u32 si_pmu_ilp_clock(si_t *sih, struct osl_info *osh);
44
 
 
45
 
extern void si_pmu_set_switcher_voltage(si_t *sih, struct osl_info *osh,
46
 
                                        u8 bb_voltage, u8 rf_voltage);
47
 
extern void si_pmu_set_ldo_voltage(si_t *sih, struct osl_info *osh, u8 ldo,
48
 
                                   u8 voltage);
49
 
extern u16 si_pmu_fast_pwrup_delay(si_t *sih, struct osl_info *osh);
50
 
extern void si_pmu_rcal(si_t *sih, struct osl_info *osh);
51
 
extern void si_pmu_pllupd(si_t *sih);
52
 
extern void si_pmu_spuravoid(si_t *sih, struct osl_info *osh, u8 spuravoid);
53
 
 
54
 
extern bool si_pmu_is_otp_powered(si_t *sih, struct osl_info *osh);
55
 
extern u32 si_pmu_measure_alpclk(si_t *sih, struct osl_info *osh);
56
 
 
57
 
extern u32 si_pmu_chipcontrol(si_t *sih, uint reg, u32 mask, u32 val);
58
 
extern u32 si_pmu_regcontrol(si_t *sih, uint reg, u32 mask, u32 val);
59
 
extern u32 si_pmu_pllcontrol(si_t *sih, uint reg, u32 mask, u32 val);
60
 
extern void si_pmu_pllupd(si_t *sih);
61
 
extern void si_pmu_sprom_enable(si_t *sih, struct osl_info *osh, bool enable);
62
 
 
63
 
extern void si_pmu_radio_enable(si_t *sih, bool enable);
64
 
extern u32 si_pmu_waitforclk_on_backplane(si_t *sih, struct osl_info *osh,
65
 
                                             u32 clk, u32 delay);
66
 
 
67
 
extern void si_pmu_otp_power(si_t *sih, struct osl_info *osh, bool on);
68
 
extern void si_sdiod_drive_strength_init(si_t *sih, struct osl_info *osh,
69
 
                                         u32 drivestrength);
70
 
 
71
 
#endif                          /* _hndpmu_h_ */