Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Michael Hennerich and committed by
Mike Frysinger
d94a1aa4 6924dfb0

+27 -11
+12
arch/blackfin/include/asm/bfin-lq035q1.h
··· 8 8 #ifndef BFIN_LQ035Q1_H 9 9 #define BFIN_LQ035Q1_H 10 10 11 + /* 12 + * LCD Modes 13 + */ 11 14 #define LQ035_RL (0 << 8) /* Right -> Left Scan */ 12 15 #define LQ035_LR (1 << 8) /* Left -> Right Scan */ 13 16 #define LQ035_TB (1 << 9) /* Top -> Botton Scan */ ··· 20 17 #define LQ035_NORM (1 << 13) /* Reversal */ 21 18 #define LQ035_REV (0 << 13) /* Reversal */ 22 19 20 + /* 21 + * PPI Modes 22 + */ 23 + 24 + #define USE_RGB565_16_BIT_PPI 1 25 + #define USE_RGB565_8_BIT_PPI 2 26 + #define USE_RGB888_8_BIT_PPI 3 27 + 23 28 struct bfin_lq035q1fb_disp_info { 24 29 25 30 unsigned mode; 31 + unsigned ppi_mode; 26 32 /* GPIOs */ 27 33 int use_bl; 28 34 unsigned gpio_bl;
+4 -3
arch/blackfin/mach-bf527/boards/ezbrd.c
··· 749 749 #include <asm/bfin-lq035q1.h> 750 750 751 751 static struct bfin_lq035q1fb_disp_info bfin_lq035q1_data = { 752 - .mode = LQ035_NORM | LQ035_RGB | LQ035_RL | LQ035_TB, 753 - .use_bl = 1, 754 - .gpio_bl = GPIO_PG12, 752 + .mode = LQ035_NORM | LQ035_RGB | LQ035_RL | LQ035_TB, 753 + .ppi_mode = USE_RGB565_16_BIT_PPI, 754 + .use_bl = 1, 755 + .gpio_bl = GPIO_PG12, 755 756 }; 756 757 757 758 static struct resource bfin_lq035q1_resources[] = {
+1
arch/blackfin/mach-bf527/boards/ezkit.c
··· 154 154 155 155 static struct bfin_lq035q1fb_disp_info bfin_lq035q1_data = { 156 156 .mode = LQ035_NORM | LQ035_RGB | LQ035_RL | LQ035_TB, 157 + .ppi_mode = USE_RGB565_8_BIT_PPI, 157 158 }; 158 159 159 160 static struct resource bfin_lq035q1_resources[] = {
+6 -5
arch/blackfin/mach-bf537/boards/stamp.c
··· 1131 1131 #include <asm/bfin-lq035q1.h> 1132 1132 1133 1133 static struct bfin_lq035q1fb_disp_info bfin_lq035q1_data = { 1134 - .mode = LQ035_NORM | LQ035_RGB | LQ035_RL | LQ035_TB, 1135 - .use_bl = 0, /* let something else control the LCD Blacklight */ 1136 - .gpio_bl = GPIO_PF7, 1134 + .mode = LQ035_NORM | LQ035_RGB | LQ035_RL | LQ035_TB, 1135 + .ppi_mode = USE_RGB565_16_BIT_PPI, 1136 + .use_bl = 0, /* let something else control the LCD Blacklight */ 1137 + .gpio_bl = GPIO_PF7, 1137 1138 }; 1138 1139 1139 1140 static struct resource bfin_lq035q1_resources[] = { ··· 1148 1147 static struct platform_device bfin_lq035q1_device = { 1149 1148 .name = "bfin-lq035q1", 1150 1149 .id = -1, 1151 - .num_resources = ARRAY_SIZE(bfin_lq035q1_resources), 1152 - .resource = bfin_lq035q1_resources, 1150 + .num_resources = ARRAY_SIZE(bfin_lq035q1_resources), 1151 + .resource = bfin_lq035q1_resources, 1153 1152 .dev = { 1154 1153 .platform_data = &bfin_lq035q1_data, 1155 1154 },
+4 -3
arch/blackfin/mach-bf538/boards/ezkit.c
··· 534 534 #include <asm/bfin-lq035q1.h> 535 535 536 536 static struct bfin_lq035q1fb_disp_info bfin_lq035q1_data = { 537 - .mode = LQ035_NORM | LQ035_RGB | LQ035_RL | LQ035_TB, 538 - .use_bl = 0, /* let something else control the LCD Blacklight */ 539 - .gpio_bl = GPIO_PF7, 537 + .mode = LQ035_NORM | LQ035_RGB | LQ035_RL | LQ035_TB, 538 + .ppi_mode = USE_RGB565_16_BIT_PPI, 539 + .use_bl = 0, /* let something else control the LCD Blacklight */ 540 + .gpio_bl = GPIO_PF7, 540 541 }; 541 542 542 543 static struct resource bfin_lq035q1_resources[] = {