aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMichael Hennerich <michael.hennerich@analog.com>2009-12-08 06:45:55 -0500
committerMike Frysinger <vapier@gentoo.org>2010-03-09 00:30:46 -0500
commitd94a1aa44ed6bfe8d8ab36c02de652d4fcf0d2c3 (patch)
tree98af210bc21ed8388011b75818f0064b00d31b01 /arch
parent6924dfb0588dab02a331a3a526f8a8fae7d1b3cc (diff)
Blackfin: extend bfin-lq035q1-fb resources to include PPI mode
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/blackfin/include/asm/bfin-lq035q1.h12
-rw-r--r--arch/blackfin/mach-bf527/boards/ezbrd.c7
-rw-r--r--arch/blackfin/mach-bf527/boards/ezkit.c1
-rw-r--r--arch/blackfin/mach-bf537/boards/stamp.c11
-rw-r--r--arch/blackfin/mach-bf538/boards/ezkit.c7
5 files changed, 27 insertions, 11 deletions
diff --git a/arch/blackfin/include/asm/bfin-lq035q1.h b/arch/blackfin/include/asm/bfin-lq035q1.h
index 57bc21ac2296..836895156b5b 100644
--- a/arch/blackfin/include/asm/bfin-lq035q1.h
+++ b/arch/blackfin/include/asm/bfin-lq035q1.h
@@ -8,6 +8,9 @@
8#ifndef BFIN_LQ035Q1_H 8#ifndef BFIN_LQ035Q1_H
9#define BFIN_LQ035Q1_H 9#define BFIN_LQ035Q1_H
10 10
11/*
12 * LCD Modes
13 */
11#define LQ035_RL (0 << 8) /* Right -> Left Scan */ 14#define LQ035_RL (0 << 8) /* Right -> Left Scan */
12#define LQ035_LR (1 << 8) /* Left -> Right Scan */ 15#define LQ035_LR (1 << 8) /* Left -> Right Scan */
13#define LQ035_TB (1 << 9) /* Top -> Botton Scan */ 16#define LQ035_TB (1 << 9) /* Top -> Botton Scan */
@@ -17,9 +20,18 @@
17#define LQ035_NORM (1 << 13) /* Reversal */ 20#define LQ035_NORM (1 << 13) /* Reversal */
18#define LQ035_REV (0 << 13) /* Reversal */ 21#define LQ035_REV (0 << 13) /* Reversal */
19 22
23/*
24 * PPI Modes
25 */
26
27#define USE_RGB565_16_BIT_PPI 1
28#define USE_RGB565_8_BIT_PPI 2
29#define USE_RGB888_8_BIT_PPI 3
30
20struct bfin_lq035q1fb_disp_info { 31struct bfin_lq035q1fb_disp_info {
21 32
22 unsigned mode; 33 unsigned mode;
34 unsigned ppi_mode;
23 /* GPIOs */ 35 /* GPIOs */
24 int use_bl; 36 int use_bl;
25 unsigned gpio_bl; 37 unsigned gpio_bl;
diff --git a/arch/blackfin/mach-bf527/boards/ezbrd.c b/arch/blackfin/mach-bf527/boards/ezbrd.c
index 3ff61e6fbe95..faede2b964ba 100644
--- a/arch/blackfin/mach-bf527/boards/ezbrd.c
+++ b/arch/blackfin/mach-bf527/boards/ezbrd.c
@@ -749,9 +749,10 @@ static struct platform_device bfin_dpmc = {
749#include <asm/bfin-lq035q1.h> 749#include <asm/bfin-lq035q1.h>
750 750
751static struct bfin_lq035q1fb_disp_info bfin_lq035q1_data = { 751static struct bfin_lq035q1fb_disp_info bfin_lq035q1_data = {
752 .mode = LQ035_NORM | LQ035_RGB | LQ035_RL | LQ035_TB, 752 .mode = LQ035_NORM | LQ035_RGB | LQ035_RL | LQ035_TB,
753 .use_bl = 1, 753 .ppi_mode = USE_RGB565_16_BIT_PPI,
754 .gpio_bl = GPIO_PG12, 754 .use_bl = 1,
755 .gpio_bl = GPIO_PG12,
755}; 756};
756 757
757static struct resource bfin_lq035q1_resources[] = { 758static struct resource bfin_lq035q1_resources[] = {
diff --git a/arch/blackfin/mach-bf527/boards/ezkit.c b/arch/blackfin/mach-bf527/boards/ezkit.c
index 9db506bdf4f4..fdfe8cae49bc 100644
--- a/arch/blackfin/mach-bf527/boards/ezkit.c
+++ b/arch/blackfin/mach-bf527/boards/ezkit.c
@@ -154,6 +154,7 @@ static struct platform_device bf52x_t350mcqb_device = {
154 154
155static struct bfin_lq035q1fb_disp_info bfin_lq035q1_data = { 155static struct bfin_lq035q1fb_disp_info bfin_lq035q1_data = {
156 .mode = LQ035_NORM | LQ035_RGB | LQ035_RL | LQ035_TB, 156 .mode = LQ035_NORM | LQ035_RGB | LQ035_RL | LQ035_TB,
157 .ppi_mode = USE_RGB565_8_BIT_PPI,
157}; 158};
158 159
159static struct resource bfin_lq035q1_resources[] = { 160static struct resource bfin_lq035q1_resources[] = {
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c
index 3cb20d7efbdb..538bff83e607 100644
--- a/arch/blackfin/mach-bf537/boards/stamp.c
+++ b/arch/blackfin/mach-bf537/boards/stamp.c
@@ -1131,9 +1131,10 @@ static struct platform_device bfin_fb_device = {
1131#include <asm/bfin-lq035q1.h> 1131#include <asm/bfin-lq035q1.h>
1132 1132
1133static struct bfin_lq035q1fb_disp_info bfin_lq035q1_data = { 1133static struct bfin_lq035q1fb_disp_info bfin_lq035q1_data = {
1134 .mode = LQ035_NORM | LQ035_RGB | LQ035_RL | LQ035_TB, 1134 .mode = LQ035_NORM | LQ035_RGB | LQ035_RL | LQ035_TB,
1135 .use_bl = 0, /* let something else control the LCD Blacklight */ 1135 .ppi_mode = USE_RGB565_16_BIT_PPI,
1136 .gpio_bl = GPIO_PF7, 1136 .use_bl = 0, /* let something else control the LCD Blacklight */
1137 .gpio_bl = GPIO_PF7,
1137}; 1138};
1138 1139
1139static struct resource bfin_lq035q1_resources[] = { 1140static struct resource bfin_lq035q1_resources[] = {
@@ -1147,8 +1148,8 @@ static struct resource bfin_lq035q1_resources[] = {
1147static struct platform_device bfin_lq035q1_device = { 1148static struct platform_device bfin_lq035q1_device = {
1148 .name = "bfin-lq035q1", 1149 .name = "bfin-lq035q1",
1149 .id = -1, 1150 .id = -1,
1150 .num_resources = ARRAY_SIZE(bfin_lq035q1_resources), 1151 .num_resources = ARRAY_SIZE(bfin_lq035q1_resources),
1151 .resource = bfin_lq035q1_resources, 1152 .resource = bfin_lq035q1_resources,
1152 .dev = { 1153 .dev = {
1153 .platform_data = &bfin_lq035q1_data, 1154 .platform_data = &bfin_lq035q1_data,
1154 }, 1155 },
diff --git a/arch/blackfin/mach-bf538/boards/ezkit.c b/arch/blackfin/mach-bf538/boards/ezkit.c
index 20387fe09c61..d2d06f046ad0 100644
--- a/arch/blackfin/mach-bf538/boards/ezkit.c
+++ b/arch/blackfin/mach-bf538/boards/ezkit.c
@@ -534,9 +534,10 @@ static struct bfin5xx_spi_chip spi_ad7879_chip_info = {
534#include <asm/bfin-lq035q1.h> 534#include <asm/bfin-lq035q1.h>
535 535
536static struct bfin_lq035q1fb_disp_info bfin_lq035q1_data = { 536static struct bfin_lq035q1fb_disp_info bfin_lq035q1_data = {
537 .mode = LQ035_NORM | LQ035_RGB | LQ035_RL | LQ035_TB, 537 .mode = LQ035_NORM | LQ035_RGB | LQ035_RL | LQ035_TB,
538 .use_bl = 0, /* let something else control the LCD Blacklight */ 538 .ppi_mode = USE_RGB565_16_BIT_PPI,
539 .gpio_bl = GPIO_PF7, 539 .use_bl = 0, /* let something else control the LCD Blacklight */
540 .gpio_bl = GPIO_PF7,
540}; 541};
541 542
542static struct resource bfin_lq035q1_resources[] = { 543static struct resource bfin_lq035q1_resources[] = {