Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Donghwa Lee | fa13491 | 2012-05-10 12:02:55 +0900 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2012 Samsung Electronics |
| 4 | * Donghwa Lee <dh09.lee@samsung.com> |
Donghwa Lee | fa13491 | 2012-05-10 12:02:55 +0900 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <common.h> |
| 8 | #include <lcd.h> |
| 9 | #include <libtizen.h> |
| 10 | |
Przemyslaw Marczak | 02f4a09 | 2013-11-29 18:30:43 +0100 | [diff] [blame] | 11 | #include "tizen_logo_16bpp.h" |
| 12 | #include "tizen_logo_16bpp_gzip.h" |
Donghwa Lee | fa13491 | 2012-05-10 12:02:55 +0900 | [diff] [blame] | 13 | |
Simon Glass | 238ba5c | 2016-02-21 21:08:52 -0700 | [diff] [blame] | 14 | #ifdef CONFIG_LCD |
Donghwa Lee | fa13491 | 2012-05-10 12:02:55 +0900 | [diff] [blame] | 15 | void get_tizen_logo_info(vidinfo_t *vid) |
| 16 | { |
Przemyslaw Marczak | 02f4a09 | 2013-11-29 18:30:43 +0100 | [diff] [blame] | 17 | switch (vid->vl_bpix) { |
| 18 | case 4: |
| 19 | vid->logo_width = TIZEN_LOGO_16BPP_WIDTH; |
| 20 | vid->logo_height = TIZEN_LOGO_16BPP_HEIGHT; |
| 21 | vid->logo_x_offset = TIZEN_LOGO_16BPP_X_OFFSET; |
| 22 | vid->logo_y_offset = TIZEN_LOGO_16BPP_Y_OFFSET; |
| 23 | #if defined(CONFIG_VIDEO_BMP_GZIP) |
| 24 | vid->logo_addr = (ulong)tizen_logo_16bpp_gzip; |
| 25 | #else |
| 26 | vid->logo_addr = (ulong)tizen_logo_16bpp; |
| 27 | #endif |
Donghwa Lee | fa13491 | 2012-05-10 12:02:55 +0900 | [diff] [blame] | 28 | break; |
| 29 | default: |
Przemyslaw Marczak | 02f4a09 | 2013-11-29 18:30:43 +0100 | [diff] [blame] | 30 | vid->logo_addr = 0; |
Donghwa Lee | fa13491 | 2012-05-10 12:02:55 +0900 | [diff] [blame] | 31 | break; |
| 32 | } |
| 33 | } |
Simon Glass | 238ba5c | 2016-02-21 21:08:52 -0700 | [diff] [blame] | 34 | #endif |