Skip to content

Commit c92097b

Browse files
committed
fb_ili948{1,6}: regwidth was incorrect
Regwidth was incorrectly set to 16. It should be 8. This was probably because they where used with a 16-bit SPI interface circuit. Change fbtft_device entries on the relevant entries. Signed-off-by: Jon Cross Acked-by: Noralf Tronnes <[email protected]>
1 parent 566dca0 commit c92097b

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

fb_ili9481.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static int set_var(struct fbtft_par *par)
9696
}
9797

9898
static struct fbtft_display display = {
99-
.regwidth = 16,
99+
.regwidth = 8,
100100
.width = WIDTH,
101101
.height = HEIGHT,
102102
.init_sequence = default_init_sequence,

fb_ili9486.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ static int set_var(struct fbtft_par *par)
100100

101101

102102
static struct fbtft_display display = {
103-
.regwidth = 16,
103+
.regwidth = 8,
104104
.width = WIDTH,
105105
.height = HEIGHT,
106106
.init_sequence = default_init_sequence,

fbtft_device.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,7 @@ static struct fbtft_device_display displays[] = {
493493
.mode = SPI_MODE_0,
494494
.platform_data = &(struct fbtft_platform_data) {
495495
.display = {
496+
.regwidth = 16,
496497
.buswidth = 8,
497498
.backlight = 1,
498499
},
@@ -672,6 +673,7 @@ static struct fbtft_device_display displays[] = {
672673
.mode = SPI_MODE_0,
673674
.platform_data = &(struct fbtft_platform_data) {
674675
.display = {
676+
.regwidth = 16,
675677
.buswidth = 8,
676678
.backlight = 1,
677679
},

0 commit comments

Comments
 (0)