<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/common/lcd.c, branch v2015.04</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<entry>
<title>lcd: split splash code into its own function</title>
<updated>2015-02-10T12:31:58+00:00</updated>
<author>
<name>Nikita Kiryanov</name>
<email>nikita@compulab.co.il</email>
</author>
<published>2015-02-03T11:32:32+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=7bf71d1f55d31a81ade8dd0fc72f06e4672689d0'/>
<id>7bf71d1f55d31a81ade8dd0fc72f06e4672689d0</id>
<content type='text'>
lcd_logo() currently performs tasks well beyond just displaying the logo.
It has code which displays splash image, it has logic which determines
when the different display features are displayed, and it is coupled with
the lcd console because it holds the responsibility of returning the
lcd console base address.

Make lcd_logo() just about the logo by:
* Moving splash image display code into a dedicated function
* Moving the logic regarding when various features are displayed to
  lcd_clear() (which is arguably not the correct name for housing such
  code either, but it is currently the most fitting location code wise)
* Move the responsibility of setting the console base address to
  lcd_clear() too.

Signed-off-by: Nikita Kiryanov &lt;nikita@compulab.co.il&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Tested-by: Bo Shen &lt;voice.shen@atmel.com&gt;
Tested-by: Josh Wu &lt;josh.wu@atmel.com&gt;
Cc: Bo Shen &lt;voice.shen@atmel.com&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Cc: Anatolij Gustschin &lt;agust@denx.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
lcd_logo() currently performs tasks well beyond just displaying the logo.
It has code which displays splash image, it has logic which determines
when the different display features are displayed, and it is coupled with
the lcd console because it holds the responsibility of returning the
lcd console base address.

Make lcd_logo() just about the logo by:
* Moving splash image display code into a dedicated function
* Moving the logic regarding when various features are displayed to
  lcd_clear() (which is arguably not the correct name for housing such
  code either, but it is currently the most fitting location code wise)
* Move the responsibility of setting the console base address to
  lcd_clear() too.

Signed-off-by: Nikita Kiryanov &lt;nikita@compulab.co.il&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Tested-by: Bo Shen &lt;voice.shen@atmel.com&gt;
Tested-by: Josh Wu &lt;josh.wu@atmel.com&gt;
Cc: Bo Shen &lt;voice.shen@atmel.com&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Cc: Anatolij Gustschin &lt;agust@denx.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lcd: dt: extract simplefb support</title>
<updated>2015-02-10T12:31:26+00:00</updated>
<author>
<name>Nikita Kiryanov</name>
<email>nikita@compulab.co.il</email>
</author>
<published>2015-02-03T11:32:31+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=033167c4c5a9a31768f690353ce26be021ad9c36'/>
<id>033167c4c5a9a31768f690353ce26be021ad9c36</id>
<content type='text'>
We now have api functions that can support compiling simplefb code as its own
module. Since this code is not part of the display functionality, extract it
to its own file.

Raspberry Pi is updated to accommodate the changes.

Signed-off-by: Nikita Kiryanov &lt;nikita@compulab.co.il&gt;
Acked-by: Stephen Warren &lt;swarren@wwwdotorg.org&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Tested-by: Bo Shen &lt;voice.shen@atmel.com&gt;
Tested-by: Josh Wu &lt;josh.wu@atmel.com&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Cc: Anatolij Gustschin &lt;agust@denx.de&gt;
Cc: Stephen Warren &lt;swarren@wwwdotorg.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We now have api functions that can support compiling simplefb code as its own
module. Since this code is not part of the display functionality, extract it
to its own file.

Raspberry Pi is updated to accommodate the changes.

Signed-off-by: Nikita Kiryanov &lt;nikita@compulab.co.il&gt;
Acked-by: Stephen Warren &lt;swarren@wwwdotorg.org&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Tested-by: Bo Shen &lt;voice.shen@atmel.com&gt;
Tested-by: Josh Wu &lt;josh.wu@atmel.com&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Cc: Anatolij Gustschin &lt;agust@denx.de&gt;
Cc: Stephen Warren &lt;swarren@wwwdotorg.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lcd: rename bitmap_plot to better represent its functionality</title>
<updated>2015-02-10T12:30:49+00:00</updated>
<author>
<name>Nikita Kiryanov</name>
<email>nikita@compulab.co.il</email>
</author>
<published>2015-02-03T11:32:30+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=bf21a5deb9614898b1f9f12292950ee55f72bedf'/>
<id>bf21a5deb9614898b1f9f12292950ee55f72bedf</id>
<content type='text'>
The name "bitmap_plot" is misleading because it implies that this is a generic
function capable of dealing with any bitmap, but its implementation only works
with the logo data.

