platform/kernel/linux-exynos.git
7 years agolocal/pci: pcie-designware: support arm64 without pci_sys_data
Jaehoon Chung [Wed, 8 Apr 2015 11:36:59 +0000 (20:36 +0900)]
local/pci: pcie-designware: support arm64 without pci_sys_data

pci_sys_data has the dependent with arm architecture.
So it caused compiler error for ARM64.
This patch try to reduce the dependency for arm architecture.(WIP)

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agolocal/pci: pci-exynos5433: Add workaround code to control bcm4358 device
Jaehoon Chung [Wed, 8 Apr 2015 06:30:53 +0000 (15:30 +0900)]
local/pci: pci-exynos5433: Add workaround code to control bcm4358 device

To control bcm4358 device driver, add the workaround code.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agolocal/PCI: Kconfig: add CONFIG_PCI_EXYNOS5433 for exynos5433 pcie controller
Jaehoon Chung [Tue, 27 Jan 2015 01:09:46 +0000 (10:09 +0900)]
local/PCI: Kconfig: add CONFIG_PCI_EXYNOS5433 for exynos5433 pcie controller

PCI_EXYNOS5433 config depends on ARCH_EXYNOS.
(to use PCIe at exynos5433 board.)

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agolocal/pci: pci-exynos5433: add host controller driver for exynos5433
Jaehoon Chung [Wed, 25 Mar 2015 07:36:20 +0000 (16:36 +0900)]
local/pci: pci-exynos5433: add host controller driver for exynos5433

To support exynos5433 added the pci-exynos5433.c file.(WIP)

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agolocal/pci: Makefile: build setup-irq.c for exynos
Jaehoon Chung [Tue, 24 Mar 2015 01:06:49 +0000 (10:06 +0900)]
local/pci: Makefile: build setup-irq.c for exynos

To build setup-irq.c, modified the Makefile.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agolocal/include: add the wlan_plat header file
Jaehoon Chung [Fri, 13 Feb 2015 10:35:03 +0000 (19:35 +0900)]
local/include: add the wlan_plat header file

This header file should be used for Wifi.
(This patch is workaround)

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agolocal/arm64: dts: exynos5433-pinctrl: add cfg_wlanen for wlan
Jaehoon Chung [Thu, 12 Mar 2015 05:56:40 +0000 (14:56 +0900)]
local/arm64: dts: exynos5433-pinctrl: add cfg_wlanen for wlan

add pinctrl for "cfg_wlanen"

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agolocal/net: bcm4358: replace strnicmp with strncasecmp
Jaehoon Chung [Thu, 12 Mar 2015 06:33:27 +0000 (15:33 +0900)]
local/net: bcm4358: replace strnicmp with strncasecmp

Replace the strnicmp with strncasemcp.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agolocal/net: bcm4358: use nl80211 attribute instead of station_info_flags
Jaehoon Chung [Thu, 12 Mar 2015 05:58:28 +0000 (14:58 +0900)]
local/net: bcm4358: use nl80211 attribute instead of station_info_flags

Use the nl80211 attribute instead of station_info_flags.
(Refer to below patch)

commit 319090bf6c75e3ad42a8c74973be5e78ae4f948f
Author:     Johannes Berg <johannes.berg@intel.com>
AuthorDate: Mon Nov 17 14:08:11 2014 +0100
Commit:     Johannes Berg <johannes.berg@intel.com>
CommitDate: Thu Jan 8 15:28:10 2015 +0100

    cfg80211: remove enum station_info_flags

    This is really just duplicating the list of information that's
    already available in the nl80211 attribute, so remove the list.
    Two small changes are needed:
     * remove STATION_INFO_ASSOC_REQ_IES complete, but the length
       (assoc_req_ies_len) can be used instead
     * add NL80211_STA_INFO_RX_DROP_MISC which exists internally
       but not in nl80211 yet

    This gets rid of the duplicate maintenance of the two lists.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agolocal/net: bcm4358: add the exynos5433-tm2 board and version check
Jaehoon Chung [Tue, 10 Feb 2015 08:07:05 +0000 (17:07 +0900)]
local/net: bcm4358: add the exynos5433-tm2 board and version check

Add the ARCH_EXYNOS5433 to use the exynos5433-tm2 board.
And checking linux version at build time.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
[Remove EXT_VENDOR for 3.18 and later version to build]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agolocal/net: bcm4358: Add bcmdhd4358 driver
Jaehoon Chung [Fri, 6 Feb 2015 04:20:25 +0000 (13:20 +0900)]
local/net: bcm4358: Add bcmdhd4358 driver

To support wifi, add bcmdhd4359 driver and necessary header file.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agolocal/clk: add gate_pcie and gate_pcie_phy and set CLK_INGNORE_UNUSED
Jaehoon Chung [Tue, 17 Feb 2015 08:42:10 +0000 (17:42 +0900)]
local/clk: add gate_pcie and gate_pcie_phy and set CLK_INGNORE_UNUSED

This patch is workaround for pcie.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agolocal/pci: pcie-designware: change return type for host_init() callback
Jaehoon Chung [Fri, 20 Mar 2015 06:26:51 +0000 (15:26 +0900)]
local/pci: pcie-designware: change return type for host_init() callback

