All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/8] pxa: support PXA168 LCD platform dependent power on
@ 2009-11-10  8:12 ` Jun Nie
  0 siblings, 0 replies; 6+ messages in thread
From: Jun Nie @ 2009-11-10  8:12 UTC (permalink / raw)
  To: linux-arm-kernel

From 7a497795dfd6f314e52b015b85031a0498a70a03 Mon Sep 17 00:00:00 2001
From: Jun Nie <njun@marvell.com>
Date: Tue, 10 Nov 2009 09:21:19 +0800
Subject: [PATCH] pxa: support PXA168 LCD platform dependent power on

Signed-off-by: Jun Nie <njun@marvell.com>
---
 drivers/video/pxa168fb.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/drivers/video/pxa168fb.c b/drivers/video/pxa168fb.c
index e1f1c5f..50f72e9 100644
--- a/drivers/video/pxa168fb.c
+++ b/drivers/video/pxa168fb.c
@@ -845,6 +845,20 @@ static int __init pxa168fb_probe(struct
platform_device *pdev)
 	}

 	platform_set_drvdata(pdev, fbi);
+	if (mi->pxa168fb_lcd_power){
+		if (gpio_is_valid(mi->spi_gpio_cs)) {
+			ret = gpio_request(mi->spi_gpio_cs, "LCD_SPI_CS");
+			if (ret) {
+				dev_err(&pdev->dev, "failed to request GPIO for LCD CS\n");
+				return -EIO;
+			}
+		}
+		if(mi->pxa168fb_lcd_power(fbi, mi->spi_gpio_cs, mi->spi_gpio_reset, 1)){
+			dev_err(&pdev->dev, "Failed to power up pxa168-fb\n");
+			goto failed_free_irq;
+		}
+	}
+	dev_info(fbi->dev, "frame buffer detected\n");
 	return 0;

 failed_free_irq:
-- 
1.5.4.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/8] pxa: support PXA168 LCD platform dependent power on
@ 2009-11-10  8:12 ` Jun Nie
  0 siblings, 0 replies; 6+ messages in thread
From: Jun Nie @ 2009-11-10  8:12 UTC (permalink / raw)
  To: linux-arm-kernel



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/8] pxa: support PXA168 LCD platform dependent power on
  2009-11-10  8:12 ` Jun Nie
@ 2009-11-12  2:16   ` Jun Nie
  -1 siblings, 0 replies; 6+ messages in thread
From: Jun Nie @ 2009-11-12  2:16 UTC (permalink / raw)
  To: linux-arm-kernel

[-- Attachment #1: Type: text/plain, Size: 1547 bytes --]

2009/11/10 Jun Nie <niej0001@gmail.com>:
> From 7a497795dfd6f314e52b015b85031a0498a70a03 Mon Sep 17 00:00:00 2001
> From: Jun Nie <njun@marvell.com>
> Date: Tue, 10 Nov 2009 09:21:19 +0800
> Subject: [PATCH] pxa: support PXA168 LCD platform dependent power on
>
> Signed-off-by: Jun Nie <njun@marvell.com>
> ---
>  drivers/video/pxa168fb.c |   14 ++++++++++++++
>  1 files changed, 14 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/video/pxa168fb.c b/drivers/video/pxa168fb.c
> index e1f1c5f..50f72e9 100644
> --- a/drivers/video/pxa168fb.c
> +++ b/drivers/video/pxa168fb.c
> @@ -845,6 +845,20 @@ static int __init pxa168fb_probe(struct
> platform_device *pdev)
>        }
>
>        platform_set_drvdata(pdev, fbi);
> +       if (mi->pxa168fb_lcd_power){
> +               if (gpio_is_valid(mi->spi_gpio_cs)) {
> +                       ret = gpio_request(mi->spi_gpio_cs, "LCD_SPI_CS");
> +                       if (ret) {
> +                               dev_err(&pdev->dev, "failed to request GPIO for LCD CS\n");
> +                               return -EIO;
> +                       }
> +               }
> +               if(mi->pxa168fb_lcd_power(fbi, mi->spi_gpio_cs, mi->spi_gpio_reset, 1)){
> +                       dev_err(&pdev->dev, "Failed to power up pxa168-fb\n");
> +                       goto failed_free_irq;
> +               }
> +       }
> +       dev_info(fbi->dev, "frame buffer detected\n");
>        return 0;
>
>  failed_free_irq:
> --
> 1.5.4.3
>
patch attached.

[-- Attachment #2: 0002-pxa-support-PXA168-LCD-platform-dependent-power-on.patch --]
[-- Type: text/x-diff, Size: 1140 bytes --]

From 7a497795dfd6f314e52b015b85031a0498a70a03 Mon Sep 17 00:00:00 2001
From: Jun Nie <njun@marvell.com>
Date: Tue, 10 Nov 2009 09:21:19 +0800
Subject: [PATCH] pxa: support PXA168 LCD platform dependent power on

Signed-off-by: Jun Nie <njun@marvell.com>
---
 drivers/video/pxa168fb.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/drivers/video/pxa168fb.c b/drivers/video/pxa168fb.c
index e1f1c5f..50f72e9 100644
--- a/drivers/video/pxa168fb.c
+++ b/drivers/video/pxa168fb.c
@@ -845,6 +845,20 @@ static int __init pxa168fb_probe(struct platform_device *pdev)
 	}
 
 	platform_set_drvdata(pdev, fbi);