Rename the function to better reflect this.

Signed-off-by: Nikita Kiryanov &lt;nikita@compulab.co.il&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Tested-by: Bo Shen &lt;voice.shen@atmel.com&gt;
Tested-by: Josh Wu &lt;josh.wu@atmel.com&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Cc: Anatolij Gustschin &lt;agust@denx.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The name "bitmap_plot" is misleading because it implies that this is a generic
function capable of dealing with any bitmap, but its implementation only works
with the logo data.

Rename the function to better reflect this.

Signed-off-by: Nikita Kiryanov &lt;nikita@compulab.co.il&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Tested-by: Bo Shen &lt;voice.shen@atmel.com&gt;
Tested-by: Josh Wu &lt;josh.wu@atmel.com&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Cc: Anatolij Gustschin &lt;agust@denx.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lcd: various cleanups</title>
<updated>2015-02-10T12:30:20+00:00</updated>
<author>
<name>Nikita Kiryanov</name>
<email>nikita@compulab.co.il</email>
</author>
<published>2015-02-03T11:32:29+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=c8d2febcc7e328d1c4bb11131ecd0b9cbab2f4fb'/>
<id>c8d2febcc7e328d1c4bb11131ecd0b9cbab2f4fb</id>
<content type='text'>
This cleanup mostly focuses on removing unnecessary whitespace and comments
which are superfluous and/or do not conform to the coding style.

Signed-off-by: Nikita Kiryanov &lt;nikita@compulab.co.il&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Tested-by: Bo Shen &lt;voice.shen@atmel.com&gt;
Tested-by: Josh Wu &lt;josh.wu@atmel.com&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Cc: Anatolij Gustschin &lt;agust@denx.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This cleanup mostly focuses on removing unnecessary whitespace and comments
which are superfluous and/or do not conform to the coding style.

Signed-off-by: Nikita Kiryanov &lt;nikita@compulab.co.il&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Tested-by: Bo Shen &lt;voice.shen@atmel.com&gt;
Tested-by: Josh Wu &lt;josh.wu@atmel.com&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Cc: Anatolij Gustschin &lt;agust@denx.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lcd: remove unused includes</title>
<updated>2015-02-10T12:29:44+00:00</updated>
<author>
<name>Nikita Kiryanov</name>
<email>nikita@compulab.co.il</email>
</author>
<published>2015-02-03T11:32:28+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=8ddfe2fad806b6d1bac66ec1f28695690af50ab0'/>
<id>8ddfe2fad806b6d1bac66ec1f28695690af50ab0</id>
<content type='text'>
Remove unused includes.

Signed-off-by: Nikita Kiryanov &lt;nikita@compulab.co.il&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Tested-by: Bo Shen &lt;voice.shen@atmel.com&gt;
Tested-by: Josh Wu &lt;josh.wu@atmel.com&gt;
Cc: Bo Shen &lt;voice.shen@atmel.com&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Cc: Anatolij Gustschin &lt;agust@denx.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove unused includes.

Signed-off-by: Nikita Kiryanov &lt;nikita@compulab.co.il&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Tested-by: Bo Shen &lt;voice.shen@atmel.com&gt;
Tested-by: Josh Wu &lt;josh.wu@atmel.com&gt;
Cc: Bo Shen &lt;voice.shen@atmel.com&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Cc: Anatolij Gustschin &lt;agust@denx.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lcd: introduce lcd_set_cmap</title>
<updated>2015-02-10T12:29:02+00:00</updated>
<author>
<name>Nikita Kiryanov</name>
<email>nikita@compulab.co.il</email>
</author>
<published>2015-02-03T11:32:27+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=0b29a8969e918d6c09d0798d381cf74594bdf3a0'/>
<id>0b29a8969e918d6c09d0798d381cf74594bdf3a0</id>
<content type='text'>
Reduce the lcd_display_bitmap #ifdef complexity by extracting Atmel-specific
code for setting cmap for bitmap images into a new function lcd_set_cmap().
A default version is implemented with the remainder of the code.