host_init() can be failed.
If host_init() callback is failed, it has to fail probe.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agolocal/pci: pcie-designware: add #ifdef for ARM64
Jaehoon Chung [Fri, 20 Mar 2015 06:16:41 +0000 (15:16 +0900)]
local/pci: pcie-designware: add #ifdef for ARM64

Add #ifdef for ARM64.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agolocal/ARM64: dts: exynos5433-pinctrl: add the nodes relevant to pcie
Jaehoon Chung [Thu, 12 Feb 2015 02:03:01 +0000 (11:03 +0900)]
local/ARM64: dts: exynos5433-pinctrl: add the nodes relevant to pcie

Add the nodes relevant to pcie into pcintrl file.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agolocal/ARM64: exynos5433-pinctrl: remove the unused gpr3-7 into pcie node
Jaehoon Chung [Tue, 3 Feb 2015 02:33:27 +0000 (11:33 +0900)]
local/ARM64: exynos5433-pinctrl: remove the unused gpr3-7 into pcie node

Remove the unused gpr3-7 into pcie node.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agolocal/pci: pcie-designware: include the interrupt header file
Jaehoon Chung [Fri, 20 Mar 2015 05:06:31 +0000 (14:06 +0900)]
local/pci: pcie-designware: include the interrupt header file

