2 * Copyright (C) 2013 Samsung Electronics
3 * Przemyslaw Marczak <p.marczak@samsung.com>
5 * SPDX-License-Identifier: GPL-2.0+
11 #include <samsung/misc.h>
19 addr = panel_info.logo_addr;
21 error("There is no logo data.");
25 if (panel_info.vl_width >= panel_info.logo_width) {
26 x = ((panel_info.vl_width - panel_info.logo_width) >> 1);
27 x += panel_info.logo_x_offset; /* For X center align */
30 printf("Warning: image width is bigger than display width\n");
33 if (panel_info.vl_height >= panel_info.logo_height) {
34 y = ((panel_info.vl_height - panel_info.logo_height) >> 1);
35 y += panel_info.logo_y_offset; /* For Y center align */
38 printf("Warning: image height is bigger than display height\n");
41 bmp_display(addr, x, y);
43 #endif /* CONFIG_CMD_BMP */