Skip to content

Commit e189ca5

Browse files
Shobhit Kumarlinusw
authored andcommitted
gpio/crystalcove: Add additional GPIO for Panel control
Export PANEL_EN/DISABLE (offset 0x52) as additional GPIO. Needed by display driver to enable the DSI panel on BYT platform where the Panel EN/Disable control is routed thorugh CRC PMIC CC: Samuel Ortiz <sameo@linux.intel.com> Cc: Linus Walleij <linus.walleij@linaro.org> Cc: Alexandre Courbot <gnurou@gmail.com> Cc: Thierry Reding <thierry.reding@gmail.com> Acked-by: Daniel Vetter <daniel@ffwll.ch> Signed-off-by: Shobhit Kumar <shobhit.kumar@intel.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent a4dd4dd commit e189ca5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

drivers/gpio/gpio-crystalcove.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include <linux/mfd/intel_soc_pmic.h>
2525

2626
#define CRYSTALCOVE_GPIO_NUM 16
27-
#define CRYSTALCOVE_VGPIO_NUM 94
27+
#define CRYSTALCOVE_VGPIO_NUM 95
2828

2929
#define UPDATE_IRQ_TYPE BIT(0)
3030
#define UPDATE_IRQ_MASK BIT(1)
@@ -39,6 +39,7 @@
3939
#define GPIO0P0CTLI 0x33
4040
#define GPIO1P0CTLO 0x3b
4141
#define GPIO1P0CTLI 0x43
42+
#define GPIOPANELCTL 0x52
4243

4344
#define CTLI_INTCNT_DIS (0)
4445
#define CTLI_INTCNT_NE (1 << 1)
@@ -93,6 +94,10 @@ static inline int to_reg(int gpio, enum ctrl_register reg_type)
9394
{
9495
int reg;
9596

97+
if (gpio == 94) {
98+
return GPIOPANELCTL;
99+
}
100+
96101
if (reg_type == CTRL_IN) {
97102
if (gpio < 8)
98103
reg = GPIO0P0CTLI;

0 commit comments

Comments
 (0)