Root/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 */
13
14#ifndef _hndpmu_h_
15#define _hndpmu_h_
16
17#define SET_LDO_VOLTAGE_LDO1 1
18#define SET_LDO_VOLTAGE_LDO2 2
19#define SET_LDO_VOLTAGE_LDO3 3
20#define SET_LDO_VOLTAGE_PAREF 4
21
22extern void sb_pmu_init(sb_t *sbh, osl_t *osh);
23extern void sb_pmu_pll_init(sb_t *sbh, osl_t *osh, uint32 xtalfreq);
24extern void sb_pmu_res_init(sb_t *sbh, osl_t *osh);
25extern uint32 sb_pmu_force_ilp(sb_t *sbh, osl_t *osh, bool force);
26extern uint32 sb_pmu_cpu_clock(sb_t *sbh, osl_t *osh);
27extern uint32 sb_pmu_alp_clock(sb_t *sbh, osl_t *osh);
28
29extern void sb_pmu_set_switcher_voltage(sb_t *sbh, osl_t *osh, uint8 bb_voltage, uint8 rf_voltage);
30extern void sb_pmu_set_ldo_voltage(sb_t *sbh, osl_t *osh, uint8 ldo, uint8 voltage);
31extern void sb_pmu_paref_ldo_enable(sb_t *sbh, osl_t *osh, bool enable);
32extern uint16 sb_pmu_fast_pwrup_delay(sb_t *sbh, osl_t *osh);
33extern void sb_pmu_otp_power(sb_t *sbh, osl_t *osh, bool on);
34extern void sb_pmu_rcal(sb_t *sbh, osl_t *osh);
35
36#endif /* _hndpmu_h_ */
37

Archive Download this file



interactive