2
* Copyright (c) 2010 Broadcom Corporation
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.
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.
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
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);
37
extern u32 si_pmu_force_ilp(si_t *sih, struct osl_info *osh, bool force);
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);
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,
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);
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);
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);
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,
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,
71
#endif /* _hndpmu_h_ */