GitHub/moto-9609/android_kernel_motorola_exynos9610.git
6 years ago[COMMON] iommu/exynos: add cache sync operation
Janghyuck Kim [Thu, 28 Apr 2016 06:49:40 +0000 (15:49 +0900)]
[COMMON] iommu/exynos: add cache sync operation

Cache sync operation for device and cpu is added.

Change-Id: I6167a51997d50978e1bc22bbe2c1c33a18cf0666
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
6 years ago[COMMON] iommu/exynos: add temporal function for master driver
Janghyuck Kim [Tue, 26 Apr 2016 07:09:29 +0000 (16:09 +0900)]
[COMMON] iommu/exynos: add temporal function for master driver

Frequently used function for master driver is added temporally to avoid
compile error.

Change-Id: Ieb3986467e9fadcc77aee01f40bb5e9e7d7c04c8
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
6 years ago[COMMON] iommu/exynos: add iommu group for each domain
Janghyuck Kim [Tue, 26 Apr 2016 05:00:47 +0000 (14:00 +0900)]
[COMMON] iommu/exynos: add iommu group for each domain

iommu group is not important for exynos iommu driver, however, without
iommu group, getting domain from master device is failed.
This patch added one to one relationship for iommu group and domain.

Change-Id: Ia31bd028226e228c14091cd8ec5ee0412155228d
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
6 years ago[COMMON] iommu/exynos: add suspend/resume callback
Janghyuck Kim [Mon, 25 Apr 2016 09:30:17 +0000 (18:30 +0900)]
[COMMON] iommu/exynos: add suspend/resume callback

To support suspend and resume of APM, suspend and resume callback is
added to disable and enable sysmmu properly.

Change-Id: Ie2cf804b50219c1c820de794fe2e6aad68ae3d94
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
6 years ago[COMMON] iommu/exynos: runtime suspend/resume callback
Janghyuck Kim [Mon, 25 Apr 2016 09:27:20 +0000 (18:27 +0900)]
[COMMON] iommu/exynos: runtime suspend/resume callback

Sysmmu operation is implicitly enabled and disabled when master device
turned on the power and off the power.

This patch replaces runtime pm suspend/resume callback of platform bus
with exynos_iommu_runtime_suspend/resume that added sysmmu handling.

Change-Id: I5e5e1f5fb485a9943c84c0e6a379b8720de57094
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
6 years ago[COMMON] iommu/exynos: add tlb invalidation
Janghyuck Kim [Mon, 25 Apr 2016 05:20:05 +0000 (14:20 +0900)]
[COMMON] iommu/exynos: add tlb invalidation

TLB invalidation is mandatory when page table entry is added or removed.
Without this, sysmmu might translate wrong address results.

Change-Id: I3fe24d211256b8f503d1fbabc78dc3f6790faf4e
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
6 years ago[COMMON] iommu/exynos: add map/unmap
Janghyuck Kim [Mon, 25 Apr 2016 02:28:06 +0000 (11:28 +0900)]
[COMMON] iommu/exynos: add map/unmap

mapping makes page table entry to translate virtual address to physical
address. unmapping removes page table entry.

Change-Id: I82c053b40868deba948c60affd96074661987f15
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
6 years ago[COMMON] iommu/exynos: add sysmmu enable/disable
Janghyuck Kim [Sat, 23 Apr 2016 10:26:37 +0000 (19:26 +0900)]
[COMMON] iommu/exynos: add sysmmu enable/disable

Sysmmu checks activation status and runtime activation by master
driver to control properly.
At enabling time, sysmmu configuration and page table are set.
At disabling time, sysmmu is blocked and disabled.

Change-Id: Ia8cfee103bdb259d295c18edb7d3b033f85c2662
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
6 years ago[COMMON] iommu/exynos: add attach/detach device
Janghyuck Kim [Sat, 23 Apr 2016 07:51:50 +0000 (16:51 +0900)]
[COMMON] iommu/exynos: add attach/detach device

Client device is attached to domain by attach_device.
It enables sysmmu for all clients that attached to domain.
Client device is detached from domain by detach_device.
All enabled sysmmus for clients are disabled.

Change-Id: Ib261369344516ee034a3fae0498137f983ca5bd6
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
6 years ago[COMMON] iommu/exynos: add domain alloc/free
Janghyuck Kim [Sat, 23 Apr 2016 07:00:10 +0000 (16:00 +0900)]
[COMMON] iommu/exynos: add domain alloc/free

iommu domain represents virtual address spaces for client device.
domain_alloc creates page table for each domain and initialize domain
related data structures.
domain_free cleans up attached client list and releases domain related
information.

Change-Id: I61d6621c5598be459e963ecdb58711fc76d083ed
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
6 years ago[COMMON] iommu/exynos: of_xlate for master and sysmmu
Janghyuck Kim [Fri, 22 Apr 2016 11:13:54 +0000 (20:13 +0900)]
[COMMON] iommu/exynos: of_xlate for master and sysmmu

of_xlate is called when master device is added.
Purpose of of_xlate is making relationship between master and sysmmu
devices. Domain and client relationship is also created at this time.

Change-Id: I4b7f5a2d9d1237b61beee1a6f216ef39c60df722
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
6 years ago[COMMON] iommu/exynos: add probe function
Janghyuck Kim [Fri, 22 Apr 2016 12:03:30 +0000 (21:03 +0900)]
[COMMON] iommu/exynos: add probe function

