Krzysztof Kozlowski [Mon, 10 Aug 2015 01:00:15 +0000 (10:00 +0900)]
LOCAL / ARM: defconfig: Enable Mali400 R4P0 on Odroid-U3
Enable Mali400 to utilize GPU.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Krzysztof Kozlowski [Thu, 13 Aug 2015 02:00:15 +0000 (11:00 +0900)]
drm/exynos: Staticize local function in exynos_drm_gem.c
The exynos_drm_gem_mmap_buffer() is not used outside so make it static.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Krzysztof Kozlowski [Tue, 1 Sep 2015 03:55:12 +0000 (12:55 +0900)]
LOCAL / ARM: defconfig: Enable SMACK permissive mode as workaround on Trats2
Fix display/Xorg on Trats2 by using a workaround (SMACK permissive
mode).
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Krzysztof Kozlowski [Tue, 1 Sep 2015 03:45:50 +0000 (12:45 +0900)]
LOCAL / ARM: defconfig: Fix display on Trats2
Enable config necessary for display/Xorg on Trats2: TIZEN_GLOBAL_LOCK
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Krzysztof Kozlowski [Fri, 19 Jun 2015 05:23:29 +0000 (14:23 +0900)]
drm/exynos: Remove unused vma field of exynos_drm_gem_obj
The field 'vma' of 'exynos_drm_gem_obj' structure was introduced in
2a3098ff6c21 ("drm/exynos: add userptr feature for g2d module") but is
not referenced anywhere.
One instance of 'exynos_drm_gem_obj' may be mapped to multiple
user-space VMAs so 'vma' field does not look useful anyway.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Marek Szyprowski [Wed, 3 Jun 2015 08:26:24 +0000 (10:26 +0200)]
drm/exynos: iommu: improve a check for non-iommu dma_ops
DRM Exynos driver is relying on dma-mapping internal structures when used
with IOMMU enabled. This patch partially hides dma-mapping internal things
by using proper get_dma_ops/set_dma_ops calls.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
[k.kozlowski: Backport to 4.1]
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Joonyoung Shim [Fri, 12 Jun 2015 08:27:16 +0000 (17:27 +0900)]
drm/exynos: initialize VIDCON0 when fimd is disabled
When the fimd is disabled by fimd_disable(), enabled overlay layers also
are disabled. If clocks for fimd are enabled by fimd_enable() on this
case, it can lead IOMMU page fault. The reason is that VIDCON0_ENVID and
VIDCON0_ENVID_F bits of VIDCON0 register are set still even though fimd
is disabled, so it may continue display output of prior when clocks for
fimd are enabled again.
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
[k.kozlowski: Backport to 4.1, rebasing required]
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Krzysztof Kozlowski [Mon, 31 Aug 2015 09:19:54 +0000 (18:19 +0900)]
LOCAL / ARM: defconfig: Fix boot hang on Trats2 around DRM
Disabling framebuffer console fixes boot hang on Trats2 board after:
[ 1.136523] [drm] Initialized drm 1.1.0
20060810
[ 1.143789] exynos-drm exynos-drm: bound
11c00000.fimd (ops fimd_component_ops)
[ 1.149944] exynos-drm exynos-drm: bound
11c80000.dsi (ops exynos_dsi_component_ops)
[ 1.157366] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.163954] [drm] No driver support for vblank timestamp query.
[ 1.169893] [drm] Initialized exynos 1.0.0
20110530 on minor 0
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Krzysztof Kozlowski [Mon, 31 Aug 2015 09:18:36 +0000 (18:18 +0900)]
LOCAL / ARM: defconfig: Enable MAX77693 charger and haptic on Trats2
Enable the Maxim 77693 charger and input/haptic drivers in Trats2
defconfig.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Krzysztof Kozlowski [Mon, 31 Aug 2015 08:08:19 +0000 (17:08 +0900)]
Revert "LOCAL / drm/exynos: fimd: Remove unused 'ret' variable"
This reverts commit
aacf1c3ffc5a1a1ba1d51e258b4af722d68c6407 to fix
build error (tizen_trats2_defconfig):
../drivers/gpu/drm/exynos/exynos_drm_fimd.c: In function ‘fimd_bind’:
../drivers/gpu/drm/exynos/exynos_drm_fimd.c:1037:3: error: ‘ret’ undeclared (first use in this function)
../drivers/gpu/drm/exynos/exynos_drm_fimd.c:1037:3: note: each undeclared identifier is reported only once for each function it appears in
make[5]: *** [drivers/gpu/drm/exynos/exynos_drm_fimd.o] Error 1
Andrzej Hajda [Fri, 21 Aug 2015 09:50:09 +0000 (11:50 +0200)]
v4l2-compat-ioctl32: fix struct v4l2_event32 alignment
Union v4l2_event::u is aligned to 8 bytes on arm32. On arm64 v4l2_event32::u
is aligned to 4 bytes. As a result structures v4l2_event and v4l2_event32 have
different sizes and VIDOC_DQEVENT ioctl does not work from arm32 apps running
on arm64 kernel. The patch fixes it.
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Hyungwon Hwang [Wed, 26 Aug 2015 02:11:07 +0000 (11:11 +0900)]
drm/exynos: ipp: introduce last_buf_id
There is no reason to tie the buf idx from userspace and the real HW DMA
channel. So to separate them, the buf idx from userspace must be stored
to return the idx when the processing is done. This patch introduces
last_buf_id to store the current processing buf id for that purpose.
Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Ingi Kim [Wed, 12 Aug 2015 00:09:35 +0000 (09:09 +0900)]
media: s5p-mfc: fix mfc context buffer size
When video file was decoded by H/W MFCv8. It occured IOMMU page fault
because of accessing abnormal memory of mfc ctx buf
So this patch supports buffer size of mfc context more.
Relevant page fault error is below.
[ 3524.617147] PAGE FAULT occurred at 0x10108000 by
11200000.sysmmu(Page table base: 0x6d86c000)
[ 3524.624192] Lv1 entry: 0x6c27d001
[ 3524.627567] Lv2 entry: 0x0
[ 3524.630482] ------------[ cut here ]------------
[ 3524.635020] kernel BUG at drivers/iommu/exynos-iommu.c:358!
[ 3524.640567] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM
[ 3524.646373] Modules linked in:
[ 3524.649410] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.0.0-00001-g0ff9b87-dirty #18
[ 3524.657117] Hardware name: SAMSUNG EXYNOS (Flattened Device Tree)
[ 3524.663184] task:
c0e4aff0 ti:
c0e3c000 task.ti:
c0e3c000
[ 3524.668566] PC is at exynos_sysmmu_irq+0x1b8/0x2c4
[ 3524.673330] LR is at vprintk_emit+0x2b8/0x58c
[ 3524.677657] pc : [<
c037cc78>] lr : [<
c00704a4>] psr:
600d0193
[ 3524.677657] sp :
c0e3dd90 ip :
00000000 fp :
c0e3ddcc
[ 3524.689092] r10:
ee29a110 r9 :
00000000 r8 :
ee29a128
[ 3524.694292] r7 :
ed812810 r6 :
10108000 r5 :
ed86c000 r4 :
00000000
[ 3524.700791] r3 :
c0ec9bd8 r2 :
00000000 r1 :
00000000 r0 :
ed82ff00
[ 3524.707292] Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment kernel
[ 3524.714656] Control:
10c5387d Table:
6b08c06a DAC:
00000015
[ 3524.720375] Process swapper/0 (pid: 0, stack limit = 0xc0e3c210)
[ 3524.726354] Stack: (0xc0e3dd90 to 0xc0e3e000)
[ 3524.730689] dd80:
c0e3dd9c c0069d68 ee58c338 6d86c000
[ 3524.738836] dda0:
ee58c338 ee298c40 ee2915a0 0000003b c0e64ef4 c0e3c000 00000000 00000000
[ 3524.746981] ddc0:
c0e3de14 c0e3ddd0 c0071ef4 c037cacc ffffffff a00d0193 c0e3ddf4 ee291540
[ 3524.755126] dde0:
c0ec793c c0ec7928 7fffffff ee291540 ee2915a0 ee298c40 c0e64ef4 ee004660
[ 3524.763272] de00:
ee010800 c0e3df00 c0e3de34 c0e3de18 c0072138 c0071e9c 00020000 ee291540
[ 3524.771418] de20:
ee2915a0 00000016 c0e3de4c c0e3de38 c0075130 c00720f8 0000003b ee028300
[ 3524.779563] de40:
c0e3de64 c0e3de50 c0071450 c0075068 00000100 00000012 c0e3de8c c0e3de68
[ 3524.787708] de60:
c030d240 c0071420 c030d19c 00000016 00000000 00000016 00000000 00000001
[ 3524.795854] de80:
c0e3dea4 c0e3de90 c0071450 c030d1a8 00000092 c0e37a1c c0e3ded4 c0e3dea8
[ 3524.804000] dea0:
c0071790 c0071420 c0e3df00 f000200c 00000016 c0e440a8 c0e3df00 f0002000
[ 3524.812145] dec0:
c095bc8c 00000001 c0e3defc c0e3ded8 c0008730 c0071710 c0010d88 c0010d8c
[ 3524.820290] dee0:
600d0013 ffffffff c0e3df34 c0ec7eb4 c0e3df54 c0e3df00 c0014780 c00086fc
[ 3524.828436] df00:
00000001 00000000 00000000 c0020780 c0e3c000 c0e43530 00000000 00000000
[ 3524.836581] df20:
c0ec7eb4 c095bc8c 00000001 c0e3df54 c0e3df58 c0e3df48 c0010d88 c0010d8c
[ 3524.844727] df40:
600d0013 ffffffff c0e3df94 c0e3df58 c0062690 c0010d50 c0ec75f0 00000001
[ 3524.852872] df60:
c0e3df84 c0e4353c c0e39580 c0e43e84 c0e3c000 00000002 c0e3df58 c0e38b88
[ 3524.861018] df80:
c0952b9c ffffffff c0e3dfac c0e3df98 c094d1b8 c00622d4 c0e3c000 c0e43e10
[ 3524.869163] dfa0:
c0e3dff4 c0e3dfb0 c0d86d30 c094d130 ffffffff ffffffff c0d866f0 00000000
[ 3524.877309] dfc0:
00000000 c0df06d8 00000000 c0ee3f14 c0e434c0 c0df06d4 c0e4c20c 4000406a
[ 3524.885454] dfe0:
410fc073 00000000 00000000 c0e3dff8 40008074 c0d86970 00000000 00000000
[ 3524.893610] [<
c037cc78>] (exynos_sysmmu_irq) from [<
c0071ef4>] (handle_irq_event_percpu+0x64/0x25c)
[ 3524.902615] [<
c0071ef4>] (handle_irq_event_percpu) from [<
c0072138>] (handle_irq_event+0x4c/0x6c)
[ 3524.911454] [<
c0072138>] (handle_irq_event) from [<
c0075130>] (handle_level_irq+0xd4/0x14c)
[ 3524.919773] [<
c0075130>] (handle_level_irq) from [<
c0071450>] (generic_handle_irq+0x3c/0x4c)
[ 3524.928180] [<
c0071450>] (generic_handle_irq) from [<
c030d240>] (combiner_handle_cascade_irq+0xa4/0x110)
[ 3524.937624] [<
c030d240>] (combiner_handle_cascade_irq) from [<
c0071450>] (generic_handle_irq+0x3c/0x4c)
[ 3524.946981] [<
c0071450>] (generic_handle_irq) from [<
c0071790>] (__handle_domain_irq+0x8c/0xfc)
[ 3524.955646] [<
c0071790>] (__handle_domain_irq) from [<
c0008730>] (gic_handle_irq+0x40/0x78)
[ 3524.963966] [<
c0008730>] (gic_handle_irq) from [<
c0014780>] (__irq_svc+0x40/0x74)
[ 3524.971412] Exception stack(0xc0e3df00 to 0xc0e3df48)
[ 3524.976441] df00:
00000001 00000000 00000000 c0020780 c0e3c000 c0e43530 00000000 00000000
[ 3524.984586] df20:
c0ec7eb4 c095bc8c 00000001 c0e3df54 c0e3df58 c0e3df48 c0010d88 c0010d8c
[ 3524.992729] df40:
600d0013 ffffffff
[ 3524.996205] [<
c0014780>] (__irq_svc) from [<
c0010d8c>] (arch_cpu_idle+0x48/0x4c)
[ 3525.003567] [<
c0010d8c>] (arch_cpu_idle) from [<
c0062690>] (cpu_startup_entry+0x3c8/0x4a4)
[ 3525.011805] [<
c0062690>] (cpu_startup_entry) from [<
c094d1b8>] (rest_init+0x94/0x98)
[ 3525.019516] [<
c094d1b8>] (rest_init) from [<
c0d86d30>] (start_kernel+0x3cc/0x3d8)
[ 3525.026963] Code:
e34c30ec e5932004 e3520000 ca000018 (
e7f001f2)
[ 3525.033028] ---[ end trace
71ed544f653b4d46 ]---
Signed-off-by: Ingi Kim <ingi2.kim@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Donghwa Lee [Thu, 31 Jul 2014 06:01:59 +0000 (15:01 +0900)]
media: s5p-mfc: skip incomeplete frame
Currently, when incomplete frame is recieved in the middle of
decoding, driver have treated it to error, so src/dst queue and
clock are cleaned. Although it is obviously error case, it is need
to maintain video decoding in case of necessity. This patch
supports skip incomplete frame to next.
Signed-off-by: Donghwa Lee <dh09.lee@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Marek Szyprowski [Wed, 26 Aug 2015 13:05:35 +0000 (15:05 +0200)]
ARM: dts: exynos5433-tm2: add missing pinctrl states for fimc_is_ch1_i2c
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Andrzej Hajda [Thu, 20 Aug 2015 12:35:23 +0000 (14:35 +0200)]
s5p-mfc: end-of-stream handling for newer encoders
MFC encoder supports end-of-stream handling for encoder
in version 5 of hardware. This patch adds it also for newer version.
It was successfully tested on MFC-v8.
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Jaehoon Chung [Thu, 20 Aug 2015 05:07:19 +0000 (14:07 +0900)]
local/pci: pcie-designware: call pci_bus_add_devices()
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Sylwester Nawrocki [Tue, 27 Jan 2015 17:41:42 +0000 (18:41 +0100)]
LOCAL/ARM64: defconfig: enable support for fimc-is
This patch enables fimc-is and its sub drivers.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Marek Szyprowski [Wed, 12 Aug 2015 08:29:23 +0000 (10:29 +0200)]
fimc-is: fixup for v4.1 rebase
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Sylwester Nawrocki [Thu, 30 Jul 2015 04:21:48 +0000 (13:21 +0900)]
fimc-is: get rid of struct v4l2_subdev_core_ops::init usage
init is too limited to be used in this driver, it is deprecated
and usage of this callback should be removed anyway.
There is no device nodes for subdevs so ioctl is no exposed to
user space.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Sylwester Nawrocki [Thu, 30 Jul 2015 01:55:38 +0000 (10:55 +0900)]
fimc-is: Fix/add vidioc_querycap for several video nodes
This allows us to get rid of a warning from v4l2-core.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Marek Szyprowski [Thu, 13 Aug 2015 12:52:20 +0000 (14:52 +0200)]
fimc-is: fail device open when called from udev
This workaround avoids driver state change on system boot when udev checks
all video nodes.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Sylwester Nawrocki [Tue, 28 Jul 2015 05:06:58 +0000 (14:06 +0900)]
fimc-is: Workaround to ensure proper video open sequence
This a workaround to prevent system crash when video nodes are opened
in random sequence during system booting.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
fimc-is: hack video node open to require companion to be opened
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Sylwester Nawrocki [Mon, 27 Jul 2015 01:17:35 +0000 (10:17 +0900)]
fimc-is: Add memory barriers in place of vb2_ion_sync_for_device() calls
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Marek Szyprowski [Thu, 6 Aug 2015 08:09:24 +0000 (10:09 +0200)]
fimc-is: do not skip enabling enabled regulators
Regulators have proper on/off refcount, so use it instead of strange
is_enabled() based logic.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Thu, 23 Jul 2015 07:33:18 +0000 (09:33 +0200)]
fimc-is: temporary hack to ensure proper structure size
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Fri, 7 Aug 2015 08:42:08 +0000 (10:42 +0200)]
fimc-is: temporary workaround for more strict vb2 buffer state tracking
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Sylwester Nawrocki [Mon, 20 Jul 2015 01:53:30 +0000 (10:53 +0900)]
fimc-is: Correct error logs in fimc-is-groupmgr.c
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Sylwester Nawrocki [Mon, 20 Jul 2015 01:48:56 +0000 (10:48 +0900)]
fimc-is: Fix printk format in wq_func_general() function
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Sylwester Nawrocki [Mon, 20 Jul 2015 01:46:25 +0000 (10:46 +0900)]
fimc-is: Remove unneeded variable declarations
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Sylwester Nawrocki [Fri, 17 Jul 2015 05:20:40 +0000 (14:20 +0900)]
fimc-is: Use proper type for FIMC-LITE register region pointer
Aside of dropping the pointless TO_WORD_OFFSET() macro this let's
us avoid errors on a 64-bit system where size of unsigned long is
8 bytes, as opposed to 4 bytes on 32-bit machines.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Sylwester Nawrocki [Fri, 17 Jul 2015 05:17:48 +0000 (14:17 +0900)]
fimc-is: Fix data type errors in debug printks
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Sylwester Nawrocki [Fri, 17 Jul 2015 05:15:33 +0000 (14:15 +0900)]
fimc-is: Remove unused function declarations from fimc-is-hw.h
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Sylwester Nawrocki [Fri, 17 Jul 2015 04:32:45 +0000 (13:32 +0900)]
fimc-is: Use proper type for CSIS register region pointer
Aside of dropping the pointless TO_WORD_OFFSET() macro this let's
us avoid errors on a 64-bit system where size of unsigned long is
8 bytes, as opposed to 4 bytes on 32-bit machines.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Marek Szyprowski [Thu, 16 Jul 2015 08:59:37 +0000 (10:59 +0200)]
fimc-is: fix crc32 code for arm64
fimc-is: Fix getCRC() function return type
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Marek Szyprowski [Mon, 13 Jul 2015 10:43:39 +0000 (12:43 +0200)]
fimc-is: set correct paths to firmware files
fimc-is-ois: correct sd card path
fimc-is: change firmware path to /lib/firmware to avoid confusion
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Wed, 5 Aug 2015 13:38:28 +0000 (15:38 +0200)]
fimc-is: use the same iommu address space for all fimc-is/sensors blocks
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Thu, 6 Aug 2015 08:03:46 +0000 (10:03 +0200)]
fimc-is: use own IOMMU domain (base=0x10000000, size=0x80000000)
FIMC-IS doesn't work properly with IO address space configured from zero
address, so use separate IO address space (domain) with base address set
to 0x10000000 and 0x80000000 bytes large.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Fri, 7 Aug 2015 08:41:39 +0000 (10:41 +0200)]
fimc-is: add fimc-is log dump on driver close
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Thu, 6 Aug 2015 07:43:41 +0000 (09:43 +0200)]
fimc-is: remove ION integration code
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Sylwester Nawrocki [Mon, 11 May 2015 14:46:35 +0000 (16:46 +0200)]
fimc-is: Add support for MIPI PHY power/reset control
Change-Id: Id7afb8b99a87a664a16f74ff0d3e6c28904cce1b
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Marek Szyprowski [Thu, 6 Aug 2015 10:59:20 +0000 (12:59 +0200)]
fimc-is: fix all possible casting issues and function signature incompatibilities
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Fri, 7 Aug 2015 08:41:03 +0000 (10:41 +0200)]
fimc-is: fix includes and make the code to compile on ARM64
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Fri, 10 Jul 2015 12:21:45 +0000 (14:21 +0200)]
fimc-is: remove pin_config_set dependency
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Sylwester Nawrocki [Fri, 8 May 2015 14:35:05 +0000 (16:35 +0200)]
fimc-is: Add exynos_smc() implementation (temporary workaround)
Ported from arch/arm64/kernel/exynos-smc.S, include/linux/smc.h
from LSI kernel.
Change-Id: I94a82210ab1f4cfdeff12b87e51592f8d417a060
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Marek Szyprowski [Thu, 9 Jul 2015 08:28:58 +0000 (10:28 +0200)]
fimc-is: disable support for V4L2_CID_IS_MAP_BUFFER
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Fri, 7 Aug 2015 08:17:23 +0000 (10:17 +0200)]
fimc-is: configure clocks on companion open
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Fri, 7 Aug 2015 06:37:00 +0000 (08:37 +0200)]
fimc-is: remove conditional runtime PM support
remove conditional runtime pm code
Marek Szyprowski [Fri, 7 Aug 2015 08:36:26 +0000 (10:36 +0200)]
fimc-is: replace hardcoded PMU register access with regmap calls
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Fri, 7 Aug 2015 08:36:35 +0000 (10:36 +0200)]
fimc-is: read fimc-lite and csis regs and irqs from dt
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Tue, 11 Aug 2015 08:28:56 +0000 (10:28 +0200)]
fimc-is: provide stubs for mipiphy control
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Thu, 6 Aug 2015 13:39:42 +0000 (15:39 +0200)]
fimc-is: enable build
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Thu, 6 Aug 2015 10:55:07 +0000 (12:55 +0200)]
fimc-is: remove ncp6335b support (unused)
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Fri, 7 Aug 2015 08:35:52 +0000 (10:35 +0200)]
fimc-is: remove pm qos support
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Fri, 7 Aug 2015 08:35:42 +0000 (10:35 +0200)]
fimc-is: remove unused conditional code
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Fri, 7 Aug 2015 08:35:30 +0000 (10:35 +0200)]
fimc-is: remove completely dead code
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Fri, 7 Aug 2015 08:35:19 +0000 (10:35 +0200)]
fimc-is: remove ENABLE_DVFS support
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Fri, 7 Aug 2015 08:35:09 +0000 (10:35 +0200)]
fimc-is: remove ENABLE_CLOCK_GATE support
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Fri, 7 Aug 2015 08:34:57 +0000 (10:34 +0200)]
fimc-is: remove USE_OWN_FAULT_HANDLER support
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Fri, 7 Aug 2015 08:34:47 +0000 (10:34 +0200)]
fimc-is: remove dead code for non-Exynos5433 SoCs
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Thu, 6 Aug 2015 13:24:20 +0000 (15:24 +0200)]
fimc-is: add code from arch/arm/mach-exynos and missing headers
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Thu, 6 Aug 2015 13:21:55 +0000 (15:21 +0200)]
fimc-is: remove unused sensors
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Thu, 6 Aug 2015 13:20:55 +0000 (15:20 +0200)]
fimc-is: initial import from Andorid LL release code
Import fimc-is driver from SM-N910C_LL_Opensource (verified 32-bit
Android kernel) from opensource.samsung.com
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Tue, 7 Jul 2015 12:23:55 +0000 (14:23 +0200)]
ARM: dts: exynos5433-tm2: add all nodes related to camera support
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Wed, 29 Jul 2015 08:26:19 +0000 (10:26 +0200)]
drm: exynos: add support for vmap method to dmabuf implementation
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Tue, 11 Aug 2015 08:19:51 +0000 (10:19 +0200)]
ARM: dts: exynos5433: use samsung,exynos5433-mipi-video-phy binding
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Tue, 11 Aug 2015 08:20:56 +0000 (10:20 +0200)]
phy: phy-exynos-mipi-video: Add support for exynos5433 variant
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Sylwester Nawrocki [Fri, 7 Aug 2015 14:01:05 +0000 (16:01 +0200)]
phy: phy-exynos-mipi-video: Drop support for direct access to PMU
There is no need to support access to the PMU through memory ioresource
as now access through PMU regmap should only be used.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Marek Szyprowski [Thu, 30 Jul 2015 10:35:18 +0000 (12:35 +0200)]
i2c: s3c24xx: add fimc isp i2c quirks
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Wed, 5 Aug 2015 13:39:33 +0000 (15:39 +0200)]
spi: backport spi driver from android-ll, now isp-spi works
remove spi isp dead code
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Marek Szyprowski [Mon, 20 Jul 2015 11:20:52 +0000 (13:20 +0200)]
pinctrl: exynos5433: GPIO_DRV parameters use 4 bits on Exynos5433
Exynos 5433 differs from earlier SoCs by wider GPIO_DRV parameters (4 bits
instead of 2 bits per pin). This patch adds support for Exynos 5433
specific GPIO parameters.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Sylwester Nawrocki [Tue, 26 May 2015 10:55:50 +0000 (12:55 +0200)]
clk: samsung: exynos5433: Drop RO registers from the save/restore lists
Change-Id: I3c2885a3f85d3f7fdc33d56892161ad37828000c
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Marek Szyprowski [Fri, 7 Aug 2015 10:35:28 +0000 (12:35 +0200)]
clk: samsung: exynos5433: add CLK_IGNORE_UNUSED to all camera clocks
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Sylwester Nawrocki [Wed, 18 Feb 2015 16:35:08 +0000 (17:35 +0100)]
clk: samsung: exynos5433: Add ISP/CAM IP gate clocks
clk: samsung: exynos5433: Add CLK_ISP_SPIx gate clocks
clk: samsung: exynos5433: Add more clock definitions for gate clocks
clk: samsung: exynos5433: Fix CAM0_NR_CLK macro definition value
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Sylwester Nawrocki [Wed, 18 Feb 2015 16:33:35 +0000 (17:33 +0100)]
clk: samsung: exynos5433: Change *RXBYTEECLKHS0_* clock rates to 188 MHz
Values taken from the Android kernel.
Change-Id: Ia8606b729018f24987a2c5e2ad693ab52bf3497d
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Marek Szyprowski [Tue, 21 Jul 2015 12:37:57 +0000 (14:37 +0200)]
clk: samsung: exynos5433: Fix definitions of SCLK ISP SENSOR0 clocks
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Sylwester Nawrocki [Wed, 27 May 2015 13:04:43 +0000 (15:04 +0200)]
clk: samsung: exynos5433: Fix definitions of MUX_SEL_CAM04 clocks
This corrects bit offsets in the MUX_SEL_CAM04 gate control register.
Change-Id: I96305b941b3bcd3eed083b6b08d501c4e4509dda
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Sylwester Nawrocki [Wed, 18 Feb 2015 16:31:35 +0000 (17:31 +0100)]
clk: samsung: exynos5433: Fix typos in *_ISP_MPWM clock names
Change-Id: I83ae4420ce171c58271d0a0222ef9bae3def831a
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Marek Szyprowski [Wed, 5 Aug 2015 14:41:19 +0000 (16:41 +0200)]
dts: exynos5433-tm2: remove dysfunctional NFC node
SEC-NFC node conflicts with FIMC-IS, so remove it for now.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Sylwester Nawrocki [Mon, 27 Jul 2015 01:25:53 +0000 (10:25 +0900)]
devfreq: exynos-ppmu: Fix incorrect data type in bit shift operation
drivers/devfreq/event/exynos-ppmu.c: In function ‘exynos_ppmu_v2_get_event’:
drivers/devfreq/event/exynos-ppmu.c:322:3: warning: left shift count >= width of type [enabled by default]
load_count = (u64)((pmcnt_high & 0xff) << 32) + (u64)pmcnt_low;
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Joonyoung Shim [Tue, 18 Aug 2015 04:42:09 +0000 (13:42 +0900)]
drm/exynos: enable render node
Enable render node by user side request.
Change-Id: I1436d9f8be6d9677244338f10087502bc63d5733
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Andrzej Hajda [Thu, 13 Aug 2015 10:25:37 +0000 (12:25 +0200)]
s5p-mfc: correct scratch buffer size of H.263 decoder
Driver complains about too small scratch buffer size. After adjusting
it according to vendor code, decoding works.
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Seung-Woo Kim [Thu, 5 Feb 2015 11:03:37 +0000 (20:03 +0900)]
ARM: dts: exynos4412-odroid-common: update vdd_g3d voltage range
This patch updates voltage range of vdd_g3d regulator and its
boot-on mode.
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Seung-Woo Kim [Thu, 5 Feb 2015 10:06:39 +0000 (19:06 +0900)]
ARM: dts: exynos4412-odroid-common: add gpu node
This patch adds gpu node to exynos4412-odroid-common dtsi.
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Jonghwa Lee [Fri, 7 Aug 2015 14:36:19 +0000 (23:36 +0900)]
Revert "[WORKAROUND] Revert "PM / Domains: Sync runtime PM status with genpd ~"
This reverts commit
7129422f99953585fe423859117389af44a0b717.
The issue is resolved with former 2 commits.
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Jonghwa Lee [Fri, 7 Aug 2015 14:24:40 +0000 (23:24 +0900)]
clk: samsung: exynos5433: Add pm_domain notification when domain is avaiable.
Not to postpone the registration of notifier block undefinedly, it registers
pm_domain notification at once when the pm_domain is available.
It checks new pm_domain creation until it founds corresponding one.
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Jonghwa Lee [Fri, 7 Aug 2015 14:17:16 +0000 (23:17 +0900)]
soc: samsung: pm_domain: Support pm_domain creation notification.
For some drivers which is probed earlier than pm_domain creation,
it provides a interface to get notification.
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Jonghwa Lee [Fri, 7 Aug 2015 07:42:26 +0000 (16:42 +0900)]
LOCAL \ clocksource: arch_timer: Use physical cnt instead of virtual one.
This fixes unsynchronized timestamp on kernel log which is occured by
unitialized virtual counter of each CPU. Even ARM commented that to use
virtual counter is mandatory on ARMv8, but it failed on EXYNOS5433.
Let it uses physical counter instead of virtual counter on EXYNOS5433.
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Hyungwon Hwang [Wed, 5 Aug 2015 13:33:32 +0000 (22:33 +0900)]
Revert "PM / Domains: Sync runtime PM status with genpd after probe"
After this patch, disp-pm-domain is powered down at boot. Powering down
this domain, and powering up later is OK. But the kernel hangs up when
repareting the clocks just after powering up the domain.
Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
Hyungwon Hwang [Wed, 5 Aug 2015 12:43:52 +0000 (21:43 +0900)]
arm64: dts: exynos5433: add power-domains property to sysmmu nodes
This patch adds power-domains property to sysmmu nodes.
Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
Hyungwon Hwang [Mon, 3 Aug 2015 10:57:48 +0000 (19:57 +0900)]
arm64: dma-iommu: rebase dma-iommu to kernel 4.1
In Linux kernel 4.1, iommu_domain_alloc() is introduced.This patch rebases
dma-iommu codes to make the driver use the function.
Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
Hyungwon Hwang [Mon, 3 Aug 2015 10:55:58 +0000 (19:55 +0900)]
arm64: defconfig: turn off the unrelated features with TM2
This patch turns off the unrelated features with TM2 board.
Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
Jonghwa Lee [Tue, 4 Aug 2015 00:41:39 +0000 (09:41 +0900)]
arm64: dtsi: exynos5433-tmu: Fix G3D trip point according to calibrated value.
To adapt modified G3D temperature sensor's value, it fixes G3D temperature
threshold table. Stability test is passed with full loaded CPU and G3D over
12 hours.
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Jonghwa Lee [Mon, 3 Aug 2015 10:23:06 +0000 (19:23 +0900)]
thermal: exynos5433: Add missing code for setting rising threshold.
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Jonghwa Lee [Mon, 3 Aug 2015 10:17:16 +0000 (19:17 +0900)]
thermal: devfreq_cooling: Return the max cooling state correctly.
After initialization with prebuilt opp table, max_state value is not correct.
This patch fixes it.
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Jonghwa Lee [Fri, 31 Jul 2015 02:13:40 +0000 (11:13 +0900)]
arm64: dts: exynos5433: G3D TMU uses different sensor configuration.
There are 5 thermal sensors on EXYNOS5433, ATLAS0,1, G3D and APOLLO, ISP.
And G3D's sensor is different with others. Thus it has to use suitable
configuration. It uses diffenet reference voltage and mux address.
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Jonghwa Lee [Fri, 31 Jul 2015 02:11:24 +0000 (11:11 +0900)]
arm: dtsi: exynos4412-tmu-sensor-conf: Add tmu mux addrress property
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Jonghwa Lee [Fri, 31 Jul 2015 02:05:04 +0000 (11:05 +0900)]
thermal: samsung: Make TMU's MUX address configurable
There is a test purpose MUX in Exynos TMU(Thermal Management Unit) and
it used fixed value up to now while it can be diverged depends on chip
implementation or specific uses.
It now becomes configurable value via device tree.
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Jonghwa Lee [Wed, 29 Jul 2015 04:29:00 +0000 (13:29 +0900)]
arm64: configs: defconfig: Turn off unused kernel configuration
-CONFIG_THERMAL_HWMON : support compatibility for legacy hwmon inf.
-CONFIG_CLOCK_THERMAL : clock cooling device driver, aimed to co-processor.
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Jonghwa Lee [Wed, 29 Jul 2015 03:39:44 +0000 (12:39 +0900)]
cpufreq: arm_big_little: Unregister cooling device at exit
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>