Signed-off-by: Nikita Kiryanov &lt;nikita@compulab.co.il&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Tested-by: Bo Shen &lt;voice.shen@atmel.com&gt;
Tested-by: Josh Wu &lt;josh.wu@atmel.com&gt;
Cc: Bo Shen &lt;voice.shen@atmel.com&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Cc: Anatolij Gustschin &lt;agust@denx.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reduce the lcd_display_bitmap #ifdef complexity by extracting Atmel-specific
code for setting cmap for bitmap images into a new function lcd_set_cmap().
A default version is implemented with the remainder of the code.

Signed-off-by: Nikita Kiryanov &lt;nikita@compulab.co.il&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Tested-by: Bo Shen &lt;voice.shen@atmel.com&gt;
Tested-by: Josh Wu &lt;josh.wu@atmel.com&gt;
Cc: Bo Shen &lt;voice.shen@atmel.com&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Cc: Anatolij Gustschin &lt;agust@denx.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lcd: logo: move generic cmap setting to lcd_logo_set_cmap()</title>
<updated>2015-02-10T12:28:30+00:00</updated>
<author>
<name>Nikita Kiryanov</name>
<email>nikita@compulab.co.il</email>
</author>
<published>2015-02-03T11:32:26+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=2306457c4534d5cbadb834a2a185db3ef38e12c8'/>
<id>2306457c4534d5cbadb834a2a185db3ef38e12c8</id>
<content type='text'>
Get rid of platform-specific #ifdefs in bitmap_plot() by moving the generic
case of setting cmap into the weak lcd_logo_set_cmap().

Signed-off-by: Nikita Kiryanov &lt;nikita@compulab.co.il&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Tested-by: Bo Shen &lt;voice.shen@atmel.com&gt;
Tested-by: Josh Wu &lt;josh.wu@atmel.com&gt;
Cc: Bo Shen &lt;voice.shen@atmel.com&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Cc: Anatolij Gustschin &lt;agust@denx.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Get rid of platform-specific #ifdefs in bitmap_plot() by moving the generic
case of setting cmap into the weak lcd_logo_set_cmap().

Signed-off-by: Nikita Kiryanov &lt;nikita@compulab.co.il&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Tested-by: Bo Shen &lt;voice.shen@atmel.com&gt;
Tested-by: Josh Wu &lt;josh.wu@atmel.com&gt;
Cc: Bo Shen &lt;voice.shen@atmel.com&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Cc: Anatolij Gustschin &lt;agust@denx.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lcd: mpc823: move mpc823-specific lcd_logo_set_cmap code to mpc8xx_lcd.c</title>
<updated>2015-02-10T12:27:58+00:00</updated>
<author>
<name>Nikita Kiryanov</name>
<email>nikita@compulab.co.il</email>
</author>
<published>2015-02-03T11:32:25+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=0ee261f6d3f387a33687bff29342e9321e2f8194'/>
<id>0ee261f6d3f387a33687bff29342e9321e2f8194</id>
<content type='text'>
Reduce the bitmap_plot #ifdef complexity by extracting MPC823-specific code for
setting cmap into its own implementation of lcd_logo_set_cmap(), implemented in
mpc8xx_lcd.c. In the MPC823 implementation, ARRAY_SIZE(bmp_logo_palette) is
switched for BMP_LOGO_COLORS to avoid having to include bmp_logo_data.h, which
would cause a compilation error because the logo data and palette arrays would
be defined twice.

This is a step towards cleaning bitmap_plot() of platform-specific code.

Signed-off-by: Nikita Kiryanov &lt;nikita@compulab.co.il&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Tested-by: Bo Shen &lt;voice.shen@atmel.com&gt;
Tested-by: Josh Wu &lt;josh.wu@atmel.com&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Cc: Anatolij Gustschin &lt;agust@denx.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reduce the bitmap_plot #ifdef complexity by extracting MPC823-specific code for
setting cmap into its own implementation of lcd_logo_set_cmap(), implemented in
mpc8xx_lcd.c. In the MPC823 implementation, ARRAY_SIZE(bmp_logo_palette) is
switched for BMP_LOGO_COLORS to avoid having to include bmp_logo_data.h, which
would cause a compilation error because the logo data and palette arrays would
be defined twice.