resources like SFR and IRQ are registered and main structure for sysmmu
is created in probe function.

Change-Id: I3266acf9b97bea4395804a5bf1f814c7b0f4815f
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
6 years ago[COMMON] iommu/exynos: creating iommu domain
Janghyuck Kim [Fri, 22 Apr 2016 06:13:15 +0000 (15:13 +0900)]
[COMMON] iommu/exynos: creating iommu domain

iommu domain is created at booting time and it parses device tree with
"samsung,exynos-iommu-bus" to clarify relationship between domain and
client devices. At this time, client device is not added yet, so parsed
informations are stored into exynos_client_list for later.

Change-Id: I7928fbdf0898fef2b9e9004e3b45c3520c2c1c18
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
6 years ago[COMMON] iommu/exynos: enable IOVMM
Janghyuck Kim [Fri, 22 Apr 2016 05:21:02 +0000 (14:21 +0900)]
[COMMON] iommu/exynos: enable IOVMM

IOVMM is Exynos I/O Virtual Memory Manager.
It manages device virtual address region like allocation and free.
IOVMM is connected with exynos iommu domain.

Some dummy function is added in exynos-iommu to avoid compilie error.

Change-Id: Icdd0fe1acc81240b97361ae495276d920c129ad9
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
6 years ago[COMMON] iommu/exynos: add initialization
Janghyuck Kim [Thu, 21 Apr 2016 10:19:53 +0000 (19:19 +0900)]
[COMMON] iommu/exynos: add initialization

This is the starting point for exynos iommu driver.
It registers sysmmu driver and iommu api to platform_bus_type.

Change-Id: Iae165ce448ab4334ca956c5c2aaaa6bbe4997d7a
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
6 years ago[COMMON] iommu/exynos: add skeleton exynos iommu driver
Janghyuck Kim [Tue, 19 Apr 2016 05:28:16 +0000 (14:28 +0900)]
[COMMON] iommu/exynos: add skeleton exynos iommu driver

Basic structures for domain, master and sysmmu are defined.
Skeleton functions of iommu_ops are added.

Change-Id: I501f6a82357a1e37e3d14bbb0f2c7ad4c516090f
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
6 years ago[COMMON] iommu/exynos: remove exynos-iommu.c
Janghyuck Kim [Tue, 9 Jan 2018 02:18:00 +0000 (11:18 +0900)]
[COMMON] iommu/exynos: remove exynos-iommu.c

Original file is removed.

Change-Id: Ibe28c914b294d22326222dbf994511dbc7a80e52
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
6 years ago[9610][ERD] arm64: config: Fix CONFIG_NR_CPUS
Jaehyoung Choi [Mon, 14 May 2018 09:16:56 +0000 (18:16 +0900)]
[9610][ERD] arm64: config: Fix CONFIG_NR_CPUS

Change-Id: Iec2fb5cbbf63e82769c6caf4f8cbe3372a6eb89f
Signed-off-by: Jaehyoung Choi <jkkkkk.choi@samsung.com>
6 years agoRevert "[HACK] remove clock setting code"
Jaehyoung Choi [Mon, 14 May 2018 07:16:55 +0000 (16:16 +0900)]
Revert "[HACK] remove clock setting code"

This reverts commit c6d418b50aeb5fedbbac7ce5e4a120c4757c00f3.

6 years ago[9610][ERD] arm64: config: Enable config related to full treble
Jaehyoung Choi [Mon, 14 May 2018 06:59:34 +0000 (15:59 +0900)]
[9610][ERD] arm64: config: Enable config related to full treble

Change-Id: If5076d25a6c1ec00192268f704ae0e1cb82e54e0
Signed-off-by: Jaehyoung Choi <jkkkkk.choi@samsung.com>
6 years ago[COMMON] soc: samsung: fix build error
Taekki Kim [Wed, 9 May 2018 05:48:43 +0000 (14:48 +0900)]
[COMMON] soc: samsung: fix build error

This patch fixes build error as below.
 - fix build error when exynos_pd is disabled.
 - add sched clock header prevent build error.

Change-Id: Ibcc337660f066a45ee6d10dcb4794dd0d87b38e0
Signed-off-by: Taekki Kim <taekki.kim@samsung.com>
6 years ago[COMMON] soc: samsung: add bcm config
Taekki Kim [Wed, 9 May 2018 05:47:14 +0000 (14:47 +0900)]
[COMMON] soc: samsung: add bcm config

Change-Id: I0a202641d8d079be63ee5d36eb5f889ce900dfd0
Signed-off-by: Taekki Kim <taekki.kim@samsung.com>
6 years ago[COMMON] soc: samsung: bcm: remove setting iotable.
Seokju Yoon [Mon, 14 Nov 2016 09:41:55 +0000 (18:41 +0900)]
[COMMON] soc: samsung: bcm: remove setting iotable.

Change-Id: I319d57b0011da2c519717fba01084187fc0489c0
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
6 years ago[COMMON] bcm: add header for slab
Taekki Kim [Fri, 14 Apr 2017 08:35:46 +0000 (17:35 +0900)]
[COMMON] bcm: add header for slab

Change-Id: I02cc719350a91cd78d1685e1d4c75fac97e61f8c
Signed-off-by: Taekki Kim <taekki.kim@samsung.com>
6 years ago[COMMON] bcm: fix stack overflow possibility.
Seokju Yoon [Wed, 7 Dec 2016 04:19:12 +0000 (13:19 +0900)]
[COMMON] bcm: fix stack overflow possibility.

