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