summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjk7744.park <jk7744.park@samsung.com>2015-10-24 15:20:51 +0900
committerjk7744.park <jk7744.park@samsung.com>2015-10-24 15:20:51 +0900
commite789f8889ad746707ae603eedbe05c94d3473622 (patch)
tree84571a73d7c8918c4c4c31888a10372f4c8067c7
parentef2e0f73d1473079361ca9b2e7ba81c994128ac1 (diff)
downloadxserver-xorg-video-sc7727-tizen_2.4.tar.gz
xserver-xorg-video-sc7727-tizen_2.4.tar.bz2
xserver-xorg-video-sc7727-tizen_2.4.zip
-rw-r--r--AUTHORS4
-rw-r--r--COPYING18
-rw-r--r--ChangeLog0
-rw-r--r--LICENSE18
-rw-r--r--Makefile.am3
-rw-r--r--NEWS0
-rw-r--r--README67
-rwxr-xr-xautogen.sh12
-rw-r--r--configure.ac36
-rwxr-xr-xlib/sc7727/sec_drv.sobin0 -> 269824 bytes
-rwxr-xr-xlib/sc7730/sec_drv.sobin0 -> 269824 bytes
-rw-r--r--packaging/xorg-x11-drv-sc7727.spec51
12 files changed, 209 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
new file mode 100644
index 0000000..35b1c10
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1,4 @@
+SooChan Lim <sc1.lim@samsung.com>
+SangJin Lee <lsj119@samsung.com>
+Changyeon Lee <cyeon.lee@samsung.com>
+Junkeyong Kim <jk0430.kim@samsung.com>
diff --git a/COPYING b/COPYING
new file mode 100644
index 0000000..a8bb4fc
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,18 @@
+Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
+
+Any software product designated as "Samsung Proprietary Software," including
+computer software and may include associated media, printed materials, and
+"online" or electronic documentation ("SOFTWARE PRODUCT") is a copyrighted and
+proprietary property of SAMSUNG ELECTRONICS CO., LTD (“Samsung”).
+
+The SOFTWARE PRODUCT must
+(i) be used for Samsung’s approved business purposes only,
+(ii) not be contaminated by open source codes,
+(iii) must not be used in any ways that will require it to be disclosed or
+ licensed freely to third parties or public,
+(vi) must not be subject to reverse engineering, decompling or diassembling.
+
+Samsung does not grant the recipient any intellectual property rights,
+indemnities or warranties and takes on no obligations regarding the SOFTWARE
+PRODUCT except as otherwise agreed to under a separate written agreement with
+the recipient.
diff --git a/ChangeLog b/ChangeLog
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ChangeLog
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..a8bb4fc
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,18 @@
+Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
+
+Any software product designated as "Samsung Proprietary Software," including
+computer software and may include associated media, printed materials, and
+"online" or electronic documentation ("SOFTWARE PRODUCT") is a copyrighted and
+proprietary property of SAMSUNG ELECTRONICS CO., LTD (“Samsung”).
+
+The SOFTWARE PRODUCT must
+(i) be used for Samsung’s approved business purposes only,
+(ii) not be contaminated by open source codes,
+(iii) must not be used in any ways that will require it to be disclosed or
+ licensed freely to third parties or public,
+(vi) must not be subject to reverse engineering, decompling or diassembling.
+
+Samsung does not grant the recipient any intellectual property rights,
+indemnities or warranties and takes on no obligations regarding the SOFTWARE
+PRODUCT except as otherwise agreed to under a separate written agreement with
+the recipient.
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..2a4e481
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,3 @@
+exynos_drvdir = @moduledir@/drivers
+exynos_drv_DATA_7727 = $(top_srcdir)/lib/sc7727/sprd_drv.so
+exynos_drv_DATA_7730 = $(top_srcdir)/lib/sc7730/sprd_drv.so
diff --git a/NEWS b/NEWS
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/NEWS
diff --git a/README b/README
new file mode 100644
index 0000000..cf686cd
--- /dev/null
+++ b/README
@@ -0,0 +1,67 @@
+= Introduction
+
+This is graphics driver for the Spreadtrum SC6820 & SC6821 processors.
+
+= Building
+
+== Dependencies
+
+You will need the following X development dependencies installed on your
+development system before building this package:
+
+xorg-server > 1.4, xproto, fontsproto, renderproto
+
+== Configuration
+
+Type ./autogen.sh at the command line to automatically generate the
+confguration system.
+
+If you need to change some parameters to the configure script (such as
+prefix paths), you can re-run configure again after the autogen.sh
+script has completed. Make sure that you specify the correct host and
+build targets for your cross compiler. Here is an example:
+
+./configure --build=x86_64-linux --host=arm-linux-gnueabi --target=arm-linux-gnueabi --prefix=/usr/local/gcc/arm/arm-linux-gnueabi/
+
+This will configure the system to use the 'arm-linux-gnueabi-gcc' compiler.
+
+== Building
+
+After the driver has been configured, it can be built by typing 'make' at
+the command line.
+
+= Using the driver
+
+After building, the driver is located at
+src/.libs/sprd_drv.so
+
+This can be copied diretly to your target. All X video drivers are located
+in 'usr/lib/xorg/modules/drivers' on target. Copy the .so there.
+
+To use the driver, you need to configure it in /etc/X11/xorg.conf.
+Add the following section to your xorg.conf file:
+
+Section "Device"
+ Identifier "SPRD"
+ Driver "sprd"
+ Option "fb" "/dev/fb0"
+EndSection
+
+To change which framebuffer device you want to use, modify the "fb"
+option to point at the device file you want to run on.
+
+Next, you need to add the "SPRD" device to the screen:
+
+Section "Screen"
+ ...
+ Device "SPRD"
+EndSection
+
+You do not need to configure a monitor or a mode size -the mode size is
+determined automatically and cannot be changed.
+
+Finally, restart X. In the log you should see the following:
+
+(II) sprd: Driver for Spreadtrum : SC6821
+
+That indicates that the sprd driver has been loaded.
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 0000000..904cd67
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,12 @@
+#! /bin/sh
+
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+ORIGDIR=`pwd`
+cd $srcdir
+
+autoreconf -v --install || exit 1
+cd $ORIGDIR || exit $?
+
+$srcdir/configure --enable-maintainer-mode "$@"
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..d4ddbe6
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,36 @@
+# -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ(2.61)
+AC_INIT([xf86-video-sprd],
+ 1.0.0,
+ [],
+ xf86-video-sprd)
+
+# Checks for programs.
+AC_PROG_INSTALL
+AC_PROG_MAKE_SET
+
+AC_CONFIG_SRCDIR([Makefile.am])
+AM_CONFIG_HEADER([config.h])
+AC_CONFIG_AUX_DIR(.)
+
+AM_INIT_AUTOMAKE([dist-bzip2])
+
+AM_MAINTAINER_MODE
+
+# Checks for programs.
+AC_DISABLE_STATIC
+AC_PROG_LIBTOOL
+AC_PROG_CC
+
+AC_ARG_WITH(xorg-module-dir,
+ AC_HELP_STRING([--with-xorg-module-dir=DIR],
+ [Default xorg module directory [[default=$libdir/xorg/modules]]]),
+ [moduledir="$withval"],
+ [moduledir="$libdir/xorg/modules"])
+
+AC_SUBST([moduledir])
+
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
diff --git a/lib/sc7727/sec_drv.so b/lib/sc7727/sec_drv.so
new file mode 100755
index 0000000..c9730c7
--- /dev/null
+++ b/lib/sc7727/sec_drv.so
Binary files differ
diff --git a/lib/sc7730/sec_drv.so b/lib/sc7730/sec_drv.so
new file mode 100755
index 0000000..bf5f099
--- /dev/null
+++ b/lib/sc7730/sec_drv.so
Binary files differ
diff --git a/packaging/xorg-x11-drv-sc7727.spec b/packaging/xorg-x11-drv-sc7727.spec
new file mode 100644
index 0000000..89e14df
--- /dev/null
+++ b/packaging/xorg-x11-drv-sc7727.spec
@@ -0,0 +1,51 @@
+# >> macros
+# << macros
+
+Name: xorg-x11-drv-sc7727
+Summary: X.Org X server driver for sprd
+Version: 0.0.20
+Release: 1
+ExclusiveArch: %arm
+Group: System/X Hardware Support
+License: Samsung
+Source0: %{name}-%{version}.tar.gz
+BuildRequires: prelink
+
+%if ("%{tizen_target_name}" != "Z130H" && "%{tizen_target_name}" != "Z300H")
+Excludearch: %arm
+%endif
+
+%description
+This package provides the driver for the Samsung display device SPRD
+
+
+%prep
+%setup -q
+
+
+%build
+
+%reconfigure
+
+make %{?jobs:-j%jobs}
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}/usr/share/license
+cp -af COPYING %{buildroot}/usr/share/license/%{name}
+mkdir -p %{buildroot}%{_libdir}/xorg/modules/drivers
+%if ("%{tizen_target_name}" == "Z130H")
+cp lib/sc7727/sec_drv.so %{buildroot}%{_libdir}/xorg/modules/drivers/
+%endif
+%if ("%{tizen_target_name}" == "Z300H")
+cp lib/sc7730/sec_drv.so %{buildroot}%{_libdir}/xorg/modules/drivers/
+%endif
+%make_install
+
+execstack -c %{buildroot}%{_libdir}/xorg/modules/drivers/sec_drv.so
+
+%files
+%defattr(-,root,root,-)
+/usr/share/license/%{name}
+%{_libdir}/xorg/modules/drivers/*.so
+