+	if (mi->pxa168fb_lcd_power){
+		if (gpio_is_valid(mi->spi_gpio_cs)) {
+			ret = gpio_request(mi->spi_gpio_cs, "LCD_SPI_CS");
+			if (ret) {
+				dev_err(&pdev->dev, "failed to request GPIO for LCD CS\n");
+				return -EIO;
+			}
+		}
+		if(mi->pxa168fb_lcd_power(fbi, mi->spi_gpio_cs, mi->spi_gpio_reset, 1)){
+			dev_err(&pdev->dev, "Failed to power up pxa168-fb\n");
+			goto failed_free_irq;
+		}
+	}
+	dev_info(fbi->dev, "frame buffer detected\n");
 	return 0;
 
 failed_free_irq:
-- 
1.5.4.3


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/8] pxa: support PXA168 LCD platform dependent power on
@ 2009-11-12  2:16   ` Jun Nie
  0 siblings, 0 replies; 6+ messages in thread
From: Jun Nie @ 2009-11-12  2:16 UTC (permalink / raw)
  To: linux-arm-kernel

2009/11/10 Jun Nie <niej0001@gmail.com>:
> From 7a497795dfd6f314e52b015b85031a0498a70a03 Mon Sep 17 00:00:00 2001
> From: Jun Nie <njun@marvell.com>
> Date: Tue, 10 Nov 2009 09:21:19 +0800
> Subject: [PATCH] pxa: support PXA168 LCD platform dependent power on
>
> Signed-off-by: Jun Nie <njun@marvell.com>
> ---
> ?drivers/video/pxa168fb.c | ? 14 ++++++++++++++
> ?1 files changed, 14 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/video/pxa168fb.c b/drivers/video/pxa168fb.c
> index e1f1c5f..50f72e9 100644
> --- a/drivers/video/pxa168fb.c
> +++ b/drivers/video/pxa168fb.c
> @@ -845,6 +845,20 @@ static int __init pxa168fb_probe(struct
> platform_device *pdev)
> ? ? ? ?}
>
> ? ? ? ?platform_set_drvdata(pdev, fbi);
> + ? ? ? if (mi->pxa168fb_lcd_power){
> + ? ? ? ? ? ? ? if (gpio_is_valid(mi->spi_gpio_cs)) {
> + ? ? ? ? ? ? ? ? ? ? ? ret = gpio_request(mi->spi_gpio_cs, "LCD_SPI_CS");
> + ? ? ? ? ? ? ? ? ? ? ? if (ret) {
> + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? dev_err(&pdev->dev, "failed to request GPIO for LCD CS\n");
> + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? return -EIO;
> + ? ? ? ? ? ? ? ? ? ? ? }
> + ? ? ? ? ? ? ? }
> + ? ? ? ? ? ? ? if(mi->pxa168fb_lcd_power(fbi, mi->spi_gpio_cs, mi->spi_gpio_reset, 1)){
> + ? ? ? ? ? ? ? ? ? ? ? dev_err(&pdev->dev, "Failed to power up pxa168-fb\n");
> + ? ? ? ? ? ? ? ? ? ? ? goto failed_free_irq;
> + ? ? ? ? ? ? ? }
> + ? ? ? }
> + ? ? ? dev_info(fbi->dev, "frame buffer detected\n");
> ? ? ? ?return 0;
>
> ?failed_free_irq:
> --
> 1.5.4.3
>
patch attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-pxa-support-PXA168-LCD-platform-dependent-power-on.patch
Type: text/x-diff
Size: 1139 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20091112/96215d54/attachment.bin>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 2/8] pxa: support PXA168 LCD platform dependent power on
@ 2009-11-16  9:34   ` Jun Nie
  0 siblings, 0 replies; 6+ messages in thread
From: Jun Nie @ 2009-11-16  9:34 UTC (permalink / raw)
  To: linux-arm-kernel

[-- Attachment #1: Type: text/plain, Size: 1097 bytes --]

From: Jun Nie <njun@marvell.com>
Date: Mon, 16 Nov 2009 17:16:35 +0800
Subject: [PATCH] pxa: support PXA168 LCD platform dependent power on

Signed-off-by: Jun Nie <njun@marvell.com>
---
 drivers/video/pxa168fb.c |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/drivers/video/pxa168fb.c b/drivers/video/pxa168fb.c
index aec95c4..e728be3 100644
--- a/drivers/video/pxa168fb.c
+++ b/drivers/video/pxa168fb.c
@@ -845,6 +845,23 @@ static int __init pxa168fb_probe(struct
platform_device *pdev)
 	}

 	platform_set_drvdata(pdev, fbi);