This is a step towards cleaning bitmap_plot() of platform-specific code.

Signed-off-by: Nikita Kiryanov &lt;nikita@compulab.co.il&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Tested-by: Bo Shen &lt;voice.shen@atmel.com&gt;
Tested-by: Josh Wu &lt;josh.wu@atmel.com&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Cc: Anatolij Gustschin &lt;agust@denx.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lcd: atmel: introduce lcd_logo_set_cmap</title>
<updated>2015-02-10T12:27:28+00:00</updated>
<author>
<name>Nikita Kiryanov</name>
<email>nikita@compulab.co.il</email>
</author>
<published>2015-02-03T11:32:24+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a02e9481396bbd831d9bd970515f277de516fa28'/>
<id>a02e9481396bbd831d9bd970515f277de516fa28</id>
<content type='text'>
Reduce the bitmap_plot #ifdef complexity by extracting Atmel-specific code for
setting cmap into a new function lcd_logo_set_cmap(), which is implemented in
atmel_lcdfb driver and defined as part of common/lcd.c api with a weak dummy
version. In the Atmel implementation, ARRAY_SIZE(bmp_logo_palette) is
switched for BMP_LOGO_COLORS to avoid having to include bmp_logo_data.h, which
would cause a compilation error because the logo data and palette arrays would
be defined twice.

This is a step towards cleaning bitmap_plot() of platform-specific code.

Signed-off-by: Nikita Kiryanov &lt;nikita@compulab.co.il&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Tested-by: Bo Shen &lt;voice.shen@atmel.com&gt;
Tested-by: Josh Wu &lt;josh.wu@atmel.com&gt;
Cc: Bo Shen &lt;voice.shen@atmel.com&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Cc: Anatolij Gustschin &lt;agust@denx.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reduce the bitmap_plot #ifdef complexity by extracting Atmel-specific code for
setting cmap into a new function lcd_logo_set_cmap(), which is implemented in
atmel_lcdfb driver and defined as part of common/lcd.c api with a weak dummy
version. In the Atmel implementation, ARRAY_SIZE(bmp_logo_palette) is
switched for BMP_LOGO_COLORS to avoid having to include bmp_logo_data.h, which
would cause a compilation error because the logo data and palette arrays would
be defined twice.

This is a step towards cleaning bitmap_plot() of platform-specific code.

Signed-off-by: Nikita Kiryanov &lt;nikita@compulab.co.il&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Tested-by: Bo Shen &lt;voice.shen@atmel.com&gt;
Tested-by: Josh Wu &lt;josh.wu@atmel.com&gt;
Cc: Bo Shen &lt;voice.shen@atmel.com&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Cc: Anatolij Gustschin &lt;agust@denx.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lcd: mpc8xx: move mpc823-specific fb_put_byte to mpc8xx_lcd.c</title>
<updated>2015-02-10T12:26:53+00:00</updated>
<author>
<name>Nikita Kiryanov</name>
<email>nikita@compulab.co.il</email>
</author>
<published>2015-02-03T11:32:23+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=27fad01b7fca1ed9ae946ced37c3d4bde828ba14'/>
<id>27fad01b7fca1ed9ae946ced37c3d4bde828ba14</id>
<content type='text'>
Reduce the amount of platform-specific code in common/lcd.c by moving MPC823
implementation of fb_put_byte() to mpc8xx_lcd.c. Since we must also have a
default implementation for everybody else, make the remainder of the code
into a weak function.

Signed-off-by: Nikita Kiryanov &lt;nikita@compulab.co.il&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Tested-by: Bo Shen &lt;voice.shen@atmel.com&gt;
Tested-by: Josh Wu &lt;josh.wu@atmel.com&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Cc: Anatolij Gustschin &lt;agust@denx.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reduce the amount of platform-specific code in common/lcd.c by moving MPC823
implementation of fb_put_byte() to mpc8xx_lcd.c. Since we must also have a
default implementation for everybody else, make the remainder of the code
into a weak function.

Signed-off-by: Nikita Kiryanov &lt;nikita@compulab.co.il&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Tested-by: Bo Shen &lt;voice.shen@atmel.com&gt;
Tested-by: Josh Wu &lt;josh.wu@atmel.com&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Cc: Anatolij Gustschin &lt;agust@denx.de&gt;
</pre>
</div>
</content>
</entry>
</feed>
