summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-03-20clk: max77686: Make max77686_clk_register() return struct clk *Tomasz Figa1-7/+10
As a preparation for further patches, this patch modifies the clock registration helper function to return a pointer to the newly registered clock. No functional change is done to the driver. Signed-off-by: Tomasz Figa <t.figa@samsung.com>
2014-03-20clk: max77686: Refactor successful exit of probe functionTomasz Figa1-2/+1
The function can simply return 0, without jumping to a separate label, which does exactly the same. This patch does not introduce any functional change, just a clean-up. Signed-off-by: Tomasz Figa <t.figa@samsung.com>
2014-03-20mfd: max77686: Enable register cacheTomasz Figa1-0/+19
This patch enables flat register cache for max77686 PMIC register to speed up operations like getting regulator voltage or clock status. Signed-off-by: Tomasz Figa <t.figa@samsung.com>
2014-03-20clk: max77686: Provide .recalc_rate() operationTomasz Figa1-0/+7
It is usually nice to know frequency of a clock, so this patch adds a .recalc_rate() callback returning rates of provided clocks. Signed-off-by: Tomasz Figa <t.figa@samsung.com>
2014-03-20clk: max77686: Correct callback used for checking clock statusTomasz Figa1-2/+2
Changing status of clock gates in max77686 requires i2c transfers, which can sleep, so this is done in prepare and unprepare callbacks. Due to this, checking whether whether the clock is ungated must be done in is_prepared() callback as well, for consistency. Signed-off-by: Tomasz Figa <t.figa@samsung.com>
2014-03-20brcmfmac: Add generic platform supportTomasz Figa2-0/+119
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-03-20s5c73m3: Set default data plane lengths for interleaved dataSylwester Nawrocki1-0/+4
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
2014-03-20exynos4-is: Fix compressed format setting in fimc-captureSylwester Nawrocki1-2/+2
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
2014-03-20ARM: dts: Add missing aliases for I2C bus controllers in exynos4412-m0.dtsSylwester Nawrocki1-1/+4
When an I2C bus controller is added without a corresponding entry in the aliases node the I2C core uses firs available number as the bus ID which may be one of already reserved IDs for other controllers. E.g. 0...7 are reserved for hardware I2C bus controllers I2C0.I2C7. Missing aliases were causing I2C0 bus adapter initialization to fail due to bus ID 0 being assigned to one of the i2c-gpio controllers. Fix this regression by adding corresponding node aliases. Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
2014-03-20ARM: Exynos4: dts: disable CMA support for MFC (obsoleted by IOMMU support)Marek Szyprowski1-0/+2
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2014-03-20ARM: Exynos4: add clocks for SYSMMU controller and enable IOMMU supportMarek Szyprowski2-28/+42
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2014-03-20iommu/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-03-20iommu/exynos: register iommu-aware dma ops for client devicesMarek Szyprowski2-28/+62
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2014-03-20iommu/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-03-20iommu/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-03-20iommu/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-03-20drm/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-03-20drm/exynos: simplify and unify subdrivers registrationMarek Szyprowski1-120/+37
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2014-03-20drm/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-03-20dts: universal c210 boardMarek Szyprowski2-0/+189
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2014-03-20mfd: max8998: Add support for Device TreeTomasz Figa6-7/+316
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-03-20regulator: max8998: Use arrays for specifying voltages in platform dataTomasz Figa5-97/+39
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-03-20mfd: max8998: Add irq domain supportTomasz Figa5-28/+57
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-03-20vt: disable console blankMarek Szyprowski1-1/+1
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2014-03-20drm/exynos: add dmabuf sync support for g2d driverInki Dae1-2/+82
Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-03-20drm/exynos: add exynos_drm_gem_get_dmabuf functionInki Dae2-0/+21
Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-03-20drm/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-03-20drm/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-03-20drm/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-03-20drm/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-03-20drm/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-03-20drm/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-03-20drm/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-03-20drm/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-03-20drm/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-03-20drm/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-03-20drm/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-03-20drm/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-03-20drm/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-03-20drm/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-03-20drm/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-03-20drm/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-03-20drm/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-03-20drm/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-03-20drm/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-03-20iio: 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-03-20TRATS2: dts: exynos4412-m0.dts: Add cm36651 proximity/light sensor nodeBeomho Seo2-0/+41
- Support cm36651 proximity/light sensor device for TRATS2 board - Add also the binding documentation file Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
2014-03-20ARM: tizen_defconfig: add cm36651 proxmity/light sensor configBeomho Seo1-1/+3
- Add cm36651 proximity/light sensor configuration - Disable gp2ap002a00f proximity/light sensor configuration Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
2014-03-20iio: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-03-20dma-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>