Skip to contentSkip to conversation

v5: create lib/tizen directory

PATCH Superseded Donghwa Lee 1 participant 1 message May 10, 2012 Kbuild

v1 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 v5: create lib/tizen directory

This directory includes tizen logo data, common tizen library and so on.

---
Changes for v4:
- remove get_tizen_hd_logo* functions and get data directly
- changes tizen hd logo data variables name
- get_tizen_logo_info() uses parameter that vidinfo_t *vid.

Changes for v3:
- create common get logo infomation function.
- define logo resolution

Changes for v2:
- create lib/tizen directory and moves logo data to lib/tizen.
- create common tizen library function.
- changes patch name from "LCD: add compressed 32bpp BMP image data" to crete lib/tizen directory

Changes for v1:
- moves to logo data from arch/arm to include/

 Makefile                       |    1 +
 include/libtizen.h             |   30 +
 lib/tizen/Makefile             |   46 +
 lib/tizen/tizen.c              |   40 +
 lib/tizen/tizen_hd_logo.h      | 5071 ++++++++++++++++++++++++++++++++++++++++
 lib/tizen/tizen_hd_logo_data.h |   30 +
 6 files changed, 5218 insertions(+), 0 deletions(-)
 create mode 100644 include/libtizen.h
 create mode 100644 lib/tizen/Makefile
 create mode 100644 lib/tizen/tizen.c
 create mode 100644 lib/tizen/tizen_hd_logo.h
 create mode 100644 lib/tizen/tizen_hd_logo_data.h
Makefile +1 -0
index 4ddf8d6..bde6cb2 100644
@@ -229,6 +229,7 @@ LIBS  = lib/libgeneric.o
 LIBS += lib/lzma/liblzma.o
 LIBS += lib/lzo/liblzo.o
 LIBS += lib/zlib/libz.o
+LIBS += lib/tizen/libtizen.o
 LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
 	"board/$(VENDOR)/common/lib$(VENDOR).o"; fi)
 LIBS += $(CPUDIR)/lib$(CPU).o
include/libtizen.h new file +30 -0
new file mode 100644
index 0000000..4e7916e
@@ -0,0 +1,30 @@
+/*
+ * (C) Copyright 2012 Samsung Electronics
+ * Donghwa Lee <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * aint with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ */
+
+#ifndef _LIBTIZEN_H_
+#define _LIBTIZEN_H_
+
+#define HD_RESOLUTION	0
+
+void get_tizen_logo_info(vidinfo_t *vid);
+
+#endif	/* _LIBTIZEN_H_ */
+
lib/tizen/Makefile new file +46 -0

46 lines not on this page · raw message

lib/tizen/tizen.c new file +40 -0
new file mode 100644
index 0000000..390f71c
@@ -0,0 +1,40 @@
+/*
+ * (C) Copyright 2012 Samsung Electronics
+ * Donghwa Lee <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * aint with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ */
+
+#include <common.h>
+#include <lcd.h>
+#include <libtizen.h>
+
+#include "tizen_hd_logo.h"
+#include "tizen_hd_logo_data.h"
+
+void get_tizen_logo_info(vidinfo_t *vid)
+{
+	switch (vid->resolution) {
+	case HD_RESOLUTION:
+		vid->logo_width = TIZEN_HD_LOGO_WIDTH;
+		vid->logo_height = TIZEN_HD_LOGO_HEIGHT;
+		vid->logo_addr = (ulong)tizen_hd_logo;
+		break;
+	default:
+		break;
+	}
+}
lib/tizen/tizen_hd_logo.h new file +5071 -0

2,877 lines not on this page · raw message

lib/tizen/tizen_hd_logo_data.h new file +30 -0
new file mode 100644
index 0000000..7d715b5

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.7.4.1

Part of the diff is not shown here. View the raw message.