Skip to content

Commit 566dca0

Browse files
committed
fbtft: make it possible to override regwidth
Honour regwidth in platform data. 8-bit controllers interfaced with a 16-bit SPI interface circuit, need to change the register width.
1 parent de1c2ad commit 566dca0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fbtft-core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ struct fb_info *fbtft_framebuffer_alloc(struct fbtft_display *display,
738738
display->height = pdata->display.height;
739739
if (pdata->display.buswidth)
740740
display->buswidth = pdata->display.buswidth;
741+
if (pdata->display.regwidth)
742+
display->regwidth = pdata->display.regwidth;
741743

742744
display->debug |= debug;
743745
fbtft_expand_debug_value(&display->debug);

0 commit comments

Comments
 (0)