Linux Kernel
3.7.1
|
#include <linux/types.h>
#include <linux/platform_device.h>
#include <linux/delay.h>
#include <linux/platform_data/voltage-omap.h>
Go to the source code of this file.
Data Structures | |
struct | omap_sr |
#define AVGWEIGHT 0x18 |
Definition at line 43 of file smartreflex.h.
#define AVGWEIGHT_SENNAVGWEIGHT_SHIFT 0 |
Definition at line 76 of file smartreflex.h.
#define AVGWEIGHT_SENPAVGWEIGHT_SHIFT 2 |
Definition at line 75 of file smartreflex.h.
#define ERRCONFIG_ERRMAXLIMIT_SHIFT 8 |
Definition at line 86 of file smartreflex.h.
#define ERRCONFIG_ERRMINLIMIT_SHIFT 0 |
Definition at line 87 of file smartreflex.h.
#define ERRCONFIG_ERRWEIGHT_SHIFT 16 |
Definition at line 85 of file smartreflex.h.
#define ERRCONFIG_MCUACCUMINTEN BIT(29) |
Definition at line 95 of file smartreflex.h.
#define ERRCONFIG_MCUACCUMINTST BIT(28) |
Definition at line 96 of file smartreflex.h.
#define ERRCONFIG_MCUBOUNDINTEN BIT(25) |
Definition at line 99 of file smartreflex.h.
#define ERRCONFIG_MCUBOUNDINTST BIT(24) |
Definition at line 100 of file smartreflex.h.
#define ERRCONFIG_MCUDISACKINTEN BIT(23) |
Definition at line 101 of file smartreflex.h.
#define ERRCONFIG_MCUDISACKINTST BIT(22) |
Definition at line 103 of file smartreflex.h.
#define ERRCONFIG_MCUVALIDINTEN BIT(27) |
Definition at line 97 of file smartreflex.h.
#define ERRCONFIG_MCUVALIDINTST BIT(26) |
Definition at line 98 of file smartreflex.h.
#define ERRCONFIG_STATUS_V1_MASK |
Definition at line 106 of file smartreflex.h.
#define ERRCONFIG_V1 0x24 |
Definition at line 46 of file smartreflex.h.
#define ERRCONFIG_V2 0x38 |
Definition at line 53 of file smartreflex.h.
#define ERRCONFIG_VPBOUNDINTEN_V1 BIT(31) |
Definition at line 93 of file smartreflex.h.
#define ERRCONFIG_VPBOUNDINTEN_V2 BIT(22) |
Definition at line 104 of file smartreflex.h.
#define ERRCONFIG_VPBOUNDINTST_V1 BIT(30) |
Definition at line 94 of file smartreflex.h.
#define ERRCONFIG_VPBOUNDINTST_V2 BIT(23) |
Definition at line 102 of file smartreflex.h.
#define IRQ_EOI 0x20 |
Definition at line 47 of file smartreflex.h.
#define IRQENABLE_CLR 0x30 |
Definition at line 51 of file smartreflex.h.
#define IRQENABLE_MCUACCUMINT BIT(3) |
Definition at line 118 of file smartreflex.h.
#define IRQENABLE_MCUBOUNDSINT BIT(1) |
Definition at line 120 of file smartreflex.h.
#define IRQENABLE_MCUDISABLEACKINT BIT(0) |
Definition at line 121 of file smartreflex.h.
#define IRQENABLE_MCUVALIDINT BIT(2) |
Definition at line 119 of file smartreflex.h.
#define IRQENABLE_SET 0x2C |
Definition at line 50 of file smartreflex.h.
#define IRQSTATUS 0x28 |
Definition at line 49 of file smartreflex.h.
#define IRQSTATUS_MCBOUNDSINT BIT(1) |
Definition at line 114 of file smartreflex.h.
#define IRQSTATUS_MCUACCUMINT BIT(3) |
Definition at line 112 of file smartreflex.h.
#define IRQSTATUS_MCUDISABLEACKINT BIT(0) |
Definition at line 115 of file smartreflex.h.
#define IRQSTATUS_MCVALIDINT BIT(2) |
Definition at line 113 of file smartreflex.h.
#define IRQSTATUS_RAW 0x24 |
Definition at line 48 of file smartreflex.h.
#define NVALUERECIPROCAL 0x1c |
Definition at line 44 of file smartreflex.h.
#define NVALUERECIPROCAL_RNSENN_SHIFT 0 |
Definition at line 82 of file smartreflex.h.
#define NVALUERECIPROCAL_RNSENP_SHIFT 8 |
Definition at line 81 of file smartreflex.h.
#define NVALUERECIPROCAL_SENNGAIN_SHIFT 16 |
Definition at line 80 of file smartreflex.h.
#define NVALUERECIPROCAL_SENPGAIN_SHIFT 20 |
Definition at line 79 of file smartreflex.h.
#define OMAP3430_SR1_SENNAVGWEIGHT 0x03 |
Definition at line 138 of file smartreflex.h.
#define OMAP3430_SR1_SENPAVGWEIGHT 0x03 |
Definition at line 137 of file smartreflex.h.
#define OMAP3430_SR2_SENNAVGWEIGHT 0x01 |
Definition at line 141 of file smartreflex.h.
#define OMAP3430_SR2_SENPAVGWEIGHT 0x01 |
Definition at line 140 of file smartreflex.h.
#define OMAP3430_SR_ACCUMDATA 0x1f4 |
Definition at line 135 of file smartreflex.h.
#define OMAP3430_SR_ERRMAXLIMIT 0x02 |
Definition at line 144 of file smartreflex.h.
#define OMAP3430_SR_ERRWEIGHT 0x04 |
Definition at line 143 of file smartreflex.h.
#define SENAVG 0x14 |
Definition at line 42 of file smartreflex.h.
#define SENERROR_V1 0x20 |
Definition at line 45 of file smartreflex.h.
#define SENERROR_V2 0x34 |
Definition at line 52 of file smartreflex.h.
#define SENMAX 0x10 |
Definition at line 41 of file smartreflex.h.
#define SENMIN 0x0C |
Definition at line 40 of file smartreflex.h.
#define SENVAL 0x08 |
Definition at line 39 of file smartreflex.h.
#define SR_ERRMAXLIMIT_MASK (0xff << 8) |
Definition at line 90 of file smartreflex.h.
#define SR_ERRMINLIMIT_MASK (0xff << 0) |
Definition at line 91 of file smartreflex.h.
#define SR_ERRWEIGHT_MASK (0x07 << 16) |
Definition at line 89 of file smartreflex.h.
#define SR_TYPE_V1 1 |
Definition at line 33 of file smartreflex.h.
#define SR_TYPE_V2 2 |
Definition at line 34 of file smartreflex.h.
#define SRCLKLENGTH_12MHZ_SYSCLK 0x3c |
Definition at line 125 of file smartreflex.h.
#define SRCLKLENGTH_13MHZ_SYSCLK 0x41 |
Definition at line 126 of file smartreflex.h.
#define SRCLKLENGTH_19MHZ_SYSCLK 0x60 |
Definition at line 127 of file smartreflex.h.
#define SRCLKLENGTH_26MHZ_SYSCLK 0x82 |
Definition at line 128 of file smartreflex.h.
#define SRCLKLENGTH_38MHZ_SYSCLK 0xC0 |
Definition at line 129 of file smartreflex.h.
#define SRCONFIG 0x00 |
Definition at line 37 of file smartreflex.h.
#define SRCONFIG_ACCUMDATA_MASK (0x3ff << 22) |
Definition at line 66 of file smartreflex.h.
#define SRCONFIG_ACCUMDATA_SHIFT 22 |
Definition at line 58 of file smartreflex.h.
#define SRCONFIG_CLKCTRL_SHIFT 0 |
Definition at line 64 of file smartreflex.h.
#define SRCONFIG_DELAYCTRL BIT(2) |
Definition at line 72 of file smartreflex.h.
#define SRCONFIG_ERRGEN_EN BIT(9) |
Definition at line 70 of file smartreflex.h.
#define SRCONFIG_MINMAXAVG_EN BIT(8) |
Definition at line 71 of file smartreflex.h.
#define SRCONFIG_SENENABLE BIT(10) |
Definition at line 69 of file smartreflex.h.
#define SRCONFIG_SENNENABLE_V1_SHIFT 5 |
Definition at line 60 of file smartreflex.h.
#define SRCONFIG_SENNENABLE_V2_SHIFT 1 |
Definition at line 62 of file smartreflex.h.
#define SRCONFIG_SENPENABLE_V1_SHIFT 3 |
Definition at line 61 of file smartreflex.h.
#define SRCONFIG_SENPENABLE_V2_SHIFT 0 |
Definition at line 63 of file smartreflex.h.
#define SRCONFIG_SRCLKLENGTH_SHIFT 12 |
Definition at line 59 of file smartreflex.h.
#define SRCONFIG_SRENABLE BIT(11) |
Definition at line 68 of file smartreflex.h.
#define SRSTATUS 0x04 |
Definition at line 38 of file smartreflex.h.