diff options
author | Felipe Balbi <felipe.balbi@nokia.com> | 2010-09-10 11:10:21 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-10-28 18:28:47 -0400 |
commit | 89712059c09ff12f1e60e444d05d2ca257dd00ef (patch) | |
tree | 9292c3ede7afb1644a2b3b92fbc5cbf5e9bcfd6d | |
parent | f8539ddcbbbca7b6a06e0c2cdfbd116ba43a2fe0 (diff) |
i2c: twl: add register defines for pm master module
Some modules already need to talk to at least PROTECT_KEY
register, while at that, add defines to the entire register
space.
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-rw-r--r-- | include/linux/i2c/twl.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/include/linux/i2c/twl.h b/include/linux/i2c/twl.h index 4793d8a7f480..53089516c17a 100644 --- a/include/linux/i2c/twl.h +++ b/include/linux/i2c/twl.h | |||
@@ -357,6 +357,52 @@ int twl6030_interrupt_mask(u8 bit_mask, u8 offset); | |||
357 | 357 | ||
358 | /*----------------------------------------------------------------------*/ | 358 | /*----------------------------------------------------------------------*/ |
359 | 359 | ||
360 | /* | ||
361 | * PM Master module register offsets (use TWL4030_MODULE_PM_MASTER) | ||
362 | */ | ||
363 | |||
364 | #define TWL4030_PM_MASTER_CFG_P1_TRANSITION 0x00 | ||
365 | #define TWL4030_PM_MASTER_CFG_P2_TRANSITION 0x01 | ||
366 | #define TWL4030_PM_MASTER_CFG_P3_TRANSITION 0x02 | ||
367 | #define TWL4030_PM_MASTER_CFG_P123_TRANSITION 0x03 | ||
368 | #define TWL4030_PM_MASTER_STS_BOOT 0x04 | ||
369 | #define TWL4030_PM_MASTER_CFG_BOOT 0x05 | ||
370 | #define TWL4030_PM_MASTER_SHUNDAN 0x06 | ||
371 | #define TWL4030_PM_MASTER_BOOT_BCI 0x07 | ||
372 | #define TWL4030_PM_MASTER_CFG_PWRANA1 0x08 | ||
373 | #define TWL4030_PM_MASTER_CFG_PWRANA2 0x09 | ||
374 | #define TWL4030_PM_MASTER_BACKUP_MISC_STS 0x0b | ||
375 | #define TWL4030_PM_MASTER_BACKUP_MISC_CFG 0x0c | ||
376 | #define TWL4030_PM_MASTER_BACKUP_MISC_TST 0x0d | ||
377 | #define TWL4030_PM_MASTER_PROTECT_KEY 0x0e | ||
378 | #define TWL4030_PM_MASTER_STS_HW_CONDITIONS 0x0f | ||
379 | #define TWL4030_PM_MASTER_P1_SW_EVENTS 0x10 | ||
380 | #define TWL4030_PM_MASTER_P2_SW_EVENTS 0x11 | ||
381 | #define TWL4030_PM_MASTER_P3_SW_EVENTS 0x12 | ||
382 | #define TWL4030_PM_MASTER_STS_P123_STATE 0x13 | ||
383 | #define TWL4030_PM_MASTER_PB_CFG 0x14 | ||
384 | #define TWL4030_PM_MASTER_PB_WORD_MSB 0x15 | ||
385 | #define TWL4030_PM_MASTER_PB_WORD_LSB 0x16 | ||
386 | #define TWL4030_PM_MASTER_SEQ_ADD_W2P 0x1c | ||
387 | #define TWL4030_PM_MASTER_SEQ_ADD_P2A 0x1d | ||
388 | #define TWL4030_PM_MASTER_SEQ_ADD_A2W 0x1e | ||
389 | #define TWL4030_PM_MASTER_SEQ_ADD_A2S 0x1f | ||
390 | #define TWL4030_PM_MASTER_SEQ_ADD_S2A12 0x20 | ||
391 | #define TWL4030_PM_MASTER_SEQ_ADD_S2A3 0x21 | ||
392 | #define TWL4030_PM_MASTER_SEQ_ADD_WARM 0x22 | ||
393 | #define TWL4030_PM_MASTER_MEMORY_ADDRESS 0x23 | ||
394 | #define TWL4030_PM_MASTER_MEMORY_DATA 0x24 | ||
395 | |||
396 | #define TWL4030_PM_MASTER_KEY_CFG1 0xc0 | ||
397 | #define TWL4030_PM_MASTER_KEY_CFG2 0x0c | ||
398 | |||
399 | #define TWL4030_PM_MASTER_KEY_TST1 0xe0 | ||
400 | #define TWL4030_PM_MASTER_KEY_TST2 0x0e | ||
401 | |||
402 | #define TWL4030_PM_MASTER_GLOBAL_TST 0xb6 | ||
403 | |||
404 | /*----------------------------------------------------------------------*/ | ||
405 | |||
360 | /* Power bus message definitions */ | 406 | /* Power bus message definitions */ |
361 | 407 | ||
362 | /* The TWL4030/5030 splits its power-management resources (the various | 408 | /* The TWL4030/5030 splits its power-management resources (the various |