diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mfd/twl4030-power.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/mfd/twl4030-power.c b/drivers/mfd/twl4030-power.c index 82e3bcbc0097..2c38ac17ab64 100644 --- a/drivers/mfd/twl4030-power.c +++ b/drivers/mfd/twl4030-power.c | |||
@@ -67,14 +67,22 @@ static u8 twl4030_start_script_address = 0x2b; | |||
67 | #define R_KEY_1 0xC0 | 67 | #define R_KEY_1 0xC0 |
68 | #define R_KEY_2 0x0C | 68 | #define R_KEY_2 0x0C |
69 | 69 | ||
70 | /* resource configuration registers */ | 70 | /* resource configuration registers |
71 | 71 | <RESOURCE>_DEV_GRP at address 'n+0' | |
72 | <RESOURCE>_TYPE at address 'n+1' | ||
73 | <RESOURCE>_REMAP at address 'n+2' | ||
74 | <RESOURCE>_DEDICATED at address 'n+3' | ||
75 | */ | ||
72 | #define DEV_GRP_OFFSET 0 | 76 | #define DEV_GRP_OFFSET 0 |
73 | #define TYPE_OFFSET 1 | 77 | #define TYPE_OFFSET 1 |
74 | 78 | ||
75 | /* Bit positions in the registers */ | 79 | /* Bit positions in the registers */ |
80 | |||
81 | /* <RESOURCE>_DEV_GRP */ | ||
76 | #define DEV_GRP_SHIFT 5 | 82 | #define DEV_GRP_SHIFT 5 |
77 | #define DEV_GRP_MASK (7 << DEV_GRP_SHIFT) | 83 | #define DEV_GRP_MASK (7 << DEV_GRP_SHIFT) |
84 | |||
85 | /* <RESOURCE>_TYPE */ | ||
78 | #define TYPE_SHIFT 0 | 86 | #define TYPE_SHIFT 0 |
79 | #define TYPE_MASK (7 << TYPE_SHIFT) | 87 | #define TYPE_MASK (7 << TYPE_SHIFT) |
80 | #define TYPE2_SHIFT 3 | 88 | #define TYPE2_SHIFT 3 |