From c92097b5a5ef82e298a4fe8ec7859c9378e435d8 Mon Sep 17 00:00:00 2001 From: notro Date: Fri, 5 Dec 2014 16:10:27 +0100 Subject: [PATCH] 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 --- fb_ili9481.c | 2 +- fb_ili9486.c | 2 +- fbtft_device.c | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fb_ili9481.c b/fb_ili9481.c index 913fe34..725157a 100644 --- a/fb_ili9481.c +++ b/fb_ili9481.c @@ -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, diff --git a/fb_ili9486.c b/fb_ili9486.c index 76a5b17..95b8999 100644 --- a/fb_ili9486.c +++ b/fb_ili9486.c @@ -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, diff --git a/fbtft_device.c b/fbtft_device.c index d3eb4e5..999cb89 100644 --- a/fbtft_device.c +++ b/fbtft_device.c @@ -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, }, @@ -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, },