Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
fb_ili948{1,6}: regwidth was incorrect
Browse files Browse the repository at this point in the history
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 <notro@tronnes.org>
  • Loading branch information
notro committed Dec 5, 2014
1 parent 566dca0 commit c92097b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fb_ili9481.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ static int set_var(struct fbtft_par *par)
}

static struct fbtft_display display = {
.regwidth = 16,
.regwidth = 8,
.width = WIDTH,
.height = HEIGHT,
.init_sequence = default_init_sequence,
Expand Down
2 changes: 1 addition & 1 deletion fb_ili9486.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ static int set_var(struct fbtft_par *par)


static struct fbtft_display display = {
.regwidth = 16,
.regwidth = 8,
.width = WIDTH,
.height = HEIGHT,
.init_sequence = default_init_sequence,
Expand Down
2 changes: 2 additions & 0 deletions fbtft_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ static struct fbtft_device_display displays[] = {
.mode = SPI_MODE_0,
.platform_data = &(struct fbtft_platform_data) {
.display = {
.regwidth = 16,
.buswidth = 8,
.backlight = 1,
},
Expand Down Expand Up @@ -672,6 +673,7 @@ static struct fbtft_device_display displays[] = {
.mode = SPI_MODE_0,
.platform_data = &(struct fbtft_platform_data) {
.display = {
.regwidth = 16,
.buswidth = 8,
.backlight = 1,
},
Expand Down

0 comments on commit c92097b

Please sign in to comment.