[PATCH v2 0/5] drm/vc4: Allow for more boot-time configuration

Maxime Ripard
2019-04-11T13:22:55Z

Hi,

The proprietary stack for the RaspberryPi allows for a number of video
parameters widely used by their users, but yet don't have any equivalents
in the mainline kernel.

Those options are detailed here:
https://www.raspberrypi.org/documentation/configuration/config-txt/video.md

While not all of them are desirable to have in the mainline kernel, some of
them still have value, such as properties to initialise the overscan or
rotation parameters.

This series is an attempt to support those, and is based on a rewrite of
the command line parser I did a couple of years ago that never reached
upstream (due to a lack of time on my side). While this parser was
initially made to deal with named modes (in order to support TV modes), it
also allowed to extend it more easily, which is why it's resurrected.

Let me know what you think,
Maxime

Changes from v1:
- Dropped the patches to deal with EDID
- Added the unit test as selftest
- Rebased on next

Maxime Ripard (5):
drm/modes: Rewrite the command line parser
drm/modes: Support modes names on the command line
drm/modes: Allow to specify rotation and reflection on the commandline
drm/modes: Parse overscan properties
drm/selftests: Add command line parser selftests

drivers/gpu/drm/drm_connector.c | 3 +-
drivers/gpu/drm/drm_fb_helper.c | 55 +-
drivers/gpu/drm/drm_modes.c | 441 +++++--
drivers/gpu/drm/selftests/Makefile | 2 +-
drivers/gpu/drm/selftests/drm_cmdline_selftests.h | 49 +-
drivers/gpu/drm/selftests/test-drm_cmdline_parser.c | 843 +++++++++++++-
include/drm/drm_connector.h | 3 +-
7 files changed, 1279 insertions(+), 117 deletions(-)
create mode 100644 drivers/gpu/drm/selftests/drm_cmdline_selftests.h
create mode 100644 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c

base-commit: 2f4c4d833153517c7791318f8608cf5c212cef68
--
git-series 0.9.1