Skip to content

BCM2835 / simple framebuffer support

Andre Heider barebox 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 13 repliesIn review
  2. v16 patches 5 repliesSuperseded

Changes in v2 from the cover letter

* renamed "pitch" to "line_length" to match the kernel
* the bcm2835 framebuffer driver is now standalone
* configuring simplefb for the kernel is based on the active barebox framebuffer

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6fb: add a line_length value to struct fb_infodrivers/video/fb.c include/fb.h+10 -25 replies
2/6gui: convert graphic utils to respect line_lengthlib/gui/graphic_utils.c+5 -50 replies
3/6gui: convert the bmp renderer to respect line_lengthlib/gui/bmp.c+4 -40 replies
4/6ARM: bcm2835: add missing mbox overscan response fieldarch/arm/mach-bcm2835/include/mach/mbox.h+1 -00 replies
5/6video: add a BCM2835 framebuffer driverarch/arm/boards/raspberry-pi/rpi.c arch/arm/mach-bcm2835/include/mach/core.h drivers/video/Kconfig +2 more+149 -00 replies
6/6video: set up the kernel's simple framebuffer driverdrivers/video/Kconfig drivers/video/Makefile drivers/video/simplefb.c+180 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/6] BCM2835 / simple framebuffer support

This is v2 of my patch set posted on 10/24.
It adds framebuffer support for the RPi and provides an additional config knob to set up the kernel's simplefb driver. The active barebox framebuffer is basis for that feature, so that other platforms can make use of it.

This simplefb option depends on the bcm2835 fb driver since drivers need to be aware of simplefb: framebuffers need to stay configured and cannot be teared down.

The RPi case is rather simple in this regard. The allocated framebuffer lies within the memory range of the VideoCore of the ARM/VC memory split. Hence, there is no memory range that needs to be reserved as far as the ARM side of things is concerned.
This likely needs to be added once other fb driver want to use simplefb.

Changes since v1:
* renamed "pitch" to "line_length" to match the kernel
* the bcm2835 framebuffer driver is now standalone
* configuring simplefb for the kernel is based on the active barebox framebuffer

Andre Heider (6):
fb: add a line_length value to struct fb_info
gui: convert graphic utils to respect line_length
gui: convert the bmp renderer to respect line_length
ARM: bcm2835: add missing mbox overscan response field
video: add a BCM2835 framebuffer driver
video: set up the kernel's simple framebuffer driver

 arch/arm/boards/raspberry-pi/rpi.c        |   1 +
 arch/arm/mach-bcm2835/include/mach/core.h |   5 +
 arch/arm/mach-bcm2835/include/mach/mbox.h |   1 +
 drivers/video/Kconfig                     |  14 +++
 drivers/video/Makefile                    |   2 +
 drivers/video/bcm2835.c                   | 136 ++++++++++++++++++++++++
 drivers/video/fb.c                        |  11 +-
 drivers/video/simplefb.c                  | 171 ++++++++++++++++++++++++++++++
 include/fb.h                              |   1 +
 lib/gui/bmp.c                             |   8 +-
 lib/gui/graphic_utils.c                   |  10 +-
 11 files changed, 349 insertions(+), 11 deletions(-)
 create mode 100644 drivers/video/bcm2835.c
 create mode 100644 drivers/video/simplefb.c
Signature · 7 lines
1.8.3.2


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox