diff options
Diffstat (limited to 'include/linux/mfd')
| -rw-r--r-- | include/linux/mfd/palmas.h | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/include/linux/mfd/palmas.h b/include/linux/mfd/palmas.h index e6090d88e91d..37e48c957791 100644 --- a/include/linux/mfd/palmas.h +++ b/include/linux/mfd/palmas.h | |||
| @@ -448,7 +448,7 @@ enum usb_irq_events { | |||
| 448 | #define PALMAS_DVFS_BASE 0x180 | 448 | #define PALMAS_DVFS_BASE 0x180 |
| 449 | #define PALMAS_PMU_CONTROL_BASE 0x1A0 | 449 | #define PALMAS_PMU_CONTROL_BASE 0x1A0 |
| 450 | #define PALMAS_RESOURCE_BASE 0x1D4 | 450 | #define PALMAS_RESOURCE_BASE 0x1D4 |
| 451 | #define PALMAS_PU_PD_OD_BASE 0x1F4 | 451 | #define PALMAS_PU_PD_OD_BASE 0x1F0 |
| 452 | #define PALMAS_LED_BASE 0x200 | 452 | #define PALMAS_LED_BASE 0x200 |
| 453 | #define PALMAS_INTERRUPT_BASE 0x210 | 453 | #define PALMAS_INTERRUPT_BASE 0x210 |
| 454 | #define PALMAS_USB_OTG_BASE 0x250 | 454 | #define PALMAS_USB_OTG_BASE 0x250 |
| @@ -1733,16 +1733,20 @@ enum usb_irq_events { | |||
| 1733 | #define PALMAS_REGEN3_CTRL_MODE_ACTIVE_SHIFT 0 | 1733 | #define PALMAS_REGEN3_CTRL_MODE_ACTIVE_SHIFT 0 |
| 1734 | 1734 | ||
| 1735 | /* Registers for function PAD_CONTROL */ | 1735 | /* Registers for function PAD_CONTROL */ |
| 1736 | #define PALMAS_PU_PD_INPUT_CTRL1 0x0 | 1736 | #define PALMAS_OD_OUTPUT_CTRL2 0x2 |
| 1737 | #define PALMAS_PU_PD_INPUT_CTRL2 0x1 | 1737 | #define PALMAS_POLARITY_CTRL2 0x3 |
| 1738 | #define PALMAS_PU_PD_INPUT_CTRL3 0x2 | 1738 | #define PALMAS_PU_PD_INPUT_CTRL1 0x4 |
| 1739 | #define PALMAS_OD_OUTPUT_CTRL 0x4 | 1739 | #define PALMAS_PU_PD_INPUT_CTRL2 0x5 |
| 1740 | #define PALMAS_POLARITY_CTRL 0x5 | 1740 | #define PALMAS_PU_PD_INPUT_CTRL3 0x6 |
| 1741 | #define PALMAS_PRIMARY_SECONDARY_PAD1 0x6 | 1741 | #define PALMAS_PU_PD_INPUT_CTRL5 0x7 |
| 1742 | #define PALMAS_PRIMARY_SECONDARY_PAD2 0x7 | 1742 | #define PALMAS_OD_OUTPUT_CTRL 0x8 |
| 1743 | #define PALMAS_I2C_SPI 0x8 | 1743 | #define PALMAS_POLARITY_CTRL 0x9 |
| 1744 | #define PALMAS_PU_PD_INPUT_CTRL4 0x9 | 1744 | #define PALMAS_PRIMARY_SECONDARY_PAD1 0xA |
| 1745 | #define PALMAS_PRIMARY_SECONDARY_PAD3 0xA | 1745 | #define PALMAS_PRIMARY_SECONDARY_PAD2 0xB |
| 1746 | #define PALMAS_I2C_SPI 0xC | ||
| 1747 | #define PALMAS_PU_PD_INPUT_CTRL4 0xD | ||
| 1748 | #define PALMAS_PRIMARY_SECONDARY_PAD3 0xE | ||
| 1749 | #define PALMAS_PRIMARY_SECONDARY_PAD4 0xF | ||
| 1746 | 1750 | ||
| 1747 | /* Bit definitions for PU_PD_INPUT_CTRL1 */ | 1751 | /* Bit definitions for PU_PD_INPUT_CTRL1 */ |
| 1748 | #define PALMAS_PU_PD_INPUT_CTRL1_RESET_IN_PD 0x40 | 1752 | #define PALMAS_PU_PD_INPUT_CTRL1_RESET_IN_PD 0x40 |
| @@ -2500,6 +2504,15 @@ enum usb_irq_events { | |||
| 2500 | #define PALMAS_PU_PD_GPIO_CTRL1 0x6 | 2504 | #define PALMAS_PU_PD_GPIO_CTRL1 0x6 |
| 2501 | #define PALMAS_PU_PD_GPIO_CTRL2 0x7 | 2505 | #define PALMAS_PU_PD_GPIO_CTRL2 0x7 |
| 2502 | #define PALMAS_OD_OUTPUT_GPIO_CTRL 0x8 | 2506 | #define PALMAS_OD_OUTPUT_GPIO_CTRL 0x8 |
| 2507 | #define PALMAS_GPIO_DATA_IN2 0x9 | ||
| 2508 | #define PALMAS_GPIO_DATA_DIR2 0x0A | ||
| 2509 | #define PALMAS_GPIO_DATA_OUT2 0x0B | ||
| 2510 | #define PALMAS_GPIO_DEBOUNCE_EN2 0x0C | ||
| 2511 | #define PALMAS_GPIO_CLEAR_DATA_OUT2 0x0D | ||
| 2512 | #define PALMAS_GPIO_SET_DATA_OUT2 0x0E | ||
| 2513 | #define PALMAS_PU_PD_GPIO_CTRL3 0x0F | ||
| 2514 | #define PALMAS_PU_PD_GPIO_CTRL4 0x10 | ||
| 2515 | #define PALMAS_OD_OUTPUT_GPIO_CTRL2 0x11 | ||
| 2503 | 2516 | ||
| 2504 | /* Bit definitions for GPIO_DATA_IN */ | 2517 | /* Bit definitions for GPIO_DATA_IN */ |
| 2505 | #define PALMAS_GPIO_DATA_IN_GPIO_7_IN 0x80 | 2518 | #define PALMAS_GPIO_DATA_IN_GPIO_7_IN 0x80 |