Change-Id: Ia87174a7f0f04dfaf2e03935f66348ec1119d50b
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
6 years ago[common] bcm: unlimit log size in panic
Seokju Yoon [Fri, 30 Sep 2016 01:02:27 +0000 (10:02 +0900)]
[common] bcm: unlimit log size in panic

Change-Id: I0502681f657dffdf3c952ca6a086dc15d896d4d5
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
6 years ago[COMMON] bcm: panic log size increase
Seokju Yoon [Thu, 18 Aug 2016 10:10:23 +0000 (19:10 +0900)]
[COMMON] bcm: panic log size increase

Change-Id: Ie387592a4bc88a859a91633e2b8fcfdedf1de344
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
6 years ago[COMMON] bcm: enable bcm panic logging
Seokju Yoon [Mon, 18 Jul 2016 13:13:06 +0000 (22:13 +0900)]
[COMMON] bcm: enable bcm panic logging

Change-Id: I474702088501f6aaba2a2cab733cdd183ef2de4b
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
6 years ago[COMMON] bcm: split print log buffer to support long sentences
Seokju Yoon [Mon, 11 Jul 2016 02:22:22 +0000 (11:22 +0900)]
[COMMON] bcm: split print log buffer to support long sentences

Change-Id: I110ea98f5be98c7bf12359884063308dbaf2ab5a
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
6 years ago[COMMON] soc: samsung: Add the bcm driver
Seokju Yoon [Mon, 20 Jun 2016 02:19:09 +0000 (11:19 +0900)]
[COMMON] soc: samsung: Add the bcm driver

Change-Id: Ibe3ce4189b269d21fb9781160b6c119dcdb82e07
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
6 years ago[9610] arm64: dtsi: add pdma device node
Taekki Kim [Fri, 4 May 2018 05:46:06 +0000 (14:46 +0900)]
[9610] arm64: dtsi: add pdma device node

Change-Id: I587f504d44c3651472ca3d20ca51c18bdc63de93
Signed-off-by: Taekki Kim <taekki.kim@samsung.com>
6 years agochange dma_attrs to unsigned long
Eunok Jo [Mon, 22 May 2017 05:44:37 +0000 (14:44 +0900)]
change dma_attrs to unsigned long

Due to patch "dma-mapping: use unsigned long for dma_attrs",
dma_attrs should be unsigned long to be used.

Change-Id: Ia68dfee7ff5e4b1e89c921e161bb8891c0278e5e
Signed-off-by: Eunok Jo <eunok25.jo@samsung.com>
6 years agoarch64: dma: add the dma interface for audio
KangNam Park [Wed, 30 Jul 2014 14:38:57 +0000 (23:38 +0900)]
arch64: dma: add the dma interface for audio

Change-Id: I8037f12b582668ed6c7fb3031dca768685a909db
Signed-off-by: KangNam Park <kn0710.park@samsung.com>
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
6 years ago[COMMON] pl330: Add exynos_pd config
Jaejoon Yoo [Wed, 14 Mar 2018 04:24:44 +0000 (13:24 +0900)]
[COMMON] pl330: Add exynos_pd config

Change-Id: I5a71d4f6ef5722c3db2204da33e46a2669bf7aff
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
6 years agoSet CPU Affinity for handling interrupt
Eunok Jo [Fri, 11 Nov 2016 09:23:34 +0000 (18:23 +0900)]
Set CPU Affinity for handling interrupt

When HMP for exynos series is enabled, cpu affinity for
handling interrupt will be set only for little cores.
Otherwise, all cores can catch interrupt and handle it.

Change-Id: Id6a37fd0e7e97ed240c94f47c91d096b5f5211cd
Signed-off-by: Eunok Jo <eunok25.jo@samsung.com>
6 years agodma: pl330: remove unnecessary spinlock
Eunok Jo [Mon, 24 Oct 2016 07:24:30 +0000 (16:24 +0900)]
dma: pl330: remove unnecessary spinlock

Change-Id: I3e17fd6d5fd90999974de89621d860e229aed4e5
Signed-off-by: Eunok Jo <eunok25.jo@samsung.com>
6 years agodma: pl330: support IRQF_GIC_MULTI_TARGET
Taekki Kim [Fri, 30 Sep 2016 09:17:25 +0000 (18:17 +0900)]
dma: pl330: support IRQF_GIC_MULTI_TARGET

Change-Id: I467307919c0bf47421c0d9b52a9306518369cbba
Signed-off-by: Taekki Kim <taekki.kim@samsung.com>
6 years agodma: of: add multi irq get API for support IRQF_GIC_MULTI_TARGET.
Taekki Kim [Fri, 30 Sep 2016 09:13:26 +0000 (18:13 +0900)]
dma: of: add multi irq get API for support IRQF_GIC_MULTI_TARGET.

Change-Id: Ie58232a9fe0f1a5228fa8c7505fd30d856873caf
Signed-off-by: Taekki Kim <taekki.kim@samsung.com>
6 years ago[COMMON] dma: Modify dma code for kernel 4.14
Jaejoon Yoo [Thu, 18 Jan 2018 04:25:32 +0000 (13:25 +0900)]
[COMMON] dma: Modify dma code for kernel 4.14

