blob: 916b2597569cc205ef5a39329f3e6417b3f85c15 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Donghwa Leefa134912012-05-10 12:02:55 +09002/*
3 * (C) Copyright 2012 Samsung Electronics
4 * Donghwa Lee <dh09.lee@samsung.com>
Donghwa Leefa134912012-05-10 12:02:55 +09005 */
6
7#include <common.h>
8#include <lcd.h>
9#include <libtizen.h>
10
Przemyslaw Marczak02f4a092013-11-29 18:30:43 +010011#include "tizen_logo_16bpp.h"
12#include "tizen_logo_16bpp_gzip.h"
Donghwa Leefa134912012-05-10 12:02:55 +090013
Simon Glass238ba5c2016-02-21 21:08:52 -070014#ifdef CONFIG_LCD
Donghwa Leefa134912012-05-10 12:02:55 +090015void get_tizen_logo_info(vidinfo_t *vid)
16{
Przemyslaw Marczak02f4a092013-11-29 18:30:43 +010017 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 Leefa134912012-05-10 12:02:55 +090028 break;
29 default:
Przemyslaw Marczak02f4a092013-11-29 18:30:43 +010030 vid->logo_addr = 0;
Donghwa Leefa134912012-05-10 12:02:55 +090031 break;
32 }
33}
Simon Glass238ba5c2016-02-21 21:08:52 -070034#endif