]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
Blackfin: extend bfin-lq035q1-fb resources to include PPI mode
authorMichael Hennerich <michael.hennerich@analog.com>
Tue, 8 Dec 2009 11:45:55 +0000 (11:45 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 9 Mar 2010 05:30:46 +0000 (00:30 -0500)
This lets us support the new BF527-EZKIT V2.1 via platform resources
tweaks only.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/include/asm/bfin-lq035q1.h
arch/blackfin/mach-bf527/boards/ezbrd.c
arch/blackfin/mach-bf527/boards/ezkit.c
arch/blackfin/mach-bf537/boards/stamp.c
arch/blackfin/mach-bf538/boards/ezkit.c

index 57bc21ac22968890dc1bfc1946d95708ccbd6054..836895156b5b6220ca25a41300313a2a8f2a1f1a 100644 (file)
@@ -8,6 +8,9 @@
 #ifndef BFIN_LQ035Q1_H
 #define BFIN_LQ035Q1_H
 
+/*
+ * LCD Modes
+ */
 #define LQ035_RL       (0 << 8)        /* Right -> Left Scan */
 #define LQ035_LR       (1 << 8)        /* Left -> Right Scan */
 #define LQ035_TB       (1 << 9)        /* Top -> Botton Scan */
 #define LQ035_NORM     (1 << 13)       /* Reversal */
 #define LQ035_REV      (0 << 13)       /* Reversal */
 
+/*
+ * PPI Modes
+ */
+
+#define USE_RGB565_16_BIT_PPI  1
+#define USE_RGB565_8_BIT_PPI   2
+#define USE_RGB888_8_BIT_PPI   3
+
 struct bfin_lq035q1fb_disp_info {
 
        unsigned        mode;
+       unsigned        ppi_mode;
        /* GPIOs */
        int             use_bl;
        unsigned        gpio_bl;
index 3ff61e6fbe95b185546510c8864c441e778fb878..faede2b964ba62977847c430056371ca5740db93 100644 (file)
@@ -749,9 +749,10 @@ static struct platform_device bfin_dpmc = {
 #include <asm/bfin-lq035q1.h>
 
 static struct bfin_lq035q1fb_disp_info bfin_lq035q1_data = {
-       .mode =         LQ035_NORM | LQ035_RGB | LQ035_RL | LQ035_TB,
-       .use_bl =       1,
-       .gpio_bl =      GPIO_PG12,
+       .mode = LQ035_NORM | LQ035_RGB | LQ035_RL | LQ035_TB,
+       .ppi_mode = USE_RGB565_16_BIT_PPI,
+       .use_bl = 1,
+       .gpio_bl = GPIO_PG12,
 };
 
 static struct resource bfin_lq035q1_resources[] = {
index 9db506bdf4f4c1383e2cba6f4062650d1ea90935..fdfe8cae49bc49850b8e531bedab202fec884c05 100644 (file)
@@ -154,6 +154,7 @@ static struct platform_device bf52x_t350mcqb_device = {
 
 static struct bfin_lq035q1fb_disp_info bfin_lq035q1_data = {
        .mode = LQ035_NORM | LQ035_RGB | LQ035_RL | LQ035_TB,
+       .ppi_mode = USE_RGB565_8_BIT_PPI,
 };
 
 static struct resource bfin_lq035q1_resources[] = {
index 3cb20d7efbdb7c5cc02c87af7c81813685a63e51..538bff83e607cea1a326cf646c4b346ef81622c9 100644 (file)
@@ -1131,9 +1131,10 @@ static struct platform_device bfin_fb_device = {
 #include <asm/bfin-lq035q1.h>
 
 static struct bfin_lq035q1fb_disp_info bfin_lq035q1_data = {
-       .mode =         LQ035_NORM | LQ035_RGB | LQ035_RL | LQ035_TB,
-       .use_bl =       0,      /* let something else control the LCD Blacklight */
-       .gpio_bl =      GPIO_PF7,
+       .mode = LQ035_NORM | LQ035_RGB | LQ035_RL | LQ035_TB,
+       .ppi_mode = USE_RGB565_16_BIT_PPI,
+       .use_bl = 0,    /* let something else control the LCD Blacklight */
+       .gpio_bl = GPIO_PF7,
 };
 
 static struct resource bfin_lq035q1_resources[] = {
@@ -1147,8 +1148,8 @@ static struct resource bfin_lq035q1_resources[] = {
 static struct platform_device bfin_lq035q1_device = {
        .name           = "bfin-lq035q1",
        .id             = -1,
-       .num_resources  = ARRAY_SIZE(bfin_lq035q1_resources),
-       .resource       = bfin_lq035q1_resources,
+       .num_resources  = ARRAY_SIZE(bfin_lq035q1_resources),
+       .resource       = bfin_lq035q1_resources,
        .dev            = {
                .platform_data = &bfin_lq035q1_data,
        },
index 20387fe09c617a4ce6d214548e019dbee1d3f7ec..d2d06f046ad0daa60473951cbcbdc376891c1d56 100644 (file)
@@ -534,9 +534,10 @@ static struct bfin5xx_spi_chip spi_ad7879_chip_info = {
 #include <asm/bfin-lq035q1.h>
 
 static struct bfin_lq035q1fb_disp_info bfin_lq035q1_data = {
-       .mode =         LQ035_NORM | LQ035_RGB | LQ035_RL | LQ035_TB,
-       .use_bl =       0,      /* let something else control the LCD Blacklight */
-       .gpio_bl =      GPIO_PF7,
+       .mode = LQ035_NORM | LQ035_RGB | LQ035_RL | LQ035_TB,
+       .ppi_mode = USE_RGB565_16_BIT_PPI,
+       .use_bl = 0,    /* let something else control the LCD Blacklight */
+       .gpio_bl = GPIO_PF7,
 };
 
 static struct resource bfin_lq035q1_resources[] = {