Linux Kernel
3.7.1
|
#include <linux/mfd/mc13783.h>
#include <linux/regulator/machine.h>
#include <linux/regulator/driver.h>
#include <linux/platform_device.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/err.h>
#include <linux/module.h>
#include "mc13xxx.h"
Go to the source code of this file.
Functions | |
subsys_initcall (mc13783_regulator_init) | |
module_exit (mc13783_regulator_exit) | |
MODULE_LICENSE ("GPL v2") | |
MODULE_AUTHOR ("Sascha Hauer <[email protected]>") | |
MODULE_DESCRIPTION ("Regulator Driver for Freescale MC13783 PMIC") | |
MODULE_ALIAS ("platform:mc13783-regulator") | |
Definition at line 235 of file mc13783-regulator.c.
#define MC13783_DEFINE_REGU | ( | _name, | |
_reg, | |||
_vsel_reg, | |||
_voltages | |||
) | MC13783_DEFINE(REG, _name, _reg, _vsel_reg, _voltages) |
Definition at line 249 of file mc13783-regulator.c.
#define MC13783_DEFINE_SW | ( | _name, | |
_reg, | |||
_vsel_reg, | |||
_voltages | |||
) | MC13783_DEFINE(REG, _name, _reg, _vsel_reg, _voltages) |
Definition at line 247 of file mc13783-regulator.c.
Definition at line 239 of file mc13783-regulator.c.
Definition at line 243 of file mc13783-regulator.c.
#define MC13783_REG_POWERMISC 34 |
Definition at line 108 of file mc13783-regulator.c.
#define MC13783_REG_POWERMISC_GPO1EN (1 << 6) |
Definition at line 109 of file mc13783-regulator.c.
#define MC13783_REG_POWERMISC_GPO2EN (1 << 8) |
Definition at line 110 of file mc13783-regulator.c.
#define MC13783_REG_POWERMISC_GPO3EN (1 << 10) |
Definition at line 111 of file mc13783-regulator.c.
#define MC13783_REG_POWERMISC_GPO4EN (1 << 12) |
Definition at line 112 of file mc13783-regulator.c.
#define MC13783_REG_POWERMISC_PWGT1SPIEN (1 << 15) |
Definition at line 113 of file mc13783-regulator.c.
#define MC13783_REG_POWERMISC_PWGT2SPIEN (1 << 16) |
Definition at line 114 of file mc13783-regulator.c.
#define MC13783_REG_POWERMISC_PWGTSPI_M (3 << 15) |
Definition at line 116 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORMODE0 32 |
Definition at line 87 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORMODE0_VAUDIOEN (1 << 0) |
Definition at line 88 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORMODE0_VDIGEN (1 << 9) |
Definition at line 91 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORMODE0_VGENEN (1 << 12) |
Definition at line 92 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORMODE0_VIOHIEN (1 << 3) |
Definition at line 89 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORMODE0_VIOLOEN (1 << 6) |
Definition at line 90 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORMODE0_VRFCPEN (1 << 21) |
Definition at line 95 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORMODE0_VRFDIGEN (1 << 15) |
Definition at line 93 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORMODE0_VRFREFEN (1 << 18) |
Definition at line 94 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORMODE1 33 |
Definition at line 97 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORMODE1_VCAMEN (1 << 6) |
Definition at line 100 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORMODE1_VESIMEN (1 << 3) |
Definition at line 99 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORMODE1_VMMC1EN (1 << 18) |
Definition at line 105 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORMODE1_VMMC2EN (1 << 21) |
Definition at line 106 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORMODE1_VRF1EN (1 << 12) |
Definition at line 103 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORMODE1_VRF2EN (1 << 15) |
Definition at line 104 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORMODE1_VRFBGEN (1 << 9) |
Definition at line 101 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORMODE1_VSIMEN (1 << 0) |
Definition at line 98 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORMODE1_VVIBEN (1 << 11) |
Definition at line 102 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING0 30 |
Definition at line 53 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING0_VCAMVSEL 16 |
Definition at line 62 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING0_VCAMVSEL_M (7 << 16) |
Definition at line 72 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING0_VDIGVSEL 4 |
Definition at line 55 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING0_VDIGVSEL_M (3 << 4) |
Definition at line 65 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING0_VESIMVSEL 15 |
Definition at line 61 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING0_VESIMVSEL_M (1 << 15) |
Definition at line 71 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING0_VGENVSEL 6 |
Definition at line 56 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING0_VGENVSEL_M (7 << 6) |
Definition at line 66 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING0_VIOLOVSEL 2 |
Definition at line 54 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING0_VIOLOVSEL_M (3 << 2) |
Definition at line 64 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING0_VRFCPVSEL 13 |
Definition at line 59 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING0_VRFCPVSEL_M (1 << 13) |
Definition at line 69 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING0_VRFDIGVSEL 9 |
Definition at line 57 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING0_VRFDIGVSEL_M (3 << 9) |
Definition at line 67 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING0_VRFREFVSEL 11 |
Definition at line 58 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING0_VRFREFVSEL_M (3 << 11) |
Definition at line 68 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING0_VSIMVSEL 14 |
Definition at line 60 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING0_VSIMVSEL_M (1 << 14) |
Definition at line 70 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING1 31 |
Definition at line 74 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING1_VMMC1VSEL 6 |
Definition at line 78 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING1_VMMC1VSEL_M (7 << 6) |
Definition at line 84 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING1_VMMC2VSEL 9 |
Definition at line 79 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING1_VMMC2VSEL_M (7 << 9) |
Definition at line 85 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING1_VRF1VSEL 2 |
Definition at line 76 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING1_VRF1VSEL_M (3 << 2) |
Definition at line 82 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING1_VRF2VSEL 4 |
Definition at line 77 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING1_VRF2VSEL_M (3 << 4) |
Definition at line 83 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING1_VVIBVSEL 0 |
Definition at line 75 of file mc13783-regulator.c.
#define MC13783_REG_REGULATORSETTING1_VVIBVSEL_M (3 << 0) |
Definition at line 81 of file mc13783-regulator.c.
#define MC13783_REG_SWITCHERS0 24 |
Definition at line 24 of file mc13783-regulator.c.
#define MC13783_REG_SWITCHERS0_SW1AEN 0 |
Definition at line 26 of file mc13783-regulator.c.
#define MC13783_REG_SWITCHERS0_SW1AVSEL 0 |
Definition at line 27 of file mc13783-regulator.c.
#define MC13783_REG_SWITCHERS0_SW1AVSEL_M (63 << 0) |
Definition at line 28 of file mc13783-regulator.c.
#define MC13783_REG_SWITCHERS1 25 |
Definition at line 30 of file mc13783-regulator.c.
#define MC13783_REG_SWITCHERS1_SW1BEN 0 |
Definition at line 32 of file mc13783-regulator.c.
#define MC13783_REG_SWITCHERS1_SW1BVSEL 0 |
Definition at line 33 of file mc13783-regulator.c.
#define MC13783_REG_SWITCHERS1_SW1BVSEL_M (63 << 0) |
Definition at line 34 of file mc13783-regulator.c.
#define MC13783_REG_SWITCHERS2 26 |
Definition at line 36 of file mc13783-regulator.c.
#define MC13783_REG_SWITCHERS2_SW2AEN 0 |
Definition at line 38 of file mc13783-regulator.c.
#define MC13783_REG_SWITCHERS2_SW2AVSEL 0 |
Definition at line 39 of file mc13783-regulator.c.
#define MC13783_REG_SWITCHERS2_SW2AVSEL_M (63 << 0) |
Definition at line 40 of file mc13783-regulator.c.
#define MC13783_REG_SWITCHERS3 27 |
Definition at line 42 of file mc13783-regulator.c.
#define MC13783_REG_SWITCHERS3_SW2BEN 0 |
Definition at line 44 of file mc13783-regulator.c.
#define MC13783_REG_SWITCHERS3_SW2BVSEL 0 |
Definition at line 45 of file mc13783-regulator.c.
#define MC13783_REG_SWITCHERS3_SW2BVSEL_M (63 << 0) |
Definition at line 46 of file mc13783-regulator.c.
#define MC13783_REG_SWITCHERS5 29 |
Definition at line 48 of file mc13783-regulator.c.
#define MC13783_REG_SWITCHERS5_SW3EN (1 << 20) |
Definition at line 49 of file mc13783-regulator.c.
#define MC13783_REG_SWITCHERS5_SW3VSEL 18 |
Definition at line 50 of file mc13783-regulator.c.
#define MC13783_REG_SWITCHERS5_SW3VSEL_M (3 << 18) |
Definition at line 51 of file mc13783-regulator.c.
MODULE_ALIAS | ( | "platform:mc13783-regulator" | ) |
MODULE_AUTHOR | ( | "Sascha Hauer <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | "Regulator Driver for Freescale MC13783 PMIC" | ) |
module_exit | ( | mc13783_regulator_exit | ) |
MODULE_LICENSE | ( | "GPL v2" | ) |
subsys_initcall | ( | mc13783_regulator_init | ) |