Change-Id: Ifaadf8bf3cdf19a126fc109a9da05cdf44c05359
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
6 years agosamsung: dma: add samsung dma
Eunok Jo [Mon, 22 May 2017 10:48:28 +0000 (19:48 +0900)]
samsung: dma: add samsung dma

Change-Id: I817574379d67e5605517dd409cf8f012f59b3653
Signed-off-by: Eunok Jo <eunok25.jo@samsung.com>
6 years ago[COMMON] dma: change MCODE_BUFFER size.
Jaejoon Yoo [Wed, 29 Nov 2017 06:29:07 +0000 (15:29 +0900)]
[COMMON] dma: change MCODE_BUFFER size.

Change-Id: Id92b11a013db9cbd20c9715108cf465a0bc82ae0
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
6 years ago[COMMON] DMA: Add configurable burst length in cyclic mode.
Jaejoon Yoo [Wed, 29 Nov 2017 00:24:40 +0000 (09:24 +0900)]
[COMMON] DMA: Add configurable burst length in cyclic mode.

Change-Id: Iaa152f26fac528b9fdb4b125cd5206377c55db54
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
6 years ago[COMMON] dma: Remove FLUSHP for dev2mem transfer
Eunok Jo [Thu, 14 Sep 2017 05:43:14 +0000 (14:43 +0900)]
[COMMON] dma: Remove FLUSHP for dev2mem transfer

In Dev2mem transfer, peripheral de-asserts the PERIPHERAL_REQUEST
on the very next clock edge of its finished request because
data transfer is already completed on the peripheral side.

In this case, micro code does not have to do FLUSHP
because there should not be any synchronization issues.

Change-Id: I7370b526759422b1d056f0c54c65899597e327a4
Signed-off-by: Eunok Jo <eunok25.jo@samsung.com>
6 years agoRevert "dmaengine: Remove the context argument to the prep_dma_cyclic operation"
Eunok Jo [Mon, 22 May 2017 07:48:58 +0000 (16:48 +0900)]
Revert "dmaengine: Remove the context argument to the prep_dma_cyclic operation"

This reverts commit 31c1e5a1350ae8d1bc2018f5de8264266d9773e1.

Change-Id: I0d1eb6fe5cf845935d219bcf31c1902c548240b4

6 years agodma: svace fix: fix variable type mismatch
Eunok Jo [Tue, 7 Feb 2017 10:51:42 +0000 (19:51 +0900)]
dma: svace fix: fix variable type mismatch

WGID: 95862, 96284, 96746, 96796, 97246

Change-Id: I7bfbd10408e7982fe01884435dcb396052c6e42f
Signed-off-by: Eunok Jo <eunok25.jo@samsung.com>
6 years agoDMA: svace fix: add type cast code to loop function(WGID: 2490).
Jaejoon Yoo [Fri, 6 Jan 2017 08:21:33 +0000 (17:21 +0900)]
DMA: svace fix: add type cast code to loop function(WGID: 2490).

Change-Id: Ie2d0d68c975e2c0b8e51330783c577bff1523b37
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
6 years agoDMA: Support 36bit address when call getposition function.
Jaejoon Yoo [Tue, 10 Jan 2017 10:05:01 +0000 (19:05 +0900)]
DMA: Support 36bit address when call getposition function.

Change-Id: I542860611c550d25b014e6cb112e64edf94e4e02
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
6 years agodma: pl330: add critical section for list operation
Taekki Kim [Mon, 9 Jan 2017 04:07:34 +0000 (13:07 +0900)]
dma: pl330: add critical section for list operation

Change-Id: I8505ac36fcc13a9d0c376bd4dba7fae6558f50cb
Signed-off-by: Taekki Kim <taekki.kim@samsung.com>
6 years agoDMA: Fix SFR address when debug log print.
Jaejoon Yoo [Tue, 3 Jan 2017 09:51:05 +0000 (18:51 +0900)]
DMA: Fix SFR address when debug log print.

Change-Id: Ib52934854f5d238e60b48e908256552b537d6483
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
6 years agoDMA: Modify register base address
Jaejoon Yoo [Mon, 2 Jan 2017 12:06:20 +0000 (21:06 +0900)]
DMA: Modify register base address

Change-Id: Ia9e0e042cbbaaf12f5e15b29f5506a15f57de736
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
6 years agoDMA: svace fix: Add code for handling null (WGID: 58265).
Jaejoon Yoo [Wed, 28 Dec 2016 06:19:54 +0000 (15:19 +0900)]
DMA: svace fix: Add code for handling null (WGID: 58265).

Change-Id: I168bd2e9effaa27ff1bdcdcce946905697f298b9
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
6 years agoDMA: Add more information to pl330_dma_debug function.
Jaejoon Yoo [Thu, 15 Dec 2016 08:16:38 +0000 (17:16 +0900)]
DMA: Add more information to pl330_dma_debug function.

Change-Id: Ideca8099a73ef3aec2ce13af71c37d68ede6228b
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
6 years agodma: set mask bit as 36
Eunok Jo [Tue, 10 Nov 2015 06:55:36 +0000 (06:55 +0000)]
dma: set mask bit as 36

Change-Id: I4cd8af74c2b2033c0105de4580d19d16381a36f1
Signed-off-by: Eunok Jo <eunok25.jo@samsung.com>
6 years agodma: Modify FLUSHP instuction for DP audio.
Jaejoon Yoo [Mon, 24 Oct 2016 06:42:46 +0000 (15:42 +0900)]
dma: Modify FLUSHP instuction for DP audio.

