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

    Anatolij Gustschin
     

15 Oct, 2013

1 commit


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

    Marek Vasut
     

24 Jul, 2013

1 commit


09 Jul, 2013

1 commit


02 Jul, 2013

2 commits


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

    Stephen Warren
     

29 Mar, 2013

2 commits


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

    Andre Renaud
     
  • Hide the console macros since some reference global data which is
    no longer present.

    cc: Anatolij Gustschin
    Signed-off-by: Jeroen Hofstee

    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 style

    cc: Anatolij Gustschin
    Signed-off-by: Jeroen Hofstee
    [agust: rebased the original patch]
    Signed-off-by: Anatolij Gustschin

    Jeroen Hofstee
     
  • 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

    Jeroen Hofstee
     
  • 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

    Jeroen Hofstee
     
  • 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

    Wolfgang Denk
     

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

    Stephen Warren
     

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

    Nikita Kiryanov
     

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

    Nikita Kiryanov
     

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

    Nikita Kiryanov
     

10 Dec, 2012

1 commit


19 Nov, 2012

3 commits


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

    Tom Wai-Hong Tam
     
  • 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

    Tom Wai-Hong Tam
     
  • 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

    Vadim Bendebury
     

25 Sep, 2012

1 commit


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

    Nikita Kiryanov
     

05 Sep, 2012

4 commits


10 Jul, 2012

1 commit


25 May, 2012

4 commits


07 Dec, 2011

1 commit


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

    Che-Liang Chiou