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

Commit

Permalink
fbtft: make it possible to override regwidth
Browse files Browse the repository at this point in the history
Honour regwidth in platform data.
8-bit controllers interfaced with a 16-bit SPI interface circuit,
need to change the register width.
  • Loading branch information
notro committed Dec 5, 2014
1 parent de1c2ad commit 566dca0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fbtft-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,8 @@ struct fb_info *fbtft_framebuffer_alloc(struct fbtft_display *display,
display->height = pdata->display.height;
if (pdata->display.buswidth)
display->buswidth = pdata->display.buswidth;
if (pdata->display.regwidth)
display->regwidth = pdata->display.regwidth;

display->debug |= debug;
fbtft_expand_debug_value(&display->debug);
Expand Down

0 comments on commit 566dca0

Please sign in to comment.