Change-Id: I353a38327e5b5265045547c6ced6c2a072f20a47
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
6 years agoRevert "dmaengine: pl330: fix bug that cause start the same descs in cyclic"
Jaejoon Yoo [Wed, 5 Oct 2016 02:19:41 +0000 (11:19 +0900)]
Revert "dmaengine: pl330: fix bug that cause start the same descs in cyclic"

This reverts commit 0091b9d6c1ef2caab6cb3b6c0aa75f9948307856.

Change-Id: Ideaea8c9a415a544335452f8e6bec969040c02d0

6 years agodma: Introduce DMA register dump.
Jaejoon Yoo [Tue, 2 Aug 2016 02:17:09 +0000 (11:17 +0900)]
dma: Introduce DMA register dump.

Change-Id: I4316c39a062fb862450c5e3bb9ff21055aade6e0
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
6 years agodma: pl330: clear interrupt flag in dma stop
Seokju Yoon [Tue, 24 Nov 2015 06:02:43 +0000 (15:02 +0900)]
dma: pl330: clear interrupt flag in dma stop

Change-Id: Ibd286459dfd26d2d2cbdea4f127bf1eaccf646ba
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
6 years agoDMA: fixed time loop code
Seokju Yoon [Fri, 27 Nov 2015 08:17:06 +0000 (17:17 +0900)]
DMA: fixed time loop code

Change-Id: I53e9216c0e015709219fb91f1b0cc36a716f13f3
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
6 years agodma: restore instruction wrapper register
Eunok Jo [Mon, 20 Jul 2015 02:20:19 +0000 (02:20 +0000)]
dma: restore instruction wrapper register

Wrapper register for instruction address should be restored after power mode.

Change-Id: Icbaf3fe80be32fc496cfdc22dc7ebc34dd00671a
Signed-off-by: Eunok Jo <eunok25.jo@samsung.com>
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
6 years agodma: of-dma: Support to set number of dma mask bit property.
Seokju Yoon [Thu, 18 Jun 2015 14:09:12 +0000 (23:09 +0900)]
dma: of-dma: Support to set number of dma mask bit property.

Change-Id: I329b65fa71cacddbc1be4df5bc32d142a8598c6d
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
6 years agoDMA: pl330: Fixed wrong operation in pl330 interrupt handler
Soohyun Kim [Fri, 4 Jul 2014 07:18:24 +0000 (16:18 +0900)]
DMA: pl330: Fixed wrong operation in pl330 interrupt handler

Channel release operation can occur while running interrupt handler.
It can causes the various side effect. This patch is adding
check usage count to avoid above problem.

Change-Id: I45a68b49837bd5abdb9a7404f2441e94393f2afe
Signed-off-by: Soohyun Kim <soohyuni.kim@samsung.com>
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
6 years agodma: Added the DMA wrapper control.
Lee Yongjin [Mon, 20 Apr 2015 11:21:34 +0000 (20:21 +0900)]
dma: Added the DMA wrapper control.

Change-Id: Ifaf27560957bd0c35e1bfc4fd5c8f553fe10eb33
Signed-off-by: Lee Yongjin <yongjin0.lee@samsung.com>
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
6 years agodma: set AxCACHE[1] as modifiable.
Eunok Jo [Thu, 16 Apr 2015 09:02:19 +0000 (18:02 +0900)]
dma: set AxCACHE[1] as modifiable.

Differ to NOC, TREX cannot chunk burst data
unless AxCACHE is set to high.

Change-Id: Ie54ccc6cb6ebf3570019a2bf9b34dd61d9581191
Signed-off-by: Eunok Jo <eunok25.jo@samsung.com>
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
6 years agodma: support 4burst mode for dev-to-mem and mem-to-dev transmit
Kang Nam Park [Mon, 29 Dec 2014 06:54:25 +0000 (15:54 +0900)]
dma: support 4burst mode for dev-to-mem and mem-to-dev transmit

Change-Id: I19b1d7f068a1774f693d9b3c3c201fb3042afa80
Signed-off-by: Kang Nam Park <kn0710.park@samsung.com>
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
6 years agodma: resolve prevent '52720'
Woncheon Ahn [Mon, 22 Dec 2014 04:21:47 +0000 (13:21 +0900)]
dma: resolve prevent '52720'

Change-Id: Icace7fafc9ffc27cfa70636589ce2f275d82e370
Signed-off-by: Woncheon Ahn <woncheon.an@samsung.com>
6 years agodma: pl330: Remove unaligned access code
Soohyun Kim [Tue, 14 Oct 2014 12:46:05 +0000 (21:46 +0900)]
dma: pl330: Remove unaligned access code

If cpu has not allowed unaligned access, this code maybe
has a problem. This patch is prevent above problem.

Change-Id: I4df50f6e7079a32801ba749654f1c8930bc4d142
Signed-off-by: Soohyun Kim <soohyuni.kim@samsung.com>
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
6 years agodma: pl330: Add timeout error on transient states
lakkyung jung [Mon, 25 Aug 2014 05:51:56 +0000 (14:51 +0900)]
dma: pl330: Add timeout error on transient states

Change-Id: I096698308a88376073588a7b1da42ed407261514
Signed-off-by: Lee Yongjin <yongjin0.lee@samsung.com>
6 years agodma: pl330: Changed the timeout function
Yongjin Lee [Sun, 9 Feb 2014 11:37:51 +0000 (20:37 +0900)]
dma: pl330: Changed the timeout function

