Re: [Intel-gfx] [RFC v5 2/9] gpio/crystalcove: Add additional GPIO for Panel control

2015-03-25 Thread Linus Walleij
On Thu, Mar 12, 2015 at 5:31 PM, Shobhit Kumar shobhit.ku...@intel.com wrote:

 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 sa...@linux.intel.com
 Cc: Linus Walleij linus.wall...@linaro.org
 Cc: Alexandre Courbot gnu...@gmail.com
 Cc: Thierry Reding thierry.red...@gmail.com
 Signed-off-by: Shobhit Kumar shobhit.ku...@intel.com

OK applied *this* version of the patch...

Yours,
Linus Walleij
___
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx


Re: [Intel-gfx] [RFC v5 2/9] gpio/crystalcove: Add additional GPIO for Panel control

2015-03-18 Thread Linus Walleij
On Thu, Mar 12, 2015 at 5:31 PM, Shobhit Kumar shobhit.ku...@intel.com wrote:

 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 sa...@linux.intel.com
 Cc: Linus Walleij linus.wall...@linaro.org
 Cc: Alexandre Courbot gnu...@gmail.com
 Cc: Thierry Reding thierry.red...@gmail.com
 Signed-off-by: Shobhit Kumar shobhit.ku...@intel.com

NACK.

Spawn a separate MFD cell and write a fixed voltage
regulator driver for this.

 @@ -39,6 +39,7 @@
  #define GPIO0P0CTLI0x33
  #define GPIO1P0CTLO0x3b
  #define GPIO1P0CTLI0x43
 +#define GPIOPANELCTL   0x52

This is even a lie, you say in the commit message that the
register is indeed named PANEL_EN/DISABLE and is not
a GPIO.

Yours,
Linus Walleij
___
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx


[Intel-gfx] [RFC v5 2/9] gpio/crystalcove: Add additional GPIO for Panel control

2015-03-12 Thread Shobhit Kumar
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 sa...@linux.intel.com
Cc: Linus Walleij linus.wall...@linaro.org
Cc: Alexandre Courbot gnu...@gmail.com
Cc: Thierry Reding thierry.red...@gmail.com
Signed-off-by: Shobhit Kumar shobhit.ku...@intel.com
---
 drivers/gpio/gpio-crystalcove.c | 7 ++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-crystalcove.c b/drivers/gpio/gpio-crystalcove.c
index 3d9e08f..91a7ffe 100644
--- a/drivers/gpio/gpio-crystalcove.c
+++ b/drivers/gpio/gpio-crystalcove.c
@@ -24,7 +24,7 @@
 #include linux/mfd/intel_soc_pmic.h
 
 #define CRYSTALCOVE_GPIO_NUM   16
-#define CRYSTALCOVE_VGPIO_NUM  94
+#define CRYSTALCOVE_VGPIO_NUM  95
 
 #define UPDATE_IRQ_TYPEBIT(0)
 #define UPDATE_IRQ_MASKBIT(1)
@@ -39,6 +39,7 @@
 #define GPIO0P0CTLI0x33
 #define GPIO1P0CTLO0x3b
 #define GPIO1P0CTLI0x43
+#define GPIOPANELCTL   0x52
 
 #define CTLI_INTCNT_DIS(0)
 #define CTLI_INTCNT_NE (1  1)
@@ -93,6 +94,10 @@ static inline int to_reg(int gpio, enum ctrl_register 
reg_type)
 {
int reg;
 
+   if (gpio == 94) {
+   return GPIOPANELCTL;
+   }
+
if (reg_type == CTRL_IN) {
if (gpio  8)
reg = GPIO0P0CTLI;
-- 
2.1.0

___
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx