diff options
author | jk7744.park <jk7744.park@samsung.com> | 2015-10-24 15:20:51 +0900 |
---|---|---|
committer | jk7744.park <jk7744.park@samsung.com> | 2015-10-24 15:20:51 +0900 |
commit | e789f8889ad746707ae603eedbe05c94d3473622 (patch) | |
tree | 84571a73d7c8918c4c4c31888a10372f4c8067c7 | |
parent | ef2e0f73d1473079361ca9b2e7ba81c994128ac1 (diff) | |
download | xserver-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 |
tizen 2.4 releasetizen_2.4_mobile_releasesubmit/tizen_2.4/20151028.062352accepted/tizen/2.4/mobile/20151029.042219tizen_2.4accepted/tizen_2.4_mobile
-rw-r--r-- | AUTHORS | 4 | ||||
-rw-r--r-- | COPYING | 18 | ||||
-rw-r--r-- | ChangeLog | 0 | ||||
-rw-r--r-- | LICENSE | 18 | ||||
-rw-r--r-- | Makefile.am | 3 | ||||
-rw-r--r-- | NEWS | 0 | ||||
-rw-r--r-- | README | 67 | ||||
-rwxr-xr-x | autogen.sh | 12 | ||||
-rw-r--r-- | configure.ac | 36 | ||||
-rwxr-xr-x | lib/sc7727/sec_drv.so | bin | 0 -> 269824 bytes | |||
-rwxr-xr-x | lib/sc7730/sec_drv.so | bin | 0 -> 269824 bytes | |||
-rw-r--r-- | packaging/xorg-x11-drv-sc7727.spec | 51 |
12 files changed, 209 insertions, 0 deletions
@@ -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> @@ -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 @@ -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 @@ -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 Binary files differnew file mode 100755 index 0000000..c9730c7 --- /dev/null +++ b/lib/sc7727/sec_drv.so diff --git a/lib/sc7730/sec_drv.so b/lib/sc7730/sec_drv.so Binary files differnew file mode 100755 index 0000000..bf5f099 --- /dev/null +++ b/lib/sc7730/sec_drv.so 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 + |