+	if (mi->pxa168fb_lcd_power) {
+		if (gpio_is_valid(mi->spi_gpio_cs)) {
+			ret = gpio_request(mi->spi_gpio_cs, "LCD_SPI_CS");
+			if (ret) {
+				dev_err(&pdev->dev,
+					"failed to request GPIO for LCD CS\n");
+				return -EIO;
+			}
+		}
+		ret = mi->pxa168fb_lcd_power(fbi, mi->spi_gpio_cs,
+				mi->spi_gpio_reset, 1);
+		if (ret) {
+			dev_err(&pdev->dev, "Failed to power up pxa168-fb\n");
+			goto failed_free_irq;
+		}
+	}
+	dev_info(fbi->dev, "frame buffer detected\n");
 	return 0;

 failed_free_irq:
-- 
1.5.4.3

[-- Attachment #2: 0002-pxa-support-PXA168-LCD-platform-dependent-power-on.patch --]
[-- Type: text/x-diff, Size: 1171 bytes --]

From 0fe41d67a29d6bac116d5d59430ffd681196e1f8 Mon Sep 17 00:00:00 2001
From: Jun Nie <njun@marvell.com>
Date: Mon, 16 Nov 2009 17:16:35 +0800
Subject: [PATCH] pxa: support PXA168 LCD platform dependent power on

Signed-off-by: Jun Nie <njun@marvell.com>
---
 drivers/video/pxa168fb.c |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/drivers/video/pxa168fb.c b/drivers/video/pxa168fb.c
index aec95c4..e728be3 100644
--- a/drivers/video/pxa168fb.c
+++ b/drivers/video/pxa168fb.c
@@ -845,6 +845,23 @@ static int __init pxa168fb_probe(struct platform_device *pdev)
 	}
 
 	platform_set_drvdata(pdev, fbi);
+	if (mi->pxa168fb_lcd_power) {
+		if (gpio_is_valid(mi->spi_gpio_cs)) {
+			ret = gpio_request(mi->spi_gpio_cs, "LCD_SPI_CS");
+			if (ret) {
+				dev_err(&pdev->dev,
+					"failed to request GPIO for LCD CS\n");
+				return -EIO;
+			}
+		}
+		ret = mi->pxa168fb_lcd_power(fbi, mi->spi_gpio_cs,
+				mi->spi_gpio_reset, 1);
+		if (ret) {
+			dev_err(&pdev->dev, "Failed to power up pxa168-fb\n");
+			goto failed_free_irq;
+		}
+	}
+	dev_info(fbi->dev, "frame buffer detected\n");
 	return 0;
 
 failed_free_irq:
-- 
1.5.4.3


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/8] pxa: support PXA168 LCD platform dependent power on
@ 2009-11-16  9:34   ` Jun Nie
  0 siblings, 0 replies; 6+ messages in thread
From: Jun Nie @ 2009-11-16  9:34 UTC (permalink / raw)
  To: linux-arm-kernel

From: Jun Nie <njun@marvell.com>
Date: Mon, 16 Nov 2009 17:16:35 +0800
Subject: [PATCH] pxa: support PXA168 LCD platform dependent power on

Signed-off-by: Jun Nie <njun@marvell.com>
---
 drivers/video/pxa168fb.c |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/drivers/video/pxa168fb.c b/drivers/video/pxa168fb.c
index aec95c4..e728be3 100644
--- a/drivers/video/pxa168fb.c
+++ b/drivers/video/pxa168fb.c
@@ -845,6 +845,23 @@ static int __init pxa168fb_probe(struct
platform_device *pdev)
 	}

 	platform_set_drvdata(pdev, fbi);
+	if (mi->pxa168fb_lcd_power) {
+		if (gpio_is_valid(mi->spi_gpio_cs)) {
+			ret = gpio_request(mi->spi_gpio_cs, "LCD_SPI_CS");
+			if (ret) {
+				dev_err(&pdev->dev,
+					"failed to request GPIO for LCD CS\n");
+				return -EIO;
+			}
+		}
+		ret = mi->pxa168fb_lcd_power(fbi, mi->spi_gpio_cs,
+				mi->spi_gpio_reset, 1);
+		if (ret) {
+			dev_err(&pdev->dev, "Failed to power up pxa168-fb\n");
+			goto failed_free_irq;
+		}
+	}
+	dev_info(fbi->dev, "frame buffer detected\n");
 	return 0;

 failed_free_irq:
-- 
1.5.4.3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-pxa-support-PXA168-LCD-platform-dependent-power-on.patch
Type: text/x-diff
Size: 1170 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20091116/fefe1210/attachment-0001.bin>

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-11-16  9:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-10  8:12 [PATCH 2/8] pxa: support PXA168 LCD platform dependent power on Jun Nie
2009-11-10  8:12 ` Jun Nie
2009-11-12  2:16 ` Jun Nie
2009-11-12  2:16   ` Jun Nie
2009-11-16  9:34 ` Jun Nie
2009-11-16  9:34   ` Jun Nie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.