diff options
author | Simon Glass <sjg@chromium.org> | 2020-02-03 07:36:14 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-02-05 19:33:46 -0700 |
commit | a466db5adb58e486fbd8ae63536b03a70d69f68d (patch) | |
tree | 141ac6c6d9268756342e3e5fcf5fb3a4b30a5d80 /doc | |
parent | 6be88c72828923f2df8c441ee12f5829e0d06f32 (diff) | |
download | u-boot-a466db5adb58e486fbd8ae63536b03a70d69f68d.zip u-boot-a466db5adb58e486fbd8ae63536b03a70d69f68d.tar.gz u-boot-a466db5adb58e486fbd8ae63536b03a70d69f68d.tar.bz2 |
sandbox: Support changing the LCD colour depth
Add a new device-tree property to control the colour depth. At present we
support 16bpp and 32bpp.
While we are here, update the code to use livetree.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/device-tree-bindings/video/sandbox-fb.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/device-tree-bindings/video/sandbox-fb.txt b/doc/device-tree-bindings/video/sandbox-fb.txt index eb91b30..230d25c 100644 --- a/doc/device-tree-bindings/video/sandbox-fb.txt +++ b/doc/device-tree-bindings/video/sandbox-fb.txt @@ -2,7 +2,10 @@ Sandbox LCD =========== This uses the displaymode.txt binding except that only xres and yres are -required properties. +required properties. Also an additional optional property is defined: + +log2-depth: Log base 2 of the U-Boot display buffer depth (4=16bpp, 5=32bpp). + If not provided, a value of 4 is used. Example: @@ -10,4 +13,5 @@ Example: compatible = "sandbox,lcd-sdl"; xres = <800>; yres = <600>; + log2-depth = <5>; }; |