[kernel] generic-2.6/2.6.24: refresh patches
[openwrt.git] / target / linux / brcm-2.4 / files / arch / mips / bcm947xx / include / hndpmu.h
1 /*
2 * HND SiliconBackplane PMU support.
3 *
4 * Copyright 2007, Broadcom Corporation
5 * All Rights Reserved.
6 *
7 * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
8 * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
9 * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
10 * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
11 *
12 * $Id$
13 */
14
15 #ifndef _hndpmu_h_
16 #define _hndpmu_h_
17
18 #define SET_LDO_VOLTAGE_LDO1 1
19 #define SET_LDO_VOLTAGE_LDO2 2
20 #define SET_LDO_VOLTAGE_LDO3 3
21 #define SET_LDO_VOLTAGE_PAREF 4
22
23 extern void sb_pmu_init(sb_t *sbh, osl_t *osh);
24 extern void sb_pmu_pll_init(sb_t *sbh, osl_t *osh, uint32 xtalfreq);
25 extern void sb_pmu_res_init(sb_t *sbh, osl_t *osh);
26 extern uint32 sb_pmu_force_ilp(sb_t *sbh, osl_t *osh, bool force);
27 extern uint32 sb_pmu_cpu_clock(sb_t *sbh, osl_t *osh);
28 extern uint32 sb_pmu_alp_clock(sb_t *sbh, osl_t *osh);
29
30 extern void sb_pmu_set_switcher_voltage(sb_t *sbh, osl_t *osh, uint8 bb_voltage, uint8 rf_voltage);
31 extern void sb_pmu_set_ldo_voltage(sb_t *sbh, osl_t *osh, uint8 ldo, uint8 voltage);
32 extern void sb_pmu_paref_ldo_enable(sb_t *sbh, osl_t *osh, bool enable);
33 extern uint16 sb_pmu_fast_pwrup_delay(sb_t *sbh, osl_t *osh);
34 extern void sb_pmu_otp_power(sb_t *sbh, osl_t *osh, bool on);
35 extern void sb_pmu_rcal(sb_t *sbh, osl_t *osh);
36
37 #endif /* _hndpmu_h_ */
This page took 0.054815 seconds and 5 git commands to generate.