summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)AuthorFilesLines
2014-11-18brcmfmac: Add generic platform supportTomasz Figa1-0/+78
This patch adds basic support for generic platforms that do not require special platform data. Signed-off-by: Tomasz Figa <t.figa@samsung.com>
2014-11-18s5c73m3: Set default data plane lengths for interleaved dataSylwester Nawrocki1-0/+4
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
2014-11-18exynos4-is: Fix compressed format setting in fimc-captureSylwester Nawrocki1-2/+2
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
2014-11-18iommu/exynos: add dummy driver for enabling runtime pm for mem port devicesMarek Szyprowski1-0/+34
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2014-11-18iommu/exynos: register iommu-aware dma ops for client devicesMarek Szyprowski2-28/+62
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2014-11-18iommu/exynos: simplify some functionsMarek Szyprowski1-19/+8
Some functions are now called directly with all data structures available at caller, so simplify them and remove code extracting private structures. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2014-11-18iommu/exynos: remove support for multiple sysmmu's per single deviceMarek Szyprowski1-210/+100
Combined SYSMMU's has been removed, so there is no point to support more than one SYSMMU controller per single client device. This patch removes support for it and simplifies the code of the SYSMMU driver. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2014-11-18iommu/exynos: remove support for combined sysmmu controllersMarek Szyprowski1-119/+74
This patch removes support for combined SYSMMU controllers, which can be handled by defining separate device nodes for each controller. This significantly simplifies the code. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2014-11-18drm/exynos: add support for separate iommu mapping management by drm driverMarek Szyprowski5-4/+114
This patch adds support for a single, shared iommu domain (mapping and address space) management for all Exynos DRM subdrivers. The registered high priority notifier ensures that IOMMU driver will not create default domains for all devices which will be handled by Exynos DRM subdrivers. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2014-11-18drm/exynos: simplify and unify subdrivers registrationMarek Szyprowski1-120/+37
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2014-11-18drm/exynos: fimd: disable windows before registering driverMarek Szyprowski1-1/+4
Bootloader might enable some windows, so ensure that all windows are disabled before registering to the system. This solves IOMMU fault during registration if bootloader enabled some FIMD windows. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2014-11-18mfd: max8998: Add support for Device TreeTomasz Figa3-7/+193
This patch adds Device Tree support to max8998 driver. Signed-off-by: Tomasz Figa <t.figa@samsung.com> Acked-by: Mark Brown <broonie@linaro.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2014-11-18regulator: max8998: Use arrays for specifying voltages in platform dataTomasz Figa1-67/+29
This patch modifies the platform data of max8998 to use arrays for specifying predefined voltages of buck1 and buck2 instead of separate field for each voltage. This allows to simplify the code a bit and will help in adding support for Device Tree, which will be introduced in further patch. Signed-off-by: Tomasz Figa <t.figa@samsung.com> Acked-by: Mark Brown <broonie@linaro.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2014-11-18mfd: max8998: Add irq domain supportTomasz Figa3-26/+52
This patch adds irq domain support for max8998 interrupts. To keep both non-DT and DT worlds happy, simple domain is used, which is linear when no explicit IRQ base is specified and legacy, with static mapping, otherwise. Signed-off-by: Tomasz Figa <t.figa@samsung.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2014-11-18vt: disable console blankMarek Szyprowski1-1/+1
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2014-11-18drm/exynos: add dmabuf sync support for g2d driverInki Dae1-2/+82
Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18drm/exynos: add exynos_drm_gem_get_dmabuf functionInki Dae2-0/+21
Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18drm/exynos: remove duplicated error routine and unnecessary assignSeung-Woo Kim2-11/+7
There were duplicated error handling routines during allocating pages in lowlevel_buffer_allocate() and g2d_userptr_get_dma_addr(). Also unnecessary NULL assignments for variable used not any more are removed from g2d_userptr_get_dma_addr() and g2d_userptr_put_dma_addr(). Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Signed-off-by: YoungJun Cho <yj44.cho@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18drm/exynos: use drm_calloc_large when allocates pointer arrayYoungJun Cho2-8/+7
If the type of object is pointer array, the drm_calloc_large() is more suitable than kzalloc() for its allocation function. And uses drm_free_large() instead of kfree() also. Signed-off-by: YoungJun Cho <yj44.cho@samsung.com> Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18drm/exynos: check a pixel format to a particular window layerInki Dae1-0/+11
This patch checks if a requested window supports alpha channel or not. In case of s3c64xx, window 0 doesn't support alpha channel so if the request pixel format is ARGB8888 then change it to XRGB8888. Signed-off-by: Inki Dae <inki.dae@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
2014-11-18drm/exynos: Remove tracking log functionsYoungJun Cho20-437/+4
This patch removes tracking log functions which were used to debug in the early development stage and are not so important as were. So remove them for code clean up. Signed-off-by: YoungJun Cho <yj44.cho@samsung.com> Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18drm/exynos: hdmi: use drm_display_mode to check the supported modesRahul Sharma8-76/+41
This patch renames check_timing to check_mode and removes the unnecessary conversion of drm_display_mode to/from fb_videomode in the hdmi driver. v4: 1) Changed the commit message to add information related to renaming the callbacks to check_mode. 2) Changed debug message to print 1/0 for interlace mode. v3: 1) Replaced check_timing callbacks with check_mode. 2) Change the type of second parameter of check_mode callback from void pointer paramenter to struct drm_display_mode pointer. v2: 1) Removed convert_to_video_timing(). 2) Corrected DRM_DEBUG_KMS to print the resolution properly. Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18drm/exynos: fimd: Add support for S3C64xx SoCsTomasz Figa1-0/+10
The FIMD block present on S3C6400/S3C6410 SoCs is compatible with this driver, so it can be supported by it as well. This patch adds appropriate device IDs and driver data to enable this driver for S3C64xx SoCs. Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com> Acked-by: Joonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18drm/exynos: fimd: Add support for FIMD variants with clock selectionTomasz Figa1-0/+6
Some platforms that can be supported this driver has additional clock source selection bits in VIDCON0 register that allows to select which clock should be used to drive the pixel clock: bus clock or special clock. Since this driver assumes that special clock always drives the pixel clock, this patch sets the selection bitfield to use the special clock. Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com> Acked-by: Joonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18drm/exynos: fimd: Add support for FIMD versions without SHADOWCON registerTomasz Figa1-20/+49
Some platforms that can be supported with this driver have PRTCON register instead of SHADOWCON, which requires slightly different handling. This patch factors out all register shadow control code from the driver and adds a function to control register shadowing appropriately, depending on driver data. Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com> Acked-by: Joonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18drm/exynos: fimd: Hold pointer to driver data in context structTomasz Figa1-2/+3
This patch adds pointer to driver data to fimd_context structure, to remove the need to call drm_fimd_get_driver_data() each time access to driver data is necessary. Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com> Acked-by: Joonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18drm/exynos: do not use mode_set_base function directlyInki Dae1-2/+8
This patch adds exynos_drm_crtc_mode_set_commit function to update mode data and it makes page flip call this function instead of calling exynos_drm_crtc_mode_set_base function directly. exynos_drm_crtc_mode_set_base function is called by drm subsystem as a callback so we don't have to call this function directly. Signed-off-by: Inki Dae <inki.dae@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
2014-11-18drm/exynos: Remove redundant use of of_match_ptr macroSachin Kamat1-2/+1
'mixer_match_types' is always compiled in. Hence of_match_ptr is not necessary. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18drm/exynos: remove ignoring return value warning in hdmiSeung-Woo Kim1-1/+3
The definition of regulator_bulk_enable is fixed with __must_check and this causes following build warning. warning: ignoring return value of 'regulator_bulk_enable', declared with attribute warn_unused_result This patch fixes to check return value of the function. Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18drm/exynos: fix WINDOWS_NR checking to vidi driverInki Dae1-3/+3
This patch just checks if win_data array range is valid or not correctly. Signed-off-by: Inki Dae <inki.dae@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
2014-11-18drm/exynos: fix fimd pixel format settingInki Dae1-21/+13
This patch fixes wrong pixel format setting. A pixel format is decided according to bpp and depth, or user-requested format but fimd driver considered only bpp value to decide a proper pixel format. So this patch makes a proper pixel format to be set according to drm_framebuffer's pixel_format which is set by addfb with bpp and depth, or addfb2 with user-requested format. Signed-off-by: Inki Dae <inki.dae@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
2014-11-18drm/exynos: Add NULL pointer checkSachin Kamat1-0/+9
devm_kzalloc can fail. Hence check the pointer to avoid NULL pointer dereferencing. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18drm/exynos: Remove redundant error messagesSachin Kamat19-96/+30
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18drm/exynos: Add missing of.h header includeSachin Kamat6-1/+6
Add of.h explicitly for of_* APIs. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18drm/exynos: Remove module.h header inclusionSachin Kamat12-12/+0
Remove module.h header file inclusion from files since they do not use/refer to any code from that file. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18drm/exynos: Add missing includesMark Brown10-0/+10
Ensure that all externally accessed functions are correctly prototyped when defined in each file by making sure the headers with the protoypes are included in the file with the definition. Signed-off-by: Mark Brown <broonie@linaro.org> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18iio: add proximity/light sensor cm36651 driverBeomho Seo1-0/+648
- Add proximity/light sensor cm36651 driver using iio subsystem Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
2014-11-18iio:add proximity/light sensor cm36651 driver to Kconfig and MakefileBeomho Seo2-0/+12
- Add cm36651 proximity/light sensor to Kconfig to enable compilation - Add cm36651 proximity/light sensor to Makefile to enable compilation Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
2014-11-18dma-buf: return POLLIN | POLLOUT instead of POLLERRInki Dae1-2/+2
It's not error if a dmabuf wasn't locked when select is called but rather that means there is no anyone accessing the dmabuf so return POLLIN | POLLOUT. Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18Input: mcs_touchkey: Add parse DT function from device treeBeomho Seo1-5/+71
Add parse DT function for support mcs touchkey driver Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
2014-11-18dmabuf-sync: add select system call support.Inki Dae2-0/+66
This patch implements select system call for DMA BUF module and adds related codes to dmabuf sync framework. The purpose of this feature is to wait for the completion of DMA or CPU access to a dmabuf without that caller locks the dmabuf again after the completion. This feature is useful when caller wants to be aware of the completion of DMA access to a shared dmabuf, and the caller doesn't use interfaces for the DMA device driver. Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18clk: exynos4: Add additional G2D clocksSachin Kamat1-2/+7
Add G2D clocks for Exynos4x12 SoC and sclk_fimg2d required by G2D IP. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Cc: Thomas Abraham <thomas.abraham@linaro.org> Acked-by: Mike Turquette <mturquette@linaro.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2014-11-18video: display: panel-s6d6aa1: remove useless function.Donghwa Lee1-22/+0
There is no usage for s6d6aa1_read_id(). Signed-off-by: Donghwa Lee <dh09.lee@samsung.com>
2014-11-18DT: support l5f31188 panelHyungwon Hwang3-0/+680
Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
2014-11-18mmc: dw_mmc-exynos: supporte the packed commandJaehoon Chung1-0/+5
To increase the performance, use the packed command Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2014-11-18mmc: dw_mmc: add the specified capabilities2 of the controllerJaehoon Chung2-0/+5
Add the capabilities2 of controller to use *_CAP2_* Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2014-11-18mmc: Makefile: change the init sequence for indexing mmcblkXJaehoon Chung1-4/+4
To ensure mmcblk0 for eMMC, must call the dwmmc before calling sdhci. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2014-11-18extcon: max77693: Fix bug related to MAX77693 irq when set ADC debounce timeJonghwa Lee1-1/+9
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2014-11-18drm/exynos: add runtime pm interfaces to g2d driverInki Dae1-4/+31
This patch makes g2d power domain and clock to be controlled with runtime pm interfaces instead of controlling them respectively. Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-11-18clock: clk-exynos4: set the CLK_SET_RATE_PARENT for mmc4Jaehoon Chung1-1/+2
mmc4_clk set to CLK_SET_PARENT with DIV_F(). Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>