12 Nov, 2013
1 commit
-
Remove the redundant lcd_line_length initialisation which
sneaked in when an earlier version of the patch of commit
6d330719 has been rebased.Some lcd drivers need to setup lcd_line_length not from the
panel_info parameters but by different means. Make the
lcd_get_size() weak to allow setting lcd_line_length in
a driver specific way.Signed-off-by: Anatolij Gustschin
Cc: Stephen Warren
15 Oct, 2013
1 commit
-
Signed-off-by: Wolfgang Denk
13 Aug, 2013
1 commit
-
This patch moves all the font configuration values into video_font_data.h
so they are all in the right place with the font. The video_font.h now only
includes video_font_data.h and will allow us to select and include different
font once more fonts are added.Signed-off-by: Marek Vasut
Cc: Anatolij Gustschin
[agust: fixed build warning for mcc200]
Signed-off-by: Anatolij Gustschin
24 Jul, 2013
1 commit
-
Signed-off-by: Wolfgang Denk
[trini: Fixup common/cmd_io.c]
Signed-off-by: Tom Rini
09 Jul, 2013
1 commit
-
Code for checking "splashpos" environment variable is
duplicated in drivers, move it to the common function.
Call this function also in the bmp display command to
consider "splashpos" settings.Signed-off-by: Anatolij Gustschin
Acked-by: Otavio Salvador
02 Jul, 2013
2 commits
-
Create splash.c/h to put the function and any future common splash
screen code in.Signed-off-by: Robert Winkler
Acked-by: Igor Grinberg -
Some ARM compilers may emit code that makes unaligned accesses when
faced with constructs such as:const char format[] = "r5g6b5";
Make this data static since it doesn't chagne; the compiler will simply
place it into the .rodata section directly, and avoid any unaligned run-
time initialization.Signed-off-by: Stephen Warren
06 Jun, 2013
1 commit
-
simple-framebuffer is a new device tree binding that describes a pre-
configured frame-buffer memory region and its format. The Linux kernel
contains a driver that supports this binding. Implement functions to
create a DT node (or fill in an existing node) with parameters that
describe the framebuffer format that U-Boot is using.This will be immediately used by the Raspberry Pi board in U-Boot, and
likely will be used by the Samsung ARM ChromeBook support soon too. It
could well be used by many other boards (e.g. Tegra boards with built-in
LCD panels, which aren't yet supported by the Linux kernel).Signed-off-by: Stephen Warren
Acked-by: Simon Glass
29 Mar, 2013
2 commits
-
After merging LCD patches for v2013.04 the bcm2835 video
driver building is broken due to removal of many global
variables. Fix the driver.Signed-off-by: Anatolij Gustschin
Cc: Stephen Warren -
Conflicts:
drivers/video/MakefileSigned-off-by: Anatolij Gustschin
21 Mar, 2013
6 commits
-
Currently bitmap logos don't interpret the X coordinate
correctly if the bpp is anything other than 8.Signed-off-by: Andre Renaud
-
Hide the console macros since some reference global data which is
no longer present.cc: Anatolij Gustschin
Signed-off-by: Jeroen Hofstee -
- Make the brackets of the function calls more consistent
- Remove really unnecessary brackets
- Removes the extern from the function definitions
- Remove curly brackets from single line statements
- Remove lcd_setmem proto since it is already in common.h
- Cleanup comments, remove useless comments
- Remove NOT_USED_SO_FAR ifdef
- Cleanup coding stylecc: Anatolij Gustschin
Signed-off-by: Jeroen Hofstee
[agust: rebased the original patch]
Signed-off-by: Anatolij Gustschin -
lcd_base is available as gd->fb_base as well, there is no need
to keep a seperate copy.For completeness the ack of Bo Shen is for the atmel part.
Cc: Alessandro Rubini
Cc: Anatolij Gustschin
Cc: Bo Shen
Cc: Haavard Skinnemoen
Cc: Kyungmin Park
Cc: Marek Vasut
Cc: Minkyu Kang
Cc: Nikita Kiryanov
Cc: Simon Glass
Cc: Stelian Pop
Cc: Tom Warren
Acked-by: Bo Shen
Signed-off-by: Jeroen Hofstee
[agust: also fix cm_t35 board while rebasing]
Signed-off-by: Anatolij Gustschin -
console_col, console_row, lcd_line_length, lcd_console_address had
to be declared in board / driver specific code, but were not actually
used there on many boards. Get rid of the global variables.for completeness, the ack of Bo Shen is for the atmel part
Cc: Alessandro Rubini
Cc: Anatolij Gustschin
Cc: Bo Shen
Cc: Kyungmin Park
Cc: Marek Vasut
Cc: Minkyu Kang
Cc: Nikita Kiryanov
Cc: Simon Glass
Cc: Stelian Pop
Cc: Tom Warren
Acked-by: Bo Shen
Signed-off-by: Jeroen Hofstee
[agust: rebased and fixed cm_t35 board]
Signed-off-by: Anatolij Gustschin -
lcd_color_fg and lcd_color_bg had to be declared in board specific
code, but were not actually used there; in addition, we have getter /
setter functions for these, which were not used either.Get rid of the global variables, and use the getter function where
needed (so far no setter calls are needed).Signed-off-by: Wolfgang Denk
Cc: Alessandro Rubini
Cc: Anatolij Gustschin
Cc: Bo Shen
Cc: Haavard Skinnemoen
Cc: Kyungmin Park
Cc: Marek Vasut
Cc: Minkyu Kang
Cc: Nikita Kiryanov
Cc: Simon Glass
Cc: Stelian Pop
Cc: Tom Warren
Acked-by: Simon Glass
Acked-by: Jeroen Hofstee
[agust: also fixed cm_t35 board while rebasing]
Signed-off-by: Anatolij Gustschin
20 Mar, 2013
1 commit
-
When an LCD driver is actually driving a regular external display, e.g.
an HDMI monitor, the display resolution might not be known until the
display controller has initialized, i.e. during lcd_ctrl_init(). However,
lcd.c calculates lcd_line_length before calling this function, thus
relying on a hard-coded resolution in struct panel_info.Instead, defer this calculation until after lcd_ctrl_init() has had the
chance to dynamically determine the resolution. This needs to happen
before lcd_clear(), since the value is used there.grep indicates that no code outside lcd.c uses this lcd_line_length; in
particular, no lcd_ctrl_init() implementations read it.Signed-off-by: Stephen Warren
Acked-by: Anatolij Gustschin
11 Mar, 2013
1 commit
-
On some architectures certain values of splashimage will lead to
a data abort exception.Document the problem, and implement a callback for splashimage to
reject such values.Cc: Anatolij Gustschin
Cc: Wolfgang Denk
Signed-off-by: Nikita Kiryanov
Acked-by: Igor Grinberg
09 Mar, 2013
1 commit
-
Currently there is no logical place to put the code that prepares the
splash image data. The splash image data should be ready in memory
before bmp_display() is called, and after the environment is ready
(since lcd.c looks for the splash image in an address specified by
the environment variable "splashimage").Our window of opportunity in board_init_r() is therefore: between
env_relocate() and bmp_display(), and from the available options
only the lcd related functions in drv_lcd_init() seem appropriate
for such lcd oriented code.Add the option to prepare the splash image data in lcd_logo() right
before it is sent to be displayed.Cc: Anatolij Gustschin
Cc: Jeroen Hofstee
Signed-off-by: Nikita Kiryanov
Signed-off-by: Igor Grinberg
15 Jan, 2013
1 commit
-
Commit fb6a9aab7ae78c (LCD: display 32bpp decompressed bitmap image)
broke the check that allowed U-Boot to display 8 bpp BMPs on a 16
bpp LCD screen, effectively turning this feature off.Restore this feature by changing the check back to the same meaning
it originally had.
To avoid future confusion, the check has also been rephrased to make
its meaning clear.Signed-off-by: Nikita Kiryanov
Signed-off-by: Igor Grinberg
10 Dec, 2012
1 commit
-
Conflicts:
README
board/samsung/universal_c210/universal.c
drivers/misc/Makefile
drivers/power/power_fsl.c
include/configs/mx35pdk.h
include/configs/mx53loco.h
include/configs/seaboard.h
19 Nov, 2012
3 commits
-
When the cursor position gets to the end of the LCD console we normally
scroll by one line. This adds an option to increase that value.Console scrolling is often slow, and if a large amount of output is
being sent, increasing this option to 10 or so will speed things up
considerably.Signed-off-by: Simon Glass
Signed-off-by: Tom Warren -
This provides an option for the LCD to flush the dcache after each update
(puts, scroll or clear).Signed-off-by: Simon Glass
Signed-off-by: Tom Warren -
The normal alignment is PAGE_SIZE, but if this is defined, we can support
other alignments.The motivation for this change is to make the display section-aligned on
ARM so that we can easily turn off data caching for the frame buffer region
without resorting to level 2 page tables.Signed-off-by: Simon Glass
Signed-off-by: Tom Warren
07 Nov, 2012
3 commits
-
Add support for drawing compressed RLE8 bitmaps.
Reference: http://www.digicamsoft.com/bmp/bmp.html
Signed-off-by: Che-Liang Chiou
Signed-off-by: Tom Wai-Hong Tam
Signed-off-by: Simon Glass
Acked-by: Che-Liang Chiou
[agust: fix some minor style issues and build warnings]
Signed-off-by: Anatolij Gustschin -
This change fixed 2 things:
- Rename padded_line to padded_width since it is (width + padded_row) not line.
- When finished a line, should skip the padded_row that is
(padded_width - width) instead of (width - padded_width).Reference: http://en.wikipedia.org/wiki/BMP_file_format
Signed-off-by: Tom Wai-Hong Tam
Signed-off-by: Simon Glass -
Create a basic API to provide access to lcd parameters such as screen
size, and to position the cursor on the screen.This matches up with the video API for the same purpose. Unfortunately
they are not yet combined.Signed-off-by: Vadim Bendebury
Signed-off-by: Simon Glass
25 Sep, 2012
1 commit
-
Commit 203c37b8c5556aad1901ce4954792afd718c7d42
(common lcd: simplify core functions)and commit bfdcc65e1163b4891643c2a670570c478b9af2a4
(common lcd: simplify lcd_display_bitmap)caused build breakage for at91sam9x5ek board configurations
and for trats board. Fix these build errors.Signed-off-by: Anatolij Gustschin
Acked-by: Nikita Kiryanov
22 Sep, 2012
1 commit
-
If the bmp pointer is null then U-Boot will get stuck when trying
to load the image.
What's worse, it will get stuck before the U-Boot shell becomes
available to the user, thus making it difficult to correct the
situation.To protect from the above scenario, check if the pointer is valid.
Signed-off-by: Nikita Kiryanov
05 Sep, 2012
4 commits
-
Move highly platform dependant code into its own functions to reduce the
number of #ifdefs in lcd_display_bitmapTo avoid breaking the mcc200 board which does not #define
CONFIG_CMD_BMP, this patch also implements bmp_display() for mcc200.Signed-off-by: Nikita Kiryanov
Signed-off-by: Igor Grinberg -
Move highly platform dependant code into its own function to reduce the
number of #ifdefs in the bigger functionsSigned-off-by: Nikita Kiryanov
Signed-off-by: Igor Grinberg -
Simplify lcd_display by centralizing code into a funciton
Signed-off-by: Nikita Kiryanov
Signed-off-by: Igor Grinberg -
Simplify lcd_logo by extracting bmp unzip into its own function.
Signed-off-by: Nikita Kiryanov
Signed-off-by: Igor Grinberg
10 Jul, 2012
1 commit
-
No functional changes
Signed-off-by: Nikita Kiryanov
Signed-off-by: Igor Grinberg
25 May, 2012
4 commits
-
This patch supports drawing 32bpp decompressed bitmap image.
Signed-off-by: Donghwa Lee
Signed-off-by: Kyungmin.park -
Drop ifdef around bitmap_plot().
Signed-off-by: Anatolij Gustschin
-
Move CONFIG_LCD_LOGO && !CONFIG_LCD_INFO_BELOW_LOGO ifdefs
to lcd_drawchars() func.Signed-off-by: Anatolij Gustschin
-
Use available macro for obtaining the size of bmp_logo_palette[]
Signed-off-by: Anatolij Gustschin
07 Dec, 2011
1 commit
-
Signed-off-by: Marek Vasut
16 Nov, 2011
1 commit
-
While video_font.h is useful even without referencing the font data, it
is not possible to be included multiple times because it defines font
data array right in the header.This patch splits the font data array into video_font_data.h and so now
video_font.h can be included multiple times. This at least solves the
code duplication in board/mcc200/lcd.c.Signed-off-by: Che-Liang Chiou
Acked-by: Mike Frysinger