Change-Id: I52449c51ade4ca3a4fe24a4988bc9912d7aecfb7
Signed-off-by: Yongjin Lee <yongjin0.lee@samsung.com>
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
6 years agodma: pl330: add guard codes for pre-released request
Lee Yongjin [Fri, 26 Jul 2013 08:59:04 +0000 (17:59 +0900)]
dma: pl330: add guard codes for pre-released request

Rarely, pl330_update() function is called for already freed request.
In that case, pl330_update gets id which value is -1, then kernel panic is occurred.

Change-Id: I6e426e576e2bba25891a280e8539d0c5b3dba7fe
Signed-off-by: Lee Yongjin <yongjin0.lee@samsung.com>
6 years agodma: pl330: add infinite loop functionality
Seokju Yoon [Tue, 16 Jun 2015 08:03:44 +0000 (17:03 +0900)]
dma: pl330: add infinite loop functionality

This patch adds an infinite loop feature to PL330 driver.
This feature removes the stop period of PL330 HW.

Change-Id: I5cb5be0eca76497c80ba0ad44021e62776c843d9
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
6 years agodma: pl330: support the arm_exynos_dma_mcode_ops in device tree
Lee Yongjin [Fri, 13 Sep 2013 05:39:19 +0000 (14:39 +0900)]
dma: pl330: support the arm_exynos_dma_mcode_ops in device tree

This patch is dma micro code allocation in special memory area.

Change-Id: Ic40c162e3a6ec317e70d8af675304304f2e5886c
Signed-off-by: Lee Yongjin <yongjin0.lee@samsung.com>
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
6 years agodma: pl330: add getposition() API
Seokju Yoon [Mon, 15 Jun 2015 08:07:34 +0000 (17:07 +0900)]
dma: pl330: add getposition() API

This patch adds a getposition() API to provide the current DMA buffer
position.

Change-Id: I8627e4c0d494701fe272fda55ac3e64792065074
Signed-off-by: Soohyun Kim <soohyuni.kim@samsung.com>
Signed-off-by: Seokju Yoon <sukju.yoon@samsung.com>
6 years ago[HACK] dma: add header file to support dma
Eunok Jo [Fri, 12 Jan 2018 07:06:38 +0000 (16:06 +0900)]
[HACK] dma: add header file to support dma

Change-Id: If73781484a96c550bc0315140b5677b877da7acc
Signed-off-by: Eunok Jo <eunok25.jo@samsung.com>
6 years ago[9610][ERD] arm64: config: Enable gpio_key
Jaehyoung Choi [Mon, 14 May 2018 05:41:19 +0000 (14:41 +0900)]
[9610][ERD] arm64: config: Enable gpio_key

Change-Id: I31aa8cf3bf81e85ac206f7d2db9a6fb7b7bee35a
Signed-off-by: Jaehyoung Choi <jkkkkk.choi@samsung.com>
6 years ago[9610][ERD] arm64: dts: Add gpio_key device node
Jaehyoung Choi [Mon, 14 May 2018 05:41:00 +0000 (14:41 +0900)]
[9610][ERD] arm64: dts: Add gpio_key device node

Change-Id: I6e4e1d1e1fe6c6bc8672211153b3ceeefa6319cd
Signed-off-by: Jaehyoung Choi <jkkkkk.choi@samsung.com>
6 years ago[COMMON] irq: Bound irq to boot cluster when multi target irq scenario.
Soohyun Kim [Thu, 2 Nov 2017 01:00:02 +0000 (10:00 +0900)]
[COMMON] irq: Bound irq to boot cluster when multi target irq scenario.

IRQD_GIC_MULTI_TARGET flag is enabled, All CPU can receive
interrupts. It cause increase power consumption, so we need to
limits the interrupt only to the boot cluster.

Change-Id: I9a44a07fd12220f8a2cfdd5539ccf52aec80677d
Signed-off-by: Soohyun Kim <soohyuni.kim@samsung.com>
6 years ago[COMMON] irqchip: gic: map irq_enable/irq_disable to gic_unmask_irq/gic_mask_irq
Eunki Kim [Fri, 14 Feb 2014 06:00:48 +0000 (15:00 +0900)]
[COMMON] irqchip: gic: map irq_enable/irq_disable to gic_unmask_irq/gic_mask_irq

It's possible to occur the spurious interrupt from the device.
However, it could be problem when it used for level interrupt.
This patch declares irq_disable to mask_irq in order to prevent
from the spurious interrupts and does irq_enable to unmak_irq
pairly.

Change-Id: Iec8de4232f67d2f9ab8762b481c2e4049bf7898c
Signed-off-by: Eunki Kim <eunki_kim@samsung.com>
Signed-off-by: Hosung Kim <hosung0.kim@samsung.com>
Signed-off-by: Hyunki Koo <hyunki00.koo@samsung.com>
6 years ago[COMMON] irqchip: gic: add dmb(ish) in gic_handle_irq
Hyunki Koo [Fri, 15 Apr 2016 07:47:11 +0000 (16:47 +0900)]
[COMMON] irqchip: gic: add dmb(ish) in gic_handle_irq