This patch included the interrupt header file.(#include <linux/interrupt.h>)

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agoLOCAL / arm64: dts: Change compatible of thermistor on TM2 board
Beomho Seo [Tue, 28 Apr 2015 10:48:56 +0000 (19:48 +0900)]
LOCAL / arm64: dts: Change compatible of thermistor on TM2 board

This patch change correctly compatible of thermistor
on Exynos5433 based TM2.

Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
7 years agohwmon: ntc_thermistor: Support ncpXXwf104 thermistor
Beomho Seo [Tue, 28 Apr 2015 10:47:01 +0000 (19:47 +0900)]
hwmon: ntc_thermistor: Support ncpXXwf104 thermistor

This patch adds support for the ntc thermistor NCPXXWF104 serise.

Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
7 years agoarm64: dts: exynos: Reduce the clock-latency of big.LITTLE core
Chanwoo Choi [Wed, 29 Apr 2015 08:21:50 +0000 (17:21 +0900)]
arm64: dts: exynos: Reduce the clock-latency of big.LITTLE core

This patch reduces the clock-latency of big.LITTLE core because too much
clock-latency has the direct influence of determining the sampling rate
of CPUFREQ governor. After applied this patch, the sampling rate is 100ms
from 1000ms.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agolocal/mmc: dw_mmc: exynos: use the bits relevant to clock tuning
Jaehoon Chung [Wed, 29 Apr 2015 06:44:35 +0000 (15:44 +0900)]
local/mmc: dw_mmc: exynos: use the bits relevant to clock tuning

There are bits relevant to clock tuning at CLKSEL register.
BIT[31:30] - CORE_CLK_TUNING
BIT[23:22] - DRV_CLK_TUNING
BIT[7:6] - SAMPLE_CLK_TUNING

These bits should be affected when card is tuning.
(In future, need to find the optimal values.)
At now, it used temporary these values.
(CORE_CLK_TUNING - 0x3, SAMPLE_CLK_TUNING - 0x1)

After sampling clock, these value have to set to 0.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agolocal/mmc: dw_mmc: exynos: Change SAMPLE_CLK_TUNING bit
Jaehoon Chung [Wed, 29 Apr 2015 02:26:51 +0000 (11:26 +0900)]
local/mmc: dw_mmc: exynos: Change SAMPLE_CLK_TUNING bit

This bit used bit[6:7].
We can assume the below values.
00 - 200ps
01 - 300ps
10 - 400ps
11 - 500ps
This bit is set to maximum value(0x3) to use 500ps.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agolocal/mmc: dw_mmc: exynos: Add SAMPLE_CLK_TUNING bit for eMMC
Jaehoon Chung [Tue, 28 Apr 2015 09:37:57 +0000 (18:37 +0900)]
local/mmc: dw_mmc: exynos: Add SAMPLE_CLK_TUNING bit for eMMC

SAMPLE_CLK_TUNING bits is used for sample clock fine grain adjustment.
(Single stemp is approximately 200~500ps.)

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agoLOCAL / input: keyboard: support touch led on cypress-touchkey
Beomho Seo [Tue, 21 Apr 2015 11:17:51 +0000 (20:17 +0900)]
LOCAL / input: keyboard: support touch led on cypress-touchkey

This patch add relevant led on cypress touchkey.

Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
7 years agoLOCAL / input: touchscreen: Add multitouch protocol on fts_ts driver
Beomho Seo [Fri, 24 Apr 2015 10:30:45 +0000 (19:30 +0900)]
LOCAL / input: touchscreen: Add multitouch protocol on fts_ts driver

This patch add multitouch protocol on fts ts touchscreen driver.

Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
7 years agoLOCAL / arm64: dts: exynos5433: Change LDO33 on Exynos5433 based TM2
Beomho Seo [Fri, 24 Apr 2015 10:44:05 +0000 (19:44 +0900)]
LOCAL / arm64: dts: exynos5433: Change LDO33 on Exynos5433 based TM2

This patch change regulator-min-microvolt and add regulator-ramp-delay
at VTOUCH_LED_3.3V regulator node. It is controlled by cypress touchkey
for adjust brightness.

Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
7 years agoarm64: dts: exynos5433: Add init and sleep state pinctrl for Flash LED
Ingi Kim [Wed, 22 Apr 2015 08:08:31 +0000 (17:08 +0900)]
arm64: dts: exynos5433: Add init and sleep state pinctrl for Flash LED

This patch sets pinctrl state for Flash LED when it is initial and sleep

Signed-off-by: Ingi Kim <ingi2.kim@samsung.com>
7 years agoLOCAL / arm64: fpsimd: Restore FPSIMD state always.
Jonghwa Lee [Thu, 23 Apr 2015 12:47:40 +0000 (21:47 +0900)]
LOCAL / arm64: fpsimd: Restore FPSIMD state always.

From patch '005f78cd : arm64: defer reloading a task's FPSIMD state~'
it restores FPSIMD state conditionally. However this also blocks
restoring when CPU wakes up from sleep if condition's satisfied.
It needs to restore the state always when system wakes from suspend.
Otherwise it causes unexpected result when it returns to userland.
This patch stops conditional restoring temporary until it is resolved.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agoLOCAL / arm64: dts: Change bluetooth node on Exynos5433-based TM2
Beomho Seo [Thu, 23 Apr 2015 06:48:32 +0000 (15:48 +0900)]
LOCAL / arm64: dts: Change bluetooth node on Exynos5433-based TM2

This patch changes the bluetooth node to using prefix-vendor and
bluetooth chip name on Exynos5433-based TM2 board.

Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
7 years agoLOCAL / net: rfkill: rfkill-bcm: Change correctly compatible
Beomho Seo [Thu, 23 Apr 2015 06:41:34 +0000 (15:41 +0900)]
LOCAL / net: rfkill: rfkill-bcm: Change correctly compatible

This patch changes the compatible to using prefix-vendor and bluetooth
chip name.

Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
7 years agoiommu: exynos: add system suspend/resume support
Marek Szyprowski [Wed, 22 Apr 2015 13:34:43 +0000 (15:34 +0200)]
iommu: exynos: add system suspend/resume support

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agomedia: s5p-mfc: add additional check for incorrect memory configuration
Marek Szyprowski [Mon, 20 Apr 2015 13:27:33 +0000 (15:27 +0200)]
media: s5p-mfc: add additional check for incorrect memory configuration

MFC hardware is known to trash random memory if it is configured with
buffer, which have lower dma addresses than the configured base address.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agomedia: s5p-mfc: add return value check in mfc_sys_init_cmd
Marek Szyprowski [Mon, 20 Apr 2015 13:26:06 +0000 (15:26 +0200)]
media: s5p-mfc: add return value check in mfc_sys_init_cmd

alloc_dev_context_buffer method might fail, so add proper return value
check.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agos5p-jpeg: add support for exynos5433 clocks
Marek Szyprowski [Mon, 20 Apr 2015 12:29:15 +0000 (14:29 +0200)]
s5p-jpeg: add support for exynos5433 clocks

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agos5p-jpeg: add support for 5433
Andrzej Pietrasiewicz [Fri, 10 Apr 2015 11:21:28 +0000 (13:21 +0200)]
s5p-jpeg: add support for 5433

JPEG IP found in Exynos5433 is similar to what is in Exynos4, but
there are some subtle differences which this patch takes into account.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
7 years agos5p-jpeg: Fix crash in jpeg isr due to multiple interrupts.
Tony K Nadackal [Wed, 17 Dec 2014 06:25:12 +0000 (11:55 +0530)]
s5p-jpeg: Fix crash in jpeg isr due to multiple interrupts.

In case of corrupt images, multiple interrupts may occur
due to different error scenarios.

Since we are removing the src and dest buffers in the first
interrupt itself, crash occurs in the second error interrupts.

Disable the global interrupt before we start processing
the interrupt avoid the crash.

Disable System interrupt in isr to avoid the crash below.

Unable to handle kernel NULL pointer dereference at virtual address 000000c8
pgd = ffffffc0007db000
[000000c8] *pgd=00000000fb006003, *pud=00000000fb006003, *pmd=00000000fb007003, *pte=0060000011001707
Internal error: Oops: 96000007 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.18.0-next-20141210+ #22
Hardware name: Samsung Exynos7 Espresso board based on EXYNOS7 (DT)
task: ffffffc00075e5c0 ti: ffffffc00074c000 task.ti: ffffffc00074c000
PC is at exynos4_jpeg_irq+0x30/0x15c
LR is at exynos4_jpeg_irq+0x2c/0x15c
pc : [<ffffffc00040873c>] lr : [<ffffffc000408738>] pstate: 800001c5
sp : ffffffc00074fc60
x29: ffffffc00074fc60 x28: 0000004040000000
x27: ffffffc000673928 x26: ffffffc000673940
x25: ffffffc0007a030c x24: ffffffc0bb20a400
x23: 0000000000000030 x22: ffffffc0ba56ba40
x21: 0000000000000000 x20: 0000000000000000
x19: ffffffc0ba56ba18 x18: 0000000000000000
x17: 0000000000000000 x16: ffffffc00018b508
x15: 0000000000000000 x14: 0000000000000000
x13: 0098968000000000 x12: 0000000000989680
x11: 0000000000000004 x10: 0101010101010101
x9 : 00000020a285a9ea x8 : ffffffc0007af880
x7 : ffffffc0bac001a8 x6 : ffffffc0bac00000
x5 : 00000000fffffffa x4 : ffffffc00040870c
x3 : 0000000000000003 x2 : 0000000000010003
x1 : 0000000000010002 x0 : 0000000000000000

Process swapper/0 (pid: 0, stack limit = 0xffffffc00074c058)
Stack: (0xffffffc00074fc60 to 0xffffffc000750000)
fc60: 0074fca0 ffffffc0 000e4508 ffffffc0 bb225300 ffffffc0 bb20a494 ffffffc0
fc80: 00000000 00000000 00000000 00000000 00000030 00000000 000f8c6c ffffffc0
fca0: 0074fd00 ffffffc0 000e4644 ffffffc0 bb20a400 ffffffc0 bb20a494 ffffffc0
fcc0: 00776a00 ffffffc0 00670da8 ffffffc0 00000000 00000000 00000001 00000000
fce0: bb008000 ffffffc0 407db000 00000000 00081230 ffffffc0 000e4638 ffffffc0
fd00: 0074fd40 ffffffc0 000e7338 ffffffc0 bb20a400 ffffffc0 bb20a494 ffffffc0
fd20: 00776a00 ffffffc0 000e7280 ffffffc0 bb225300 ffffffc0 000e72e0 ffffffc0
fd40: 0074fd70 ffffffc0 000e3d60 ffffffc0 00000030 00000000 00743000 ffffffc0
fd60: 0066e000 ffffffc0 006c2000 ffffffc0 0074fd90 ffffffc0 000e3e90 ffffffc0
fd80: 007437c8 ffffffc0 000e3e6c ffffffc0 0074fdf0 ffffffc0 00082404 ffffffc0
fda0: 0074fe20 ffffffc0 0075a000 ffffffc0 0000200c ffffff80 00002010 ffffff80
fdc0: 60000145 00000000 00672cc8 ffffffc0 407d9000 00000000 befb9b40 ffffffc0
fde0: 0074fe20 ffffffc0 000001d2 00000000 0074ff40 ffffffc0 00085da8 ffffffc0
fe00: 00758584 ffffffc0 0052c000 ffffffc0 0074ff40 ffffffc0 00087114 ffffffc0
fe20: 00000000 00000000 0074ff50 ffffffc0 0067d760 ffffffc0 befb9adc ffffffc0
fe40: 00000001 00000000 d4414200 00000020 d6a39c00 00000020 007a6a18 ffffffc0
fe60: 0075eb00 ffffffc0 0074fd60 ffffffc0 ffffc185 00000000 00000020 00000000
fe80: 0052d340 ffffffc0 00000030 00000000 fffffffe 0fffffff 00000000 00000000
fea0: 0018b508 ffffffc0 00000000 00000000 00000000 00000000 00758584 ffffffc0
fec0: 0052c000 ffffffc0 006c24e8 ffffffc0 007a030a ffffffc0 00000001 00000000
fee0: 00672cc8 ffffffc0 407d9000 00000000 407db000 00000000 00081230 ffffffc0
ff00: 40000000 00000040 0074ff40 ffffffc0 00087110 ffffffc0 0074ff40 ffffffc0
ff20: 00087114 ffffffc0 60000145 00000000 00758584 ffffffc0 0052c000 ffffffc0
ff40: 0074ff50 ffffffc0 000db568 ffffffc0 0074ff90 ffffffc0 00515fdc ffffffc0
ff60: 00758000 ffffffc0 007a3000 ffffffc0 007a3000 ffffffc0 befc8940 ffffffc0
ff80: 40760000 00000000 40000000 00000000 0074ffb0 ffffffc0 006ff998 ffffffc0
ffa0: 00000002 00000000 006ff988 ffffffc0 00000000 00000000 400826c0 00000000
ffc0: 8f03a688 00000000 00000e11 00000000 48000000 00000000 410fd030 00000000
ffe0: 0072c250 ffffffc0 00000000 00000000 00000000 00000000 00000000 00000000
Call trace:
[<ffffffc00040873c>] exynos4_jpeg_irq+0x30/0x15c
[<ffffffc0000e4504>] handle_irq_event_percpu+0x6c/0x160
[<ffffffc0000e4640>] handle_irq_event+0x48/0x78
[<ffffffc0000e7334>] handle_fasteoi_irq+0xe0/0x198
[<ffffffc0000e3d5c>] generic_handle_irq+0x24/0x40
[<ffffffc0000e3e8c>] __handle_domain_irq+0x80/0xf0
[<ffffffc000082400>] gic_handle_irq+0x30/0x80
Exception stack(0xffffffc00074fe00 to 0xffffffc00074ff20)
fe00: 00758584 ffffffc0 0052c000 ffffffc0 0074ff40 ffffffc0 00087114 ffffffc0
fe20: 00000000 00000000 0074ff50 ffffffc0 0067d760 ffffffc0 befb9adc ffffffc0
fe40: 00000001 00000000 d4414200 00000020 d6a39c00 00000020 007a6a18 ffffffc0
fe60: 0075eb00 ffffffc0 0074fd60 ffffffc0 ffffc185 00000000 00000020 00000000
fe80: 0052d340 ffffffc0 00000030 00000000 fffffffe 0fffffff 00000000 00000000
fea0: 0018b508 ffffffc0 00000000 00000000 00000000 00000000 00758584 ffffffc0
fec0: 0052c000 ffffffc0 006c24e8 ffffffc0 007a030a ffffffc0 00000001 00000000
fee0: 00672cc8 ffffffc0 407d9000 00000000 407db000 00000000 00081230 ffffffc0
ff00: 40000000 00000040 0074ff40 ffffffc0 00087110 ffffffc0 0074ff40 ffffffc0
[<ffffffc000085da4>] el1_irq+0x64/0xd8
[<ffffffc0000db564>] cpu_startup_entry+0x118/0x168
[<ffffffc000515fd8>] rest_init+0x7c/0x88
[<ffffffc0006ff994>] start_kernel+0x3a8/0x3bc
Code: 94045c34 f9406e60 97ffdc74 aa0003f4 (f9406400)
---[ end trace fa6dc0ea2efad21f ]---
Kernel panic - not syncing: Fatal exception in interrupt
---[ end Kernel panic - not syncing: Fatal exception in interrupt

Signed-off-by: Tony K Nadackal <tony.kn@samsung.com>
7 years agos5p-jpeg: Clear JPEG_CODEC_ON bits in sw reset function
Tony K Nadackal [Wed, 17 Dec 2014 06:22:19 +0000 (11:52 +0530)]
s5p-jpeg: Clear JPEG_CODEC_ON bits in sw reset function

Bits EXYNOS4_DEC_MODE and EXYNOS4_ENC_MODE do not get cleared
on software reset. These bits need to be cleared explicitly.

Signed-off-by: Tony K Nadackal <tony.kn@samsung.com>
7 years agos5p-jpeg: Fix modification sequence of interrupt enable register
Tony K Nadackal [Fri, 19 Dec 2014 07:37:59 +0000 (13:07 +0530)]
s5p-jpeg: Fix modification sequence of interrupt enable register

Fix the bug in modifying the interrupt enable register.

Signed-off-by: Tony K Nadackal <tony.kn@samsung.com>
7 years agoARM64: dts: exynos5433: add jpeg and sysmmu nodes
Marek Szyprowski [Fri, 6 Mar 2015 10:48:21 +0000 (11:48 +0100)]
ARM64: dts: exynos5433: add jpeg and sysmmu nodes

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agolocal / arm64: tm2: enable mfc driver
Marek Szyprowski [Fri, 27 Feb 2015 08:18:57 +0000 (09:18 +0100)]
local / arm64: tm2: enable mfc driver

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agomedia: vb2: improve debug messages
Marek Szyprowski [Fri, 27 Feb 2015 06:28:28 +0000 (07:28 +0100)]
media: vb2: improve debug messages

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agomedia: s5p-mfc: add support exynos 5433 variant
Marek Szyprowski [Mon, 20 Apr 2015 11:55:43 +0000 (13:55 +0200)]
media: s5p-mfc: add support exynos 5433 variant

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoARM64: dts: exynos5433: add mfc and sysmmu nodes
Marek Szyprowski [Mon, 23 Feb 2015 13:24:55 +0000 (14:24 +0100)]
ARM64: dts: exynos5433: add mfc and sysmmu nodes

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoarm64: dma-iommu: replace brtree with standard bitmap
Marek Szyprowski [Wed, 8 Apr 2015 06:09:53 +0000 (08:09 +0200)]
arm64: dma-iommu: replace brtree with standard bitmap

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agodrm/ipp/gscaller: add support for exynos5433 gscaller variant
Marek Szyprowski [Mon, 20 Apr 2015 10:13:34 +0000 (12:13 +0200)]
drm/ipp/gscaller: add support for exynos5433 gscaller variant

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agomedia: gscaller: fix RGB32 format id to match s5p-fimc
Marek Szyprowski [Fri, 27 Feb 2015 07:58:14 +0000 (08:58 +0100)]
media: gscaller: fix RGB32 format id to match s5p-fimc

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agodrm/exynos: fix to calculate offset of each plane for ipp gsc
Seung-Woo Kim [Wed, 4 Mar 2015 05:05:02 +0000 (14:05 +0900)]
drm/exynos: fix to calculate offset of each plane for ipp gsc

NV12 and YUV420 formats are needed to calculate offset of each plane
in a gem buffer for ipp gsc. Without proper offset, only Y plane
can be processed, so result shows green frame. This patch fixes to
calculate offset for cbcr planes for NV12 and YUV420 formats.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agodrm/exynos: fix to calculate offset of each plane for ipp fimc
Seung-Woo Kim [Wed, 4 Mar 2015 05:05:02 +0000 (14:05 +0900)]
drm/exynos: fix to calculate offset of each plane for ipp fimc

NV12 and YUV420 formats are need to calculate offset of each plane
for ipp fimc in a gem buffer. Without proper offset, only Y plane
can be processed, so result shows green frame.
This patch fixes to calculate offset for cbcr planes for NV12 and
YUV420 formats.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agodrm/exynos: add ARGB8888 support for ipp fimc
Seung-Woo Kim [Wed, 4 Mar 2015 05:05:02 +0000 (14:05 +0900)]
drm/exynos: add ARGB8888 support for ipp fimc

This patch adds ARGB8888 support for ipp fimc driver.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agodrm/exynos: gem: retry without FORCE_CONTIGUOUS when IOMMU is available
Marek Szyprowski [Thu, 26 Feb 2015 09:30:45 +0000 (10:30 +0100)]
drm/exynos: gem: retry without FORCE_CONTIGUOUS when IOMMU is available

When IOMMU is available, drivers can operate even on non-contiguous
buffers (with some performance penalty). If allocation with
FORCE_CONTIGUOUS attribute is set, iommu is available and allocation fails,
then retry allocation without this flag set.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agodrm/exynos: gsc: always use hw buffer 0 until queue management get fixed
Marek Szyprowski [Thu, 26 Feb 2015 08:29:22 +0000 (09:29 +0100)]
drm/exynos: gsc: always use hw buffer 0 until queue management get fixed

Buffer sequence selection is broken and must be fixed. For the time being
always queue buffers for hw id 0, because hardware always operates on the
first src and dst buffer. This fixes IOMMU faults and makes the driver
usable from userspace.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agolocal / arm64: tm2: enable 256M of DMA_CMA
Marek Szyprowski [Wed, 25 Feb 2015 14:08:56 +0000 (15:08 +0100)]
local / arm64: tm2: enable 256M of DMA_CMA

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agolocal/arm64: dts: add lcd-wb property to gsc nodes for Exynos5433 tm2
Seung-Woo Kim [Wed, 4 Feb 2015 07:03:34 +0000 (16:03 +0900)]
local/arm64: dts: add lcd-wb property to gsc nodes for Exynos5433 tm2

This patch adds lcd-wb property to gsc 1 and 2 nodes for Exynos5433
tm2 board. It will be bound with exynos_drm_gsc driver.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agolocal / arm64: tm2: enable exynos drm ipp and ipp gsc
Seung-Woo Kim [Mon, 23 Feb 2015 07:14:12 +0000 (16:14 +0900)]
local / arm64: tm2: enable exynos drm ipp and ipp gsc

This patch enables exynos drm ipp and ipp gsc driver.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agodrm/exynos: gsc: enable driver on ARCH_EXYNOS
Seung-Woo Kim [Tue, 3 Feb 2015 07:12:06 +0000 (16:12 +0900)]
drm/exynos: gsc: enable driver on ARCH_EXYNOS

The exynos5433 soc has gsc ip, so this patch enables gsc driver on
ARCH_EXYNOS.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agodrm/exynos: gsc: fix wrong pm_runtime state
Seung-Woo Kim [Fri, 9 Jan 2015 06:55:30 +0000 (15:55 +0900)]
drm/exynos: gsc: fix wrong pm_runtime state

At probe time, gsc clock is not enabled, so pm_runtime state should
be deactive. So this patch removes pm_runtime_set_active() from
gsc_probe().

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agodrm/exynos: gsc: prepare and unprepare gsc clock
Seung-Woo Kim [Fri, 9 Jan 2015 06:54:00 +0000 (15:54 +0900)]
drm/exynos: gsc: prepare and unprepare gsc clock

Ths patch changes the clk_enable and clk_disable call in gsc driver
into clk_prepare_enable and clk_disable_unprepare.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agodrm/exynos: allow multiplatform configuration for gsc
Seung-Woo Kim [Tue, 6 Jan 2015 08:09:54 +0000 (17:09 +0900)]
drm/exynos: allow multiplatform configuration for gsc

The patch removes dependency on !ARCH_MULTIPLATFORM.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agodrm/exynos: gsc: add device tree support
Seung-Woo Kim [Wed, 1 Jul 2015 05:02:46 +0000 (14:02 +0900)]
drm/exynos: gsc: add device tree support

This patch adds device tree support for exynos_drm_gsc. The gsc
driver is bound only when lcd-wb binding flag is set to gsc dt
node.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
7 years agoexynos-gsc: add devicetree binding optional flag for lcd-wb
Seung-Woo Kim [Tue, 6 Jan 2015 08:19:04 +0000 (17:19 +0900)]
exynos-gsc: add devicetree binding optional flag for lcd-wb

This patch adds optional flag for lcd-wb of gsc. If the flag is set,
then the gsc hw is controlled by drm driver.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agolocal / arm64: tm2: enable media & iommu support
Marek Szyprowski [Fri, 17 Apr 2015 14:31:20 +0000 (16:31 +0200)]
local / arm64: tm2: enable media & iommu support

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agomedia: exynos-gsc: add support for exynos5433 ip
Marek Szyprowski [Fri, 17 Apr 2015 14:20:26 +0000 (16:20 +0200)]
media: exynos-gsc: add support for exynos5433 ip

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agomedia: exynos-gsc: fix missing newline char in debug messages
Marek Szyprowski [Fri, 17 Apr 2015 14:20:04 +0000 (16:20 +0200)]
media: exynos-gsc: fix missing newline char in debug messages

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agomedia: exynos-gsc: remove unused lclk_freqency entry
Marek Szyprowski [Fri, 17 Apr 2015 14:14:34 +0000 (16:14 +0200)]
media: exynos-gsc: remove unused lclk_freqency entry

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agomedia: exynos-gsc: enable driver on ARCH_EXYNOS
Marek Szyprowski [Fri, 17 Apr 2015 14:19:12 +0000 (16:19 +0200)]
media: exynos-gsc: enable driver on ARCH_EXYNOS

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoARM64: dts: exynos5433: add gcaller sysmmu nodes
Marek Szyprowski [Fri, 17 Apr 2015 14:13:35 +0000 (16:13 +0200)]
ARM64: dts: exynos5433: add gcaller sysmmu nodes

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoARM64: dts: exynos5433: enable gscaller nodes
Marek Szyprowski [Fri, 17 Apr 2015 08:35:46 +0000 (10:35 +0200)]
ARM64: dts: exynos5433: enable gscaller nodes

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agodrm/exynos: fix remaining build warnings
Marek Szyprowski [Fri, 3 Apr 2015 11:00:17 +0000 (13:00 +0200)]
drm/exynos: fix remaining build warnings

This patch removes incorrect format specifiers, point to 32bit integer
casting, missing const qualifier and other build warnings.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agodrm/exynos: ipp: fix incorrect format specifiers in debug messages
Marek Szyprowski [Wed, 25 Feb 2015 10:25:57 +0000 (11:25 +0100)]
drm/exynos: ipp: fix incorrect format specifiers in debug messages

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agotemporary: drm/exynos: add support for dma-mapping/iommu framework for ARM64
Marek Szyprowski [Fri, 3 Apr 2015 11:20:23 +0000 (13:20 +0200)]
temporary: drm/exynos: add support for dma-mapping/iommu framework for ARM64

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agodrm/exynos: decon: add support for iommu
Marek Szyprowski [Wed, 25 Feb 2015 10:04:28 +0000 (11:04 +0100)]
drm/exynos: decon: add support for iommu

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoARM64: dts: define reserved mapping for bootloader's splash screen
Marek Szyprowski [Fri, 20 Feb 2015 13:01:55 +0000 (14:01 +0100)]
ARM64: dts: define reserved mapping for bootloader's splash screen

Bootloader on TM2 board enables DECON and sets it to display splash
screen. To let Linux kernel to properly initialize IOMMU and devices
during probe time, additional identity mappings are needed. This patch
adds iommu-reserved-mapping property and sets up ideantity mapping for
the whole RAM available on the board.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoARM64: dts: exynos5433: add decon sysmmu nodes
Marek Szyprowski [Fri, 20 Feb 2015 09:56:02 +0000 (10:56 +0100)]
ARM64: dts: exynos5433: add decon sysmmu nodes

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoiommu: exynos: add support for aclk/pclk clocks
Marek Szyprowski [Fri, 17 Apr 2015 08:03:38 +0000 (10:03 +0200)]
iommu: exynos: add support for aclk/pclk clocks

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoiommu: exynos: simplify master's clock management
Marek Szyprowski [Fri, 17 Apr 2015 08:03:08 +0000 (10:03 +0200)]
iommu: exynos: simplify master's clock management

All clock operations checks for NULL clock, so there is no need for
additional checks in the driver.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoARM64: dma-mapping: export iommu_dma_ops (temporary)
Marek Szyprowski [Thu, 12 Mar 2015 12:10:04 +0000 (13:10 +0100)]
ARM64: dma-mapping: export iommu_dma_ops (temporary)

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoARM64: dma-mapping: add support for NO_KERNEL_MAPPING attribute
Marek Szyprowski [Wed, 25 Feb 2015 09:58:10 +0000 (10:58 +0100)]
ARM64: dma-mapping: add support for NO_KERNEL_MAPPING attribute

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoARM64: dma-mapping: add missing correct mmap and get_sglist operations
Marek Szyprowski [Wed, 11 Mar 2015 11:13:49 +0000 (12:13 +0100)]
ARM64: dma-mapping: add missing correct mmap and get_sglist operations

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoARM64: dma-mapping: add support for IOMMU reserved mapping defined in dt
Marek Szyprowski [Fri, 20 Feb 2015 12:57:32 +0000 (13:57 +0100)]
ARM64: dma-mapping: add support for IOMMU reserved mapping defined in dt

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoarm64: hook up IOMMU dma_ops
Robin Murphy [Fri, 6 Feb 2015 14:55:15 +0000 (14:55 +0000)]
arm64: hook up IOMMU dma_ops

With iommu_dma_ops in place, hook them up to the configuration code, so
IOMMU-fronted devices will get them automatically.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
7 years agoarm64: add IOMMU dma_ops (fixup)
Marek Szyprowski [Fri, 17 Apr 2015 14:12:14 +0000 (16:12 +0200)]
arm64: add IOMMU dma_ops (fixup)

Fix compilation with IOMMU disabled.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoarm64: add IOMMU dma_ops (fixup)
Marek Szyprowski [Fri, 3 Apr 2015 11:00:05 +0000 (13:00 +0200)]
arm64: add IOMMU dma_ops (fixup)

add missing gfp allocation flags parameter

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoarm64: add IOMMU dma_ops (fixup)
Marek Szyprowski [Wed, 11 Mar 2015 08:49:06 +0000 (09:49 +0100)]
arm64: add IOMMU dma_ops (fixup)

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoarm64: add IOMMU dma_ops
Robin Murphy [Fri, 6 Feb 2015 14:55:14 +0000 (14:55 +0000)]
arm64: add IOMMU dma_ops

Taking some inspiration from the arch/arm code, implement the
arch-specific side of the DMA mapping ops using the new IOMMU-DMA layer.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
7 years agoiommu: dma_domain: use size aligned iova allocation
Marek Szyprowski [Thu, 12 Mar 2015 12:10:31 +0000 (13:10 +0100)]
iommu: dma_domain: use size aligned iova allocation

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoiommu: implement common IOMMU ops for DMA mapping
Robin Murphy [Fri, 6 Feb 2015 14:55:13 +0000 (14:55 +0000)]
iommu: implement common IOMMU ops for DMA mapping

Taking inspiration from the existing arch/arm code, break out some
generic functions to interface the DMA-API to the IOMMU-API. This will
do the bulk of the heavy lifting for IOMMU-backed dma-mapping.

Whilst this RFC series is aimed at enabling arm64, once any remaining
obvious issues in the common code are addressed we can complete the
refactoring by porting arch/arm over for a merge-worthy series.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
7 years agotemporary: iommu: exynos: add support of SYSMMU v5 (36bit) on ARM64
Marek Szyprowski [Fri, 20 Feb 2015 08:44:50 +0000 (09:44 +0100)]
temporary: iommu: exynos: add support of SYSMMU v5 (36bit) on ARM64

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agotemporary: media: s5p-mfc: remove DT hacks & initialization custom memory init code
Marek Szyprowski [Thu, 31 Jul 2014 08:37:59 +0000 (10:37 +0200)]
temporary: media: s5p-mfc: remove DT hacks & initialization custom memory init code

This patch removes custom initialization of reserved memory regions from
s5p-mfc driver. Driver will use main device pointer for all memory allocations.

This patch is temporary, do not merge it yet.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agomedia: videobuf2-dc: set properly dma_max_segment_size
Marek Szyprowski [Fri, 16 Jan 2015 13:10:33 +0000 (14:10 +0100)]
media: videobuf2-dc: set properly dma_max_segment_size

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoARM: dts: exynos: add iommu reserved regions for bootloader's splash screen
Marek Szyprowski [Wed, 8 Apr 2015 12:54:02 +0000 (14:54 +0200)]
ARM: dts: exynos: add iommu reserved regions for bootloader's splash screen

Some bootloaders enable FIMD module and configure it as a simple
framebuffer to display boot logo or splash screen before booting the
kernel. Such framebuffer stays enabled until proper kernel driver gets
probbed. Usually it is configured in such a way, that it performs DMA
from the buffer located in system memory. To avoid IOMMU access fault
during system boot, additional identity mapping between system memory
and IO virtual address space must be created when IOMMU driver gets
enabled.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoARM: dts: exynos5420: add sysmmu nodes
Marek Szyprowski [Mon, 5 Jan 2015 14:35:20 +0000 (15:35 +0100)]
ARM: dts: exynos5420: add sysmmu nodes

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoARM: dts: exynos5250: add sysmmu nodes
Marek Szyprowski [Mon, 5 Jan 2015 08:15:57 +0000 (09:15 +0100)]
ARM: dts: exynos5250: add sysmmu nodes

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoARM: dts: exynos4415: add sysmmu nodes
Marek Szyprowski [Thu, 9 Apr 2015 07:59:29 +0000 (09:59 +0200)]
ARM: dts: exynos4415: add sysmmu nodes

This patch adds System MMU nodes to all defined devices that are specific
to Exynos4415 series.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoARM: dts: exynos3250: add sysmmu nodes
Marek Szyprowski [Thu, 9 Apr 2015 07:54:31 +0000 (09:54 +0200)]
ARM: dts: exynos3250: add sysmmu nodes

This patch adds System MMU nodes to the devices that are specific to
Exynos3250 series.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoARM: dts: exynos4: add sysmmu nodes
Marek Szyprowski [Wed, 19 Nov 2014 08:33:53 +0000 (09:33 +0100)]
ARM: dts: exynos4: add sysmmu nodes

This patch adds System MMU nodes that are specific to Exynos4210/4x12 series.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoarm: dma-mapping: add support for creating reserved mappings in iova space
Marek Szyprowski [Wed, 8 Apr 2015 11:45:55 +0000 (13:45 +0200)]
arm: dma-mapping: add support for creating reserved mappings in iova space

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoiommu: exynos: remove unneeded code
Marek Szyprowski [Mon, 30 Mar 2015 10:31:11 +0000 (12:31 +0200)]
iommu: exynos: remove unneeded code

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoiommu: exynos: add callback for initializing devices from device tree
Marek Szyprowski [Tue, 16 Sep 2014 07:28:59 +0000 (09:28 +0200)]
iommu: exynos: add callback for initializing devices from device tree

This patch adds implementation of of_xlate callback, which prepares
masters device for attaching to IOMMU. This callback is called during
creating devices from device tree.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoiommu: exynos: init from dt-specific callback instead of initcall
Marek Szyprowski [Tue, 16 Sep 2014 07:28:22 +0000 (09:28 +0200)]
iommu: exynos: init from dt-specific callback instead of initcall

This patch introduces IOMMU_OF_DECLARE-based initialization to the
driver, which replaces subsys_initcall-based procedure.
exynos_iommu_of_setup ensures that each sysmmu controller is probed
before its master device.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
[k.kozlowski: rebased on 4.1]
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
7 years agoiommu: exynos: remove excessive includes and sort others alphabetically
Marek Szyprowski [Tue, 2 Sep 2014 11:48:54 +0000 (13:48 +0200)]
iommu: exynos: remove excessive includes and sort others alphabetically

Removed following unused includes: <linux/mm.h>, <linux/errno.h>,
<linux/memblock.h> and <linux/export.h>.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>