Linux Kernel
3.7.1
|
#include <linux/mfd/mc13892.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 (mc13892_regulator_init) | |
module_exit (mc13892_regulator_exit) | |
MODULE_LICENSE ("GPL v2") | |
MODULE_AUTHOR ("Yong Shen <[email protected]>") | |
MODULE_DESCRIPTION ("Regulator Driver for Freescale MC13892 PMIC") | |
MODULE_ALIAS ("platform:mc13892-regulator") | |
Definition at line 258 of file mc13892-regulator.c.
Definition at line 246 of file mc13892-regulator.c.
Definition at line 250 of file mc13892-regulator.c.
#define MC13892_POWERCTL0 13 |
Definition at line 26 of file mc13892-regulator.c.
#define MC13892_POWERCTL0_USEROFFSPI 3 |
Definition at line 27 of file mc13892-regulator.c.
#define MC13892_POWERCTL0_VCOINCELLEN (1<<23) |
Definition at line 30 of file mc13892-regulator.c.
#define MC13892_POWERCTL0_VCOINCELLVSEL 20 |
Definition at line 28 of file mc13892-regulator.c.
#define MC13892_POWERCTL0_VCOINCELLVSEL_M (7<<20) |
Definition at line 29 of file mc13892-regulator.c.
#define MC13892_POWERMISC 34 |
Definition at line 139 of file mc13892-regulator.c.
#define MC13892_POWERMISC_GPO1EN (1<<6) |
Definition at line 140 of file mc13892-regulator.c.
#define MC13892_POWERMISC_GPO2EN (1<<8) |
Definition at line 141 of file mc13892-regulator.c.
#define MC13892_POWERMISC_GPO3EN (1<<10) |
Definition at line 142 of file mc13892-regulator.c.
#define MC13892_POWERMISC_GPO4ADINEN (1<<21) |
Definition at line 146 of file mc13892-regulator.c.
#define MC13892_POWERMISC_GPO4EN (1<<12) |
Definition at line 143 of file mc13892-regulator.c.
#define MC13892_POWERMISC_PWGT1SPIEN (1<<15) |
Definition at line 144 of file mc13892-regulator.c.
#define MC13892_POWERMISC_PWGT2SPIEN (1<<16) |
Definition at line 145 of file mc13892-regulator.c.
#define MC13892_POWERMISC_PWGTSPI_M (3 << 15) |
Definition at line 148 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE0 32 |
Definition at line 101 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE0_VDIGEN (1<<9) |
Definition at line 108 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE0_VDIGMODE (1<<11) |
Definition at line 110 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE0_VDIGSTDBY (1<<10) |
Definition at line 109 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE0_VGEN1EN (1<<0) |
Definition at line 102 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE0_VGEN1MODE (1<<2) |
Definition at line 104 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE0_VGEN1STDBY (1<<1) |
Definition at line 103 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE0_VGEN2EN (1<<12) |
Definition at line 111 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE0_VGEN2MODE (1<<14) |
Definition at line 113 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE0_VGEN2STDBY (1<<13) |
Definition at line 112 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE0_VIOHIEN (1<<3) |
Definition at line 105 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE0_VIOHIMODE (1<<5) |
Definition at line 107 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE0_VIOHISTDBY (1<<4) |
Definition at line 106 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE0_VPLLEN (1<<15) |
Definition at line 114 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE0_VPLLMODE (1<<17) |
Definition at line 116 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE0_VPLLSTDBY (1<<16) |
Definition at line 115 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE0_VUSB2EN (1<<18) |
Definition at line 117 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE0_VUSB2MODE (1<<20) |
Definition at line 119 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE0_VUSB2STDBY (1<<19) |
Definition at line 118 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE1 33 |
Definition at line 121 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE1_VAUDIOEN (1<<15) |
Definition at line 132 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE1_VAUDIOMODE (1<<17) |
Definition at line 134 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE1_VAUDIOSTDBY (1<<16) |
Definition at line 133 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE1_VCAMCONFIGEN (1<<9) |
Definition at line 128 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE1_VCAMEN (1<<6) |
Definition at line 125 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE1_VCAMMODE (1<<8) |
Definition at line 127 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE1_VCAMSTDBY (1<<7) |
Definition at line 126 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE1_VGEN3EN (1<<0) |
Definition at line 122 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE1_VGEN3MODE (1<<2) |
Definition at line 124 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE1_VGEN3STDBY (1<<1) |
Definition at line 123 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE1_VSDEN (1<<18) |
Definition at line 135 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE1_VSDMODE (1<<20) |
Definition at line 137 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE1_VSDSTDBY (1<<19) |
Definition at line 136 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE1_VVIDEOEN (1<<12) |
Definition at line 129 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE1_VVIDEOMODE (1<<14) |
Definition at line 131 of file mc13892-regulator.c.
#define MC13892_REGULATORMODE1_VVIDEOSTDBY (1<<13) |
Definition at line 130 of file mc13892-regulator.c.
#define MC13892_REGULATORSETTING0 30 |
Definition at line 75 of file mc13892-regulator.c.
#define MC13892_REGULATORSETTING0_VCAMVSEL 16 |
Definition at line 82 of file mc13892-regulator.c.
#define MC13892_REGULATORSETTING0_VCAMVSEL_M (3<<16) |
Definition at line 90 of file mc13892-regulator.c.
#define MC13892_REGULATORSETTING0_VDIGVSEL 4 |
Definition at line 77 of file mc13892-regulator.c.
#define MC13892_REGULATORSETTING0_VDIGVSEL_M (3<<4) |
Definition at line 85 of file mc13892-regulator.c.
#define MC13892_REGULATORSETTING0_VGEN1VSEL 0 |
Definition at line 76 of file mc13892-regulator.c.
#define MC13892_REGULATORSETTING0_VGEN1VSEL_M (3<<0) |
Definition at line 84 of file mc13892-regulator.c.
#define MC13892_REGULATORSETTING0_VGEN2VSEL 6 |
Definition at line 78 of file mc13892-regulator.c.
#define MC13892_REGULATORSETTING0_VGEN2VSEL_M (7<<6) |
Definition at line 86 of file mc13892-regulator.c.
#define MC13892_REGULATORSETTING0_VGEN3VSEL 14 |
Definition at line 81 of file mc13892-regulator.c.
#define MC13892_REGULATORSETTING0_VGEN3VSEL_M (1<<14) |
Definition at line 89 of file mc13892-regulator.c.
#define MC13892_REGULATORSETTING0_VPLLVSEL 9 |
Definition at line 79 of file mc13892-regulator.c.
#define MC13892_REGULATORSETTING0_VPLLVSEL_M (3<<9) |
Definition at line 87 of file mc13892-regulator.c.
#define MC13892_REGULATORSETTING0_VUSB2VSEL 11 |
Definition at line 80 of file mc13892-regulator.c.
#define MC13892_REGULATORSETTING0_VUSB2VSEL_M (3<<11) |
Definition at line 88 of file mc13892-regulator.c.
#define MC13892_REGULATORSETTING1 31 |
Definition at line 92 of file mc13892-regulator.c.
#define MC13892_REGULATORSETTING1_VAUDIOVSEL 4 |
Definition at line 94 of file mc13892-regulator.c.
#define MC13892_REGULATORSETTING1_VAUDIOVSEL_M (3<<4) |
Definition at line 98 of file mc13892-regulator.c.
#define MC13892_REGULATORSETTING1_VSDVSEL 6 |
Definition at line 95 of file mc13892-regulator.c.
#define MC13892_REGULATORSETTING1_VSDVSEL_M (7<<6) |
Definition at line 99 of file mc13892-regulator.c.
#define MC13892_REGULATORSETTING1_VVIDEOVSEL 2 |
Definition at line 93 of file mc13892-regulator.c.
#define MC13892_REGULATORSETTING1_VVIDEOVSEL_M (3<<2) |
Definition at line 97 of file mc13892-regulator.c.
#define MC13892_REVISION 7 |
Definition at line 24 of file mc13892-regulator.c.
Definition at line 254 of file mc13892-regulator.c.
#define MC13892_SWITCHERS0 24 |
Definition at line 34 of file mc13892-regulator.c.
#define MC13892_SWITCHERS0_SW1EN 0 |
Definition at line 38 of file mc13892-regulator.c.
#define MC13892_SWITCHERS0_SW1HI (1<<23) |
Definition at line 37 of file mc13892-regulator.c.
#define MC13892_SWITCHERS0_SW1VSEL 0 |
Definition at line 35 of file mc13892-regulator.c.
#define MC13892_SWITCHERS0_SW1VSEL_M (0x1f<<0) |
Definition at line 36 of file mc13892-regulator.c.
#define MC13892_SWITCHERS0_SWxHI (1<<23) |
Definition at line 32 of file mc13892-regulator.c.
#define MC13892_SWITCHERS1 25 |
Definition at line 40 of file mc13892-regulator.c.
#define MC13892_SWITCHERS1_SW2EN 0 |
Definition at line 44 of file mc13892-regulator.c.
#define MC13892_SWITCHERS1_SW2HI (1<<23) |
Definition at line 43 of file mc13892-regulator.c.
#define MC13892_SWITCHERS1_SW2VSEL 0 |
Definition at line 41 of file mc13892-regulator.c.
#define MC13892_SWITCHERS1_SW2VSEL_M (0x1f<<0) |
Definition at line 42 of file mc13892-regulator.c.
#define MC13892_SWITCHERS2 26 |
Definition at line 46 of file mc13892-regulator.c.
#define MC13892_SWITCHERS2_SW3EN 0 |
Definition at line 50 of file mc13892-regulator.c.
#define MC13892_SWITCHERS2_SW3HI (1<<23) |
Definition at line 49 of file mc13892-regulator.c.
#define MC13892_SWITCHERS2_SW3VSEL 0 |
Definition at line 47 of file mc13892-regulator.c.
#define MC13892_SWITCHERS2_SW3VSEL_M (0x1f<<0) |
Definition at line 48 of file mc13892-regulator.c.
#define MC13892_SWITCHERS3 27 |
Definition at line 52 of file mc13892-regulator.c.
#define MC13892_SWITCHERS3_SW4EN 0 |
Definition at line 56 of file mc13892-regulator.c.
#define MC13892_SWITCHERS3_SW4HI (1<<23) |
Definition at line 55 of file mc13892-regulator.c.
#define MC13892_SWITCHERS3_SW4VSEL 0 |
Definition at line 53 of file mc13892-regulator.c.
#define MC13892_SWITCHERS3_SW4VSEL_M (0x1f<<0) |
Definition at line 54 of file mc13892-regulator.c.
#define MC13892_SWITCHERS4 28 |
Definition at line 58 of file mc13892-regulator.c.
#define MC13892_SWITCHERS4_SW1MODE 0 |
Definition at line 59 of file mc13892-regulator.c.
#define MC13892_SWITCHERS4_SW1MODE_AUTO (8<<0) |
Definition at line 60 of file mc13892-regulator.c.
#define MC13892_SWITCHERS4_SW1MODE_M (0xf<<0) |
Definition at line 61 of file mc13892-regulator.c.
#define MC13892_SWITCHERS4_SW2MODE 10 |
Definition at line 62 of file mc13892-regulator.c.
#define MC13892_SWITCHERS4_SW2MODE_AUTO (8<<10) |
Definition at line 63 of file mc13892-regulator.c.
#define MC13892_SWITCHERS4_SW2MODE_M (0xf<<10) |
Definition at line 64 of file mc13892-regulator.c.
#define MC13892_SWITCHERS5 29 |
Definition at line 66 of file mc13892-regulator.c.
#define MC13892_SWITCHERS5_SW3MODE 0 |
Definition at line 67 of file mc13892-regulator.c.
#define MC13892_SWITCHERS5_SW3MODE_AUTO (8<<0) |
Definition at line 68 of file mc13892-regulator.c.
#define MC13892_SWITCHERS5_SW3MODE_M (0xf<<0) |
Definition at line 69 of file mc13892-regulator.c.
#define MC13892_SWITCHERS5_SW4MODE 8 |
Definition at line 70 of file mc13892-regulator.c.
#define MC13892_SWITCHERS5_SW4MODE_AUTO (8<<8) |
Definition at line 71 of file mc13892-regulator.c.
#define MC13892_SWITCHERS5_SW4MODE_M (0xf<<8) |
Definition at line 72 of file mc13892-regulator.c.
#define MC13892_SWITCHERS5_SWBSTEN (1<<20) |
Definition at line 73 of file mc13892-regulator.c.
#define MC13892_USB1 50 |
Definition at line 150 of file mc13892-regulator.c.
#define MC13892_USB1_VUSBEN (1<<3) |
Definition at line 151 of file mc13892-regulator.c.
MODULE_ALIAS | ( | "platform:mc13892-regulator" | ) |
MODULE_AUTHOR | ( | "Yong Shen <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | "Regulator Driver for Freescale MC13892 PMIC" | ) |
module_exit | ( | mc13892_regulator_exit | ) |
MODULE_LICENSE | ( | "GPL v2" | ) |
subsys_initcall | ( | mc13892_regulator_init | ) |