Change-Id: I09e180d1d7133d5c306531dd4db3ce8d3c0d176b
Signed-off-by: Hyunki Koo <hyunki00.koo@samsung.com>
Signed-off-by: Hosung Kim <hosung0.kim@samsung.com>
6 years ago[COMMON] irqchip: gic: implement multiple cpu targeted interrupt
Hosung Kim [Sun, 9 Apr 2017 11:49:29 +0000 (20:49 +0900)]
[COMMON] irqchip: gic: implement multiple cpu targeted interrupt

Current gic driver only supports single cpu targeted interrupt
though GIC HW supports multiple cpu targeted interrupt.
This patch implements this multiple cpu targeted interrupt
by controlling interrupt processor target registers in GIC HW.

Because use of multiple cpu targeted interrupt can cause
unnecessary wakeups of targeted cpus, use this feature
only when minimal interrupt latency is required

Change-Id: Iefb8625564e790eede677190aa2190290f7aee00
Signed-off-by: Hosung Kim <hosung0.kim@samsung.com>
6 years ago[COMMON] kernel: irq: don't migrate irqs with IRQD_GIC_MULTI_TARGET set
Hyunki Koo [Thu, 8 Mar 2018 09:07:29 +0000 (18:07 +0900)]
[COMMON] kernel: irq: don't migrate irqs with IRQD_GIC_MULTI_TARGET set

Don't migrate multi targeted interrupts during cpu hotplug out
if their masks include any onlie cpus.

This patch was missing by kernel version up, because this code was
in arch/arm64/kernel. But it is in kernel/irq now.

Change-Id: If1acc4c5acac8ca65bc4a3308db40530bdd1e17c
Signed-off-by: Hosung Kim <hosung0.kim@samsung.com>
Signed-off-by: Hyunki Koo <hyunki00.koo@samsung.com>
6 years agogenirq: move setting GIC_MULTI_TARGET flag
Hosung Kim [Thu, 8 Mar 2018 12:36:09 +0000 (21:36 +0900)]
genirq: move setting GIC_MULTI_TARGET flag

This commit moves setting the code of GIC_MULTI_TARGET flag
over to calling irq_startup function. Because of applying
genirq: Move initial affinity setup to irq_startup() by Thomas Gleixner
Patch, calling setup_affinity function was gone.
So there was no way to set affinity.

Change-Id: I68846906f35f45015ceff56450606c917fd8749d
Signed-off-by: Hosung Kim <hosung0.kim@samsung.com>
6 years ago[HACK] irq: irqchip: do not check irqd_irq_masked
Hyunki Koo [Fri, 26 Jan 2018 08:32:40 +0000 (17:32 +0900)]
[HACK] irq: irqchip: do not check irqd_irq_masked

Change-Id: Ieb2a610892000b536130629ae6238bcd139955e9
Signed-off-by: Hyunki Koo <hyunki00.koo@samsung.com>
6 years ago[COMMON] irq: add IRQF_GIC_MULTI_TARGET flag
Changhwan Youn [Mon, 29 Sep 2014 03:26:26 +0000 (12:26 +0900)]
[COMMON] irq: add IRQF_GIC_MULTI_TARGET flag

Add IRQF_GIC_MULTI_TARGET flag to target multiple cpus
during interrupt affinity setting.
In __setup_irq(), IRQD_GIC_MULTI_TARGET in irq_data is set
if IRQF_GIC_MULTI_TARGET is set.

Change-Id: Id65066e2ea85e3aadb078b644e2410c02b184b8c
Signed-off-by: Changhwan Youn <chaos.youn@samsung.com>
Signed-off-by: Hosung Kim <hosung0.kim@samsung.com>
6 years ago[9610] arm64: erd9610_defconfig: Enabled CONFIG_REGULATOR_FIXED_VOLTAGE
Jang JeongHoon [Mon, 14 May 2018 04:19:12 +0000 (13:19 +0900)]
[9610] arm64: erd9610_defconfig: Enabled CONFIG_REGULATOR_FIXED_VOLTAGE

Change-Id: I12644e6e5529764be1f53b507083e1182d5964df
Signed-off-by: Jang JeongHoon <jnghn.jang@samsung.com>
6 years ago[9610][ERD] arm64: dts: Add modem device tree
Jaehyoung Choi [Sat, 12 May 2018 08:07:08 +0000 (17:07 +0900)]
[9610][ERD] arm64: dts: Add modem device tree

Change-Id: I502b6ed357cd8c7efed55235ac59351f44ac4e67
Signed-off-by: Jaehyoung Choi <jkkkkk.choi@samsung.com>
6 years ago[9610][ERD] arm64: dts: Add reserveed mem device tree
Jaehyoung Choi [Sat, 12 May 2018 07:49:45 +0000 (16:49 +0900)]
[9610][ERD] arm64: dts: Add reserveed mem device tree

Add reserved mem device tree & Remove memory node

Change-Id: I0108daa5ec23e88864856675b0add26fc0c773f3
Signed-off-by: Jaehyoung Choi <jkkkkk.choi@samsung.com>
6 years ago[9610][ERD] arm64: dts: Change bootargs for Android
Jaehyoung Choi [Fri, 11 May 2018 07:56:43 +0000 (16:56 +0900)]
[9610][ERD] arm64: dts: Change bootargs for Android

Change-Id: I51d00c7b09a30f292971a08f4b924d056f1e9c6b
Signed-off-by: Jaehyoung Choi <jkkkkk.choi@samsung.com>
6 years ago[9610] arm64: dts: Added exynos-rgt device node.
Jang JeongHoon [Fri, 11 May 2018 06:49:07 +0000 (15:49 +0900)]
[9610] arm64: dts: Added exynos-rgt device node.

Change-Id: I26047b56d3a868909a6b8bb37012cdeb36695f97
Signed-off-by: Jang JeongHoon <jnghn.jang@samsung.com>
6 years ago[COMMON] soc: samsung: Added initial exynos-rgt driver.
Jang JeongHoon [Fri, 11 May 2018 06:48:47 +0000 (15:48 +0900)]
[COMMON] soc: samsung: Added initial exynos-rgt driver.

Change-Id: Id520def8ec546c9b371149108311c451ed44eb5b
Signed-off-by: Jang JeongHoon <jnghn.jang@samsung.com>
6 years agoRevert "[HACK][9610] drivers: acpm: set NULL to acpm_mfd_node"
Jang JeongHoon [Fri, 11 May 2018 05:45:43 +0000 (14:45 +0900)]
Revert "[HACK][9610] drivers: acpm: set NULL to acpm_mfd_node"

This reverts commit ee2f05c97aa0d68ee1c7b0dd9254594446f6aaff.

Change-Id: Ic1550153beaa3d62f4bc4c6dd737b0a68802a307

6 years ago[COMMON] drivers: i2c: Add I2C_CLIENT_SPEEDY
Naeun Yoo [Fri, 12 Jan 2018 12:44:41 +0000 (21:44 +0900)]
[COMMON] drivers: i2c: Add I2C_CLIENT_SPEEDY

Change-Id: I60608968106643c797b9a46828727cfadca5303b
Signed-off-by: Naeun Yoo <ne.yoo@samsung.com>
6 years ago[9610] arm64: dts: Added speedy_bus pinctrl.
Jang JeongHoon [Fri, 11 May 2018 05:24:23 +0000 (14:24 +0900)]
[9610] arm64: dts: Added speedy_bus pinctrl.

Change-Id: I6749a50ba277d580a57f2120f8ef10d4aa927df0
Signed-off-by: Jang JeongHoon <jnghn.jang@samsung.com>
6 years ago[9610] arm64: added configs and dt node for S2MPU09
Jieun Yi [Fri, 11 May 2018 04:40:45 +0000 (13:40 +0900)]
[9610] arm64: added configs and dt node for S2MPU09

Change-Id: I2fd82f9beec7446d2ee232f37b7163e519377cf3
Signed-off-by: Jieun Yi <jieun.yi@samsung.com>
6 years ago[9610] drivers: rtc: created rtc driver for S2MPU09
Jieun Yi [Fri, 11 May 2018 04:40:09 +0000 (13:40 +0900)]
[9610] drivers: rtc: created rtc driver for S2MPU09

Change-Id: Iddbbc11dd7beacd6cac21a922accafe5a23db899
Signed-off-by: Jieun Yi <jieun.yi@samsung.com>
6 years ago[9610] drivers: regulator: created regulator driver for S2MPU09
Jieun Yi [Fri, 11 May 2018 04:39:40 +0000 (13:39 +0900)]
[9610] drivers: regulator: created regulator driver for S2MPU09

Change-Id: Ie35d00eb3cdcd96a54b531e949681869281aaf6f
Signed-off-by: Jieun Yi <jieun.yi@samsung.com>
6 years ago[9610] drivers: mfd: created mfd driver for S2MPU09
Jieun Yi [Fri, 11 May 2018 04:38:54 +0000 (13:38 +0900)]
[9610] drivers: mfd: created mfd driver for S2MPU09

Change-Id: Ia4ecc49230a49f9b6af59a3520ac191f2e546106
Signed-off-by: Jieun Yi <jieun.yi@samsung.com>
6 years ago[9610] arm64: dtsi: Added speedy device node.
Jang JeongHoon [Fri, 11 May 2018 04:21:11 +0000 (13:21 +0900)]
[9610] arm64: dtsi: Added speedy device node.

Change-Id: I88c6e2ee39dec7f1bd6f91a3aaf1fa07831ca60f
Signed-off-by: Jang JeongHoon <jnghn.jang@samsung.com>
6 years ago[COMMON] i2c: busses: Added initial speedy driver.
Jang JeongHoon [Fri, 11 May 2018 03:51:44 +0000 (12:51 +0900)]
[COMMON] i2c: busses: Added initial speedy driver.

Change-Id: I7488199a94cff870f7595ca221c26ae64b30f67c
Signed-off-by: Jang JeongHoon <jnghn.jang@samsung.com>
6 years ago[HACK] [9610] driver: turn on charger always if notifier is not enabled
Keunho Hwang [Thu, 10 May 2018 12:05:25 +0000 (21:05 +0900)]
[HACK] [9610] driver: turn on charger always if notifier is not enabled

Change-Id: I1173c66588e6e9d32eaaac00763a70ded0f3155f
Signed-off-by: Keunho Hwang <keunho.hwang@samsung.com>
6 years ago[9610] configs: enable s2mu004 mfd/chg/fg, s2mu00x batt.
Keunho Hwang [Thu, 10 May 2018 12:08:11 +0000 (21:08 +0900)]
[9610] configs: enable s2mu004 mfd/chg/fg, s2mu00x batt.

Change-Id: Ib4e98c7ff5a8f0808f8da069913697258613037d
Signed-off-by: Keunho Hwang <keunho.hwang@samsung.com>