platform/kernel/linux-3.10.git
9 years agoclk: samsung: exynos4: Allow rate setting propagation through sclk_vpll
Tomasz Figa [Mon, 13 May 2013 15:54:36 +0000 (17:54 +0200)]
clk: samsung: exynos4: Allow rate setting propagation through sclk_vpll

This patch adds CLK_SET_RATE_PARENT flag to sclk_vpll to allow rate
configuration of VPLL on Exynos4210 and Exynos4x12.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoclk: samsung: pll: Add support for PLL36xx rate configuration
Tomasz Figa [Mon, 13 May 2013 15:51:59 +0000 (17:51 +0200)]
clk: samsung: pll: Add support for PLL36xx rate configuration

This patch adds implementation of round_rate and set_rate operations of
PLL36xx PLLs used on Exynos 4x12 SoCs as EPLL and VPLL.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4412-slp_pq: Correct cpufreq device node
Lukasz Majewski [Mon, 4 Mar 2013 12:13:47 +0000 (13:13 +0100)]
ARM: dts: exynos4412-slp_pq: Correct cpufreq device node

9 years agoclk: samsung: pll: Do not return error codes in round_rate callback
Tomasz Figa [Fri, 1 Mar 2013 17:28:31 +0000 (18:28 +0100)]
clk: samsung: pll: Do not return error codes in round_rate callback

This patch modifies pll35xx round_rate callback to return current
frequency instead of error codes to avoid problems caused by clock core
using error codes as frequencies.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4210-trats: Use board name for BUCK1 regulator
Tomasz Figa [Fri, 1 Mar 2013 17:16:30 +0000 (18:16 +0100)]
ARM: dts: exynos4210-trats: Use board name for BUCK1 regulator

This patch removes the workaround originally required for cpufreq and
sets BUCK1 regulator name to name specified in board schematics.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4210-trats: Add cpufreq node
Tomasz Figa [Fri, 1 Mar 2013 17:15:48 +0000 (18:15 +0100)]
ARM: dts: exynos4210-trats: Add cpufreq node

This patch adds cpufreq node with board-specific parameters to enable
CPU frequency scaling on Trats board.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4210: Add cpufreq node
Tomasz Figa [Fri, 1 Mar 2013 17:15:05 +0000 (18:15 +0100)]
ARM: dts: exynos4210: Add cpufreq node

This patch adds cpufreq node with SoC specific parameters of cpufreq
driver.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agocpufreq: exynos4210: Use common clock operations for APLL configuration
Tomasz Figa [Fri, 1 Mar 2013 17:12:02 +0000 (18:12 +0100)]
cpufreq: exynos4210: Use common clock operations for APLL configuration

This patch modifies the driver to use clk_set_rate for setting the rate
of APLL.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agocpufreq: exynos4210: Use device-based lookup for clocks
Tomasz Figa [Fri, 1 Mar 2013 17:10:53 +0000 (18:10 +0100)]
cpufreq: exynos4210: Use device-based lookup for clocks

This patch adds device-based lookup of clocks to allow lookup using
Device Tree.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoclk: samsung: pll: Add support for PLL45xx rate setting
Tomasz Figa [Fri, 1 Mar 2013 16:53:53 +0000 (17:53 +0100)]
clk: samsung: pll: Add support for PLL45xx rate setting

This patch adds support for setting rate of PLL45xx based on PMS table
received from SoC-specific code.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agocpufreq: Replace set_apll code with common clock framework's clk_set_rate()
Lukasz Majewski [Mon, 25 Feb 2013 18:02:33 +0000 (19:02 +0100)]
cpufreq: Replace set_apll code with common clock framework's  clk_set_rate()

This commit is a first step for moving common clock's framework code
from exynos4x12-cpufreq.c to common clock framework.

Tested-at: Trats (U1HD) (Exynos4210), Proxima PQ, Redwood (Exynos4412)

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
9 years agoclock: Support for [A|M]PLL's (35xx) set_rate and round_rate functions
Lukasz Majewski [Mon, 25 Feb 2013 15:40:46 +0000 (16:40 +0100)]
clock: Support for [A|M]PLL's (35xx) set_rate and round_rate functions

Support for [A|M]PLL's [set|round]_rate functions has been added.
Now simple call to clk_set_rate is responsible for setting proper
frequency.

This commit allows for further refactoring of exynos4x12-cpufreq.c code.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
clk: Fix bug on setting xpll's pms value in clk-pll.c

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
9 years agoARM: dts: exynos4x12-slp_pq: Add cpufreq node
Tomasz Figa [Tue, 19 Mar 2013 14:25:52 +0000 (15:25 +0100)]
ARM: dts: exynos4x12-slp_pq: Add cpufreq node

This patch adds cpufreq node with board-specific parameters to enable
CPU frequency scaling on SLP PQ board.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4x12: Add cpufreq node
Tomasz Figa [Tue, 19 Mar 2013 14:24:14 +0000 (15:24 +0100)]
ARM: dts: exynos4x12: Add cpufreq node

This patch adds cpufreq node with SoC specific paramaters for
cpufreq-exynos driver.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agocpufreq: exynos4x12: Parse frequency table from device tree
Lukasz Majewski [Thu, 14 Feb 2013 18:43:20 +0000 (19:43 +0100)]
cpufreq: exynos4x12: Parse frequency table from device tree

Proxima PQ (rev1.1) can run stable at frequencies not higher than 1100 MHz.
In the current code (exynos4x12-cpufreq) frequency up to 1400 MHz
can be set (which shall work for REDWOOD).

For the Proxima PQ frequency table has been modified and passed via device
tree.

Tested-on: Proxima PQ rev1.1

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agocpufreq: Adjust exynos4x12 cpufreq to work with v3.8-mobile (with common clocks)
Lukasz Majewski [Wed, 13 Feb 2013 16:50:12 +0000 (17:50 +0100)]
cpufreq: Adjust exynos4x12 cpufreq to work with v3.8-mobile (with common clocks)

It was needed to change the clock names to reflect clock change on the
Exynos4412 device (especially arm_clk, mout_core") and add device-based
lookup to allow getting clocks from device tree.

Tested-on: Exynos4412 Proxima PQ (rev.1.1)

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agocpufreq: exynos: Use device-based lookup for vdd_arm regulator
Tomasz Figa [Fri, 1 Mar 2013 17:09:39 +0000 (18:09 +0100)]
cpufreq: exynos: Use device-based lookup for vdd_arm regulator

This patch adds device-based lookup of vdd_arm regulator to allow lookup
using Device Tree.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agocpufreq: exynos: Save struct device in driver data
Tomasz Figa [Fri, 1 Mar 2013 17:07:56 +0000 (18:07 +0100)]
cpufreq: exynos: Save struct device in driver data

This patch adds dev field in exynos cpufreq driver data to allow Device
Tree based clock and regulator lookups.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agocpufreq: Define cpufreq as a platform device
Lukasz Majewski [Thu, 14 Feb 2013 18:41:39 +0000 (19:41 +0100)]
cpufreq: Define cpufreq as a platform device

Now the cpufreq has been defined as a platform device. It will facilitate
binding to parameters passed via device tree.

We shall tweak the cpufreq configuration via board dependent dts files,
not per platform specific files.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
9 years agoARM: EXYNOS: Add sec_debug module stub
Tomasz Figa [Thu, 21 Feb 2013 15:25:00 +0000 (16:25 +0100)]
ARM: EXYNOS: Add sec_debug module stub

This patch adds simple stub for sec_debug module to allow unmodified
Tizen images to be booted.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4412-redwood: Enable MFC and CMA
Marek Szyprowski [Tue, 20 Aug 2013 13:15:13 +0000 (15:15 +0200)]
ARM: dts: exynos4412-redwood: Enable MFC and CMA

This patch adds device tree nodes for MFC and its CMA memory regions
to enable MFC/DRM/MALI support on Redwood board.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
9 years agoARM: dts: exynos4x12: Disable handling of ISP power domain
Tomasz Figa [Thu, 21 Feb 2013 11:34:22 +0000 (12:34 +0100)]
ARM: dts: exynos4x12: Disable handling of ISP power domain

ISP power domain needs special handling and in current state disabling
it crashes the system. This patch disables ISP power domain handling
until it gets fixed.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoclk: samsung: exynos4: List available mux clocks
Tomasz Figa [Thu, 14 Feb 2013 10:01:18 +0000 (11:01 +0100)]
clk: samsung: exynos4: List available mux clocks

This patch adds missing mux clocks to Device Tree binding documentation
of Exynos4 clock driver.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4210-trats: enable invert feature of touchscreen
Joonyoung Shim [Tue, 29 Jan 2013 08:02:04 +0000 (17:02 +0900)]
ARM: dts: exynos4210-trats: enable invert feature of touchscreen

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
9 years agodrm/exynos: add EXYNOS_DISPLAY_TYPE_LCD for TIZEN
Joonyoung Shim [Tue, 29 Jan 2013 08:00:54 +0000 (17:00 +0900)]
drm/exynos: add EXYNOS_DISPLAY_TYPE_LCD for TIZEN

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
9 years agomisc: add global lock driver for TIZEN
Joonyoung Shim [Tue, 29 Jan 2013 08:00:09 +0000 (17:00 +0900)]
misc: add global lock driver for TIZEN

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
9 years agoARM: dts: Add missing MIPI-CSIS clock properties for Exynos4 SoCs
Sylwester Nawrocki [Wed, 13 Feb 2013 14:56:30 +0000 (15:56 +0100)]
ARM: dts: Add missing MIPI-CSIS clock properties for Exynos4 SoCs

Add MIPI-CSIS clock properties missing in commit
c266c6dc5fb3c597d0e1a706438aa64797ca249b
ARM: dts: Correct FIMC clocks definitions for Exynos4210

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
9 years agoARM: dts: Add empty camera pinctrl property for Trats board
Sylwester Nawrocki [Wed, 13 Feb 2013 11:52:52 +0000 (12:52 +0100)]
ARM: dts: Add empty camera pinctrl property for Trats board

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
9 years agoARM: dts: Add CMA region definitions and enable MFC for Trats board
Marek Szyprowski [Wed, 3 Jul 2013 06:54:47 +0000 (08:54 +0200)]
ARM: dts: Add CMA region definitions and enable MFC for Trats board

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
9 years agoARM: dts: Add FIMC nodes for Exynos4210 Trats board
Sylwester Nawrocki [Wed, 13 Feb 2013 11:26:45 +0000 (12:26 +0100)]
ARM: dts: Add FIMC nodes for Exynos4210 Trats board

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
9 years agoARM: dts: Remove unnecessary properties in PQ camera node
Sylwester Nawrocki [Wed, 13 Feb 2013 11:26:09 +0000 (12:26 +0100)]
ARM: dts: Remove unnecessary properties in PQ camera node

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
9 years agoARM: dts: Correct FIMC clocks definitions for Exynos4210
Sylwester Nawrocki [Wed, 13 Feb 2013 11:24:42 +0000 (12:24 +0100)]
ARM: dts: Correct FIMC clocks definitions for Exynos4210

Set sclk_mpll as parent clock for FIMC and camera clocks
for Exynos4210 and mout_mpll_user_t for Exynos4x12.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
9 years agoUSB: s3c-hsotg: fix Kconfig dependency
Marek Szyprowski [Tue, 12 Feb 2013 10:51:18 +0000 (11:51 +0100)]
USB: s3c-hsotg: fix Kconfig dependency

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
9 years agoARM: dts: Add dts file for exynos4412-m0 board
Tomasz Figa [Tue, 5 Feb 2013 14:59:06 +0000 (15:59 +0100)]
ARM: dts: Add dts file for exynos4412-m0 board

This patch adds a basic dts file for M0 board based on Exynos 4412
SoC.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: Add dts file for exynos4412-redwood board
Tomasz Figa [Tue, 5 Feb 2013 14:59:06 +0000 (15:59 +0100)]
ARM: dts: Add dts file for exynos4412-redwood board

This patch adds a basic dts file for Redwood board based on Exynos 4412
SoC.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4210-trats: Update display nodes for CDF
Tomasz Figa [Wed, 6 Feb 2013 16:16:35 +0000 (17:16 +0100)]
ARM: dts: exynos4210-trats: Update display nodes for CDF

This patch updates DSI controller and LCD panel nodes in device tree
source of exynos4210-trats board for new exynos-dsi and s6e8ax0 drivers
using Common Display Framework.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4412-slp_pq: Update display nodes for CDF
Tomasz Figa [Mon, 28 Jan 2013 14:37:43 +0000 (15:37 +0100)]
ARM: dts: exynos4412-slp_pq: Update display nodes for CDF

This patch updates display device nodes in exynos4412-slp_pq.dts to be
compatible with new drivers using Common Display Framework.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4: Add node for exynos-dsi to exynos4.dtsi
Tomasz Figa [Fri, 31 Aug 2012 10:26:33 +0000 (12:26 +0200)]
ARM: dts: exynos4: Add node for exynos-dsi to exynos4.dtsi

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
ARM: dts: exynos4: Update DSI node for new driver

This patch updates DSI controller node in exynos4.dtsi for new
exynos-dsi driver.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agovideo: display: Add panel-s6e8aa0 driver
Tomasz Figa [Wed, 6 Feb 2013 16:11:57 +0000 (17:11 +0100)]
video: display: Add panel-s6e8aa0 driver

This patch adds a CDF-compliant panel driver for S6E8AA0 DSI
LCD panel.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agovideo: display: Add panel-s6d6aa1 driver
Tomasz Figa [Tue, 5 Feb 2013 14:57:50 +0000 (15:57 +0100)]
video: display: Add panel-s6d6aa1 driver

This patch adds a CDF-compliant panel driver for S6D6AA1 DSI LCD panel.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agovideo: display: Add exynos-dsi video source driver
Tomasz Figa [Mon, 28 Jan 2013 14:24:28 +0000 (15:24 +0100)]
video: display: Add exynos-dsi video source driver

This patch adds new driver for DSI master block available in Samsung
Exynos SoCs. The driver is designed and written specifically for Common
Display Framework.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: EXYNOS: Make MACH_EXYNOS4_DT select S5P_SETUP_MIPIPHY
Tomasz Figa [Mon, 3 Sep 2012 13:51:26 +0000 (15:51 +0200)]
ARM: EXYNOS: Make MACH_EXYNOS4_DT select S5P_SETUP_MIPIPHY

S5P_SETUP_MIPIPHY is needed for device tree support of MIPI DSI on
Exynos4.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: Exynos4: fix DSIM support
Marek Szyprowski [Mon, 11 Jun 2012 11:27:17 +0000 (13:27 +0200)]
ARM: Exynos4: fix DSIM support

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
9 years agovideo: add display-core
Tomasz Figa [Wed, 30 Jan 2013 10:07:46 +0000 (11:07 +0100)]
video: add display-core

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: Exynos: enable CMA and MFC for SLP_PQ board
Marek Szyprowski [Tue, 20 Aug 2013 12:59:04 +0000 (14:59 +0200)]
ARM: Exynos: enable CMA and MFC for SLP_PQ board

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
9 years agomedia: s5p-mfc: add support for runtime pm for memport client devices
Marek Szyprowski [Wed, 7 Aug 2013 09:01:53 +0000 (11:01 +0200)]
media: s5p-mfc: add support for runtime pm for memport client devices

Client device for handling memory/dma operations for right and left memory
port (memory bank) require runtime pm handling for correct operation. Add
required calls to power_on/power_off functions.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
9 years agomedia: s5p-mfc: remove DT hacks and simplify initialization code
Marek Szyprowski [Tue, 12 Feb 2013 13:03:29 +0000 (14:03 +0100)]
media: s5p-mfc: remove DT hacks and simplify initialization code

This patch removes custom initialization of reserved memory regions from
s5p-mfc driver. Memory initialization can be now handled by generic
code.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
9 years agoARM: Exynos: replace custom MFC reserved memory handling with generic code
Marek Szyprowski [Tue, 30 Jul 2013 13:23:55 +0000 (15:23 +0200)]
ARM: Exynos: replace custom MFC reserved memory handling with generic code

MFC driver use custom bindings for managing reserved memory. Those bindings
are not really specific to MFC device and no even well discussed. They can
be easily replaced with generic, platform independent code for handling
reserved and contiguous memory.

Two additional child devices for each memory port (AXI master) are
introduced to let one assign some properties to each of them. Later one
can also use them to assign properties related to SYSMMU controllers,
which can be used to manage the limited dma window provided by those
memory ports.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
9 years agoARM: init: add support for reserved memory defined by device tree
Marek Szyprowski [Fri, 9 Aug 2013 11:01:08 +0000 (13:01 +0200)]
ARM: init: add support for reserved memory defined by device tree

Enable reserved memory initialization from device tree.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Acked-by: Tomasz Figa <t.figa@samsung.com>
9 years agodrivers: of: add initialization code for dma reserved memory
Marek Szyprowski [Mon, 29 Jul 2013 12:09:55 +0000 (14:09 +0200)]
drivers: of: add initialization code for dma reserved memory

This patch adds device tree support for contiguous and reserved memory
regions defined in device tree.

Large memory blocks can be reliably reserved only during early boot.
This must happen before the whole memory management subsystem is
initialized, because we need to ensure that the given contiguous blocks
are not yet allocated by kernel. Also it must happen before kernel
mappings for the whole low memory are created, to ensure that there will
be no mappings (for reserved blocks) or mapping with special properties
can be created (for CMA blocks). This all happens before device tree
structures are unflattened, so we need to get reserved memory layout
directly from fdt.

Later, those reserved memory regions are assigned to devices on each
device structure initialization.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Acked-by: Tomasz Figa <t.figa@samsung.com>
9 years agodrivers: of: add function to scan fdt nodes given by path
Marek Szyprowski [Thu, 27 Jun 2013 08:32:15 +0000 (10:32 +0200)]
drivers: of: add function to scan fdt nodes given by path

Add a function to scan the flattened device-tree starting from the
node given by the path. It is used to extract information (like reserved
memory), which is required on early boot before we can unflatten the tree.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Acked-by: Tomasz Figa <t.figa@samsung.com>
9 years agodrivers: dma-contiguous: clean source code and prepare for device tree
Marek Szyprowski [Mon, 29 Jul 2013 12:31:45 +0000 (14:31 +0200)]
drivers: dma-contiguous: clean source code and prepare for device tree

This patch cleans the initialization of dma contiguous framework. The
all-in-one dma_declare_contiguous() function is now separated into
dma_contiguous_reserve_area() which only steals the the memory from
memblock allocator and dma_contiguous_add_device() function, which
assigns given device to the specified reserved memory area. This improves
the flexibility in defining contiguous memory areas and assigning device
to them, because now it is possible to assign more than one device to
the given contiguous memory area. Such split in initialization procedure
is also required for upcoming device tree support.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Acked-by: Tomasz Figa <t.figa@samsung.com>
9 years agoregulator: max77693: Remove no longer supported __dev* attributes
Sylwester Nawrocki [Fri, 8 Feb 2013 18:26:33 +0000 (19:26 +0100)]
regulator: max77693: Remove no longer supported __dev* attributes

This patch fixes following build error:

drivers/regulator/max77693.c:673: error: expected â€˜=’, â€˜,’, â€˜;’, â€˜asm’ or â€˜__attribute__’ before â€˜int’
drivers/regulator/max77693.c:743: error: expected â€˜=’, â€˜,’, â€˜;’, â€˜asm’ or â€˜__attribute__’ before â€˜max77693_pmic_remove’
drivers/regulator/max77693.c:768: error: â€˜max77693_pmic_probe’ undeclared here (not in a function)
drivers/regulator/max77693.c:769: error: implicit declaration of function â€˜__devexit_p’
drivers/regulator/max77693.c:769: error: â€˜max77693_pmic_remove’ undeclared here (not in a function)

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
9 years agoregulator: Remove const from declation of reg_desc in regulator_dev.
Jonghwa Lee [Thu, 7 Feb 2013 06:05:27 +0000 (15:05 +0900)]
regulator: Remove const from declation of reg_desc in regulator_dev.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
9 years agoregulator: max77693: Add regulator driver for max77693
Jonghwa Lee [Thu, 7 Feb 2013 06:04:33 +0000 (15:04 +0900)]
regulator: max77693: Add regulator driver for max77693

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
9 years agov4l2: videobuf2-dc: fix support for mappings without struct page in userptr mode
Marek Szyprowski [Fri, 7 Jun 2013 12:09:29 +0000 (14:09 +0200)]
v4l2: videobuf2-dc: fix support for mappings without struct page in userptr mode

Earlier version of dma-contig allocator in user ptr mode assumed that in
all cases DMA address equals physical address. This was just a special case.
Commit e15dab752d4c588544ccabdbe020a7cc092e23c8 introduced correct support
for converting userpage to dma address, but unfortunately it broke the
support for simple dma address = physical address for the case, when given
physical frame has no struct page associated with it (this happens if one
use for example dma_declare_coherent api or other reserved memory approach).
This commit restores support for such cases.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
9 years agoARM: dts: Add camera clocks definitions to exynos4/x12.dtsi
Sylwester Nawrocki [Fri, 18 Jan 2013 18:14:50 +0000 (19:14 +0100)]
ARM: dts: Add camera clocks definitions to exynos4/x12.dtsi

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
9 years agoARM: dts: Add MFC node for Exynos4 SoC series
Sylwester Nawrocki [Tue, 29 Jan 2013 13:44:19 +0000 (14:44 +0100)]
ARM: dts: Add MFC node for Exynos4 SoC series

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
9 years agoARM: dts: Add pinctrl property to fimc-is node for PQ board
Sylwester Nawrocki [Wed, 23 Jan 2013 16:25:56 +0000 (17:25 +0100)]
ARM: dts: Add pinctrl property to fimc-is node for PQ board

9 years agoARM: dts: Add pinctrl entries for FIMC-IS peripherals
Sylwester Nawrocki [Mon, 7 Jan 2013 19:27:53 +0000 (20:27 +0100)]
ARM: dts: Add pinctrl entries for FIMC-IS peripherals

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
9 years agoARM: EXYNOS: change the value of EXYNOS4X12_ISP_LOWPWR
Younghwan Joo [Thu, 15 Nov 2012 12:02:27 +0000 (21:02 +0900)]
ARM: EXYNOS: change the value of EXYNOS4X12_ISP_LOWPWR

This patch is to fix the value of EXYNOS4X12_ISP_LOWPWR register
to zero at AFTR mode. It ensure the sub selection mux of mcuisp400
and isp200 reset a default position after power down

Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
Signed-off-by: JaeYong Shin <jy2.shin@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
9 years agoARM: dts: Add camera device nodes for PQ board
Sylwester Nawrocki [Wed, 6 Feb 2013 17:34:42 +0000 (18:34 +0100)]
ARM: dts: Add camera device nodes for PQ board

This patch adds all nodes for camera devices on an example Exynos4412 SoC
based board. This is all what's required in the board dts file to enable
rear facing camera (S5C73M3 sensor).

The aliases node contains entries required for the camera processing
data path entity drivers.

The sensor nodes use standard port/remote-endpoint nodes convention.
Internal SoC links between entities are not specified this way and
are coded in the driver instead.

The S5C73M3 sensor uses two control buses: I2C and SPI. There are
two, i2c_0 and spi_1 bus controller child nodes assigned to it.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
9 years agoARM: dts: Correct camera pinctrl nodes for Exynos4x12 SoCs
Sylwester Nawrocki [Wed, 24 Oct 2012 14:42:12 +0000 (16:42 +0200)]
ARM: dts: Correct camera pinctrl nodes for Exynos4x12 SoCs

Add separate nodes for the CAMCLK pin and turn off pull-up on camera
ports A, B. The video bus pins and the clock output (CAMCLK) pin need
separate nodes since full camera port is not used in some configurations,
e.g. for MIPI CSI-2 bus on CAMCLK is required and data/clock signal
use separate dedicated pins.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
9 years agoARM: dts: Add FIMC and MIPI CSIS device nodes for Exynos4x12
Sylwester Nawrocki [Mon, 7 Jan 2013 16:13:58 +0000 (17:13 +0100)]
ARM: dts: Add FIMC and MIPI CSIS device nodes for Exynos4x12

Add common camera node and fimc nodes specific to Exynos4212 and
Exynos4412 SoCs. fimc-is is a node for the Exynos4x12 FIMC-IS
subsystem and fimc-lite nodes are created as its child nodes,
among others due to FIMC-LITE device dependencies on FIMC-IS
related clocks.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
9 years agoARM: dts: Add ISP power domain node for Exynos4x12
Sylwester Nawrocki [Mon, 10 Dec 2012 14:23:38 +0000 (15:23 +0100)]
ARM: dts: Add ISP power domain node for Exynos4x12

The ISP power domain is a common power domain for fimc-lite
and fimc-is (ISP) devices.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
9 years agoARM: dts: Add camera to node exynos4.dtsi
Sylwester Nawrocki [Wed, 24 Oct 2012 15:00:57 +0000 (17:00 +0200)]
ARM: dts: Add camera to node exynos4.dtsi

This patch adds common FIMC device nodes for all Exynos4 SoCs.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
9 years agos5c73m3: Disable boot_from_rom
Sylwester Nawrocki [Wed, 23 Jan 2013 11:37:03 +0000 (12:37 +0100)]
s5c73m3: Disable boot_from_rom

Boot from FROM memory is only for the mainline kernel.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
9 years agoV4L: s5c73m3: Initial device tree support
Sylwester Nawrocki [Wed, 23 Jan 2013 11:32:05 +0000 (12:32 +0100)]
V4L: s5c73m3: Initial device tree support

Add OF match table for the I2C client and SPI device driver,
and GPIO handling for DT. This is minimum required to make
the driver work with DT.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
9 years agoARM: dts: exynos4: Add clock lookups to hsotg node
Tomasz Figa [Mon, 7 Jan 2013 17:23:04 +0000 (18:23 +0100)]
ARM: dts: exynos4: Add clock lookups to hsotg node

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4412-slp_pq: Add nodes for xxti and xusbxti clocks
Tomasz Figa [Mon, 7 Jan 2013 17:10:22 +0000 (18:10 +0100)]
ARM: dts: exynos4412-slp_pq: Add nodes for xxti and xusbxti clocks

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4210-trats: Add nodes for xxti and xusbxti clocks
Tomasz Figa [Mon, 7 Jan 2013 17:09:08 +0000 (18:09 +0100)]
ARM: dts: exynos4210-trats: Add nodes for xxti and xusbxti clocks

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agodrm/exynos: add dt match table for vidi module.
Inki Dae [Fri, 4 Jan 2013 07:27:03 +0000 (16:27 +0900)]
drm/exynos: add dt match table for vidi module.

Signed-off-by: Inki Dae <inki.dae@samsung.com>
9 years agoARM: DTS: SLP-PQ: add drm virtual display node.
Inki Dae [Fri, 4 Jan 2013 07:25:52 +0000 (16:25 +0900)]
ARM: DTS: SLP-PQ: add drm virtual display node.

Signed-off-by: Inki Dae <inki.dae@samsung.com>
9 years agoARM: dts: exynos4412-slp_pq: add fimd iommu support
Inki Dae [Thu, 3 Jan 2013 10:03:19 +0000 (19:03 +0900)]
ARM: dts: exynos4412-slp_pq: add fimd iommu support

Signed-off-by: Inki Dae <inki.dae@samsung.com>
9 years agoARM: EXYNOS: select ARM_DMA_USE_IOMMU for MACH_EXYNOS4_DT
Inki Dae [Thu, 3 Jan 2013 10:01:41 +0000 (19:01 +0900)]
ARM: EXYNOS: select ARM_DMA_USE_IOMMU for MACH_EXYNOS4_DT

if EXYNOS_IOMMU is enabled then ARM_DMA_USE_IOMMU
will be enabled also.

Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: EXYNOS: add ARM_HAS_SG_CHAIN config
Inki Dae [Thu, 3 Jan 2013 05:00:30 +0000 (14:00 +0900)]
ARM: EXYNOS: add ARM_HAS_SG_CHAIN config

Signed-off-by: Inki Dae <inki.dae@samsung.com>
9 years agodrm/exynos: fimd: clear channel before enabling iommu
Akshu Agrawal [Wed, 26 Dec 2012 11:27:41 +0000 (06:27 -0500)]
drm/exynos: fimd: clear channel before enabling iommu

If any fimd channel was already active, initializing iommu will result
in a PAGE FAULT (e.g. u-boot could have turned on the display and
not disabled it before the kernel starts). This patch checks if any
channel is active before initializing iommu and disables it.

Signed-off-by: Akshu Agrawal <akshu.a@samsung.com>
Signed-off-by: Prathyush K <prathyush.k@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
9 years agoARM: dts: exynos4210-trats: Fix vdd_arm regulator name
Tomasz Figa [Thu, 3 Jan 2013 16:53:55 +0000 (17:53 +0100)]
ARM: dts: exynos4210-trats: Fix vdd_arm regulator name

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4210-trats: Add display support on Trats
Tomasz Figa [Fri, 31 Aug 2012 10:32:35 +0000 (12:32 +0200)]
ARM: dts: exynos4210-trats: Add display support on Trats

This commit adds nodes and attributes necessary to enable support of
MIPI DSIM, LCD and FIMD on Trats board.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Conflicts:
arch/arm/boot/dts/exynos4210-trats.dts

9 years agoARM: dts: exynos4412-slp_pq: Enable USB PHY node
Tomasz Figa [Fri, 28 Dec 2012 15:44:57 +0000 (16:44 +0100)]
ARM: dts: exynos4412-slp_pq: Enable USB PHY node

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4210-trats: Enable USB PHY node
Tomasz Figa [Fri, 28 Dec 2012 15:44:39 +0000 (16:44 +0100)]
ARM: dts: exynos4210-trats: Enable USB PHY node

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4: Move usbphy node to SoC-specific dts files
Tomasz Figa [Mon, 7 Jan 2013 14:52:58 +0000 (15:52 +0100)]
ARM: dts: exynos4: Move usbphy node to SoC-specific dts files

USB PHY of Exynos4210 and Exynos4x12 require different compatible
strings, making usbphy node SoC-specific.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4: Add node for USB PHY
Tomasz Figa [Fri, 28 Dec 2012 15:44:10 +0000 (16:44 +0100)]
ARM: dts: exynos4: Add node for USB PHY

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: exynos4210-trats: Add node for USB gadget
Tomasz Figa [Thu, 4 Oct 2012 10:11:55 +0000 (12:11 +0200)]
ARM: dts: exynos4210-trats: Add node for USB gadget

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agoARM: dts: Add dts for exynos4412-slp_pq board
Tomasz Figa [Tue, 11 Sep 2012 12:27:22 +0000 (14:27 +0200)]
ARM: dts: Add dts for exynos4412-slp_pq board

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agodrivers: base: add notifier for failed driver bind
Marek Szyprowski [Thu, 8 Aug 2013 09:05:57 +0000 (11:05 +0200)]
drivers: base: add notifier for failed driver bind

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
9 years agoiommu/exynos: return 0 if iommu_attach_device() successes
Cho KyongHo [Fri, 26 Jul 2013 11:31:01 +0000 (20:31 +0900)]
iommu/exynos: return 0 if iommu_attach_device() successes

iommu_attach_device() against exynos-iommu positive integer on success
if the caller calls iommu_attach_device() with the same iommu_domain
multiple times without call to iommu_detach_device() to inform the
caller how many calls to iommu_detach_device() to really detach iommu.

However the convention of the return value of success of common API is
zero, this patch makes iommu_attach_device() call against exynos-iommu
always return zero if the given device is successfully attached to
the given iommu_domain even though it is already attached to the same
iommu_domain.

Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
9 years agoiommu/exynos: change rwlock to spinlock
Cho KyongHo [Fri, 26 Jul 2013 11:30:42 +0000 (20:30 +0900)]
iommu/exynos: change rwlock to spinlock

Since acquiring read_lock is not more frequent than write_lock, it is
not beneficial to use rwlock, this commit changes rwlock to spinlock.

Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
9 years agoiommu/exynos: add bus notifier for registering System MMU
Cho KyongHo [Fri, 26 Jul 2013 11:30:17 +0000 (20:30 +0900)]
iommu/exynos: add bus notifier for registering System MMU

When a device driver is registered, all constructs to handle System MMU
is prepared by bus notifier call.

Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
9 years agoiommu/exynos: remove custom fault handler
Cho KyongHo [Fri, 26 Jul 2013 11:29:06 +0000 (20:29 +0900)]
iommu/exynos: remove custom fault handler

This commit removes custom fault handler. The device drivers that
need to register fault handler can register
with iommu_set_fault_handler().

Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
9 years agoiommu/exynos: remove prefetch buffer setting when enabling System MMU
Cho KyongHo [Fri, 26 Jul 2013 11:28:49 +0000 (20:28 +0900)]
iommu/exynos: remove prefetch buffer setting when enabling System MMU

Prefetch buffer must be handled accurately, exact range of a buffer,
frame by frame manually. Otherwise, it may causes page fault or
deadlock in System MMU.
Thus this patch removes prefetch buffer setting when System MMU is
initialized(enabled).

Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
9 years agoiommu/exynos: support for device tree
Cho KyongHo [Fri, 26 Jul 2013 11:28:36 +0000 (20:28 +0900)]
iommu/exynos: support for device tree

This commit adds device tree support for System MMU.
This also include the following changes and enhancements:

* use managed device helper functions.
Simplyfies System MMU device driver.

* use only a single clock descriptor.
System MMU device descriptor is seperate if it is imposible to make
a single clock descriptor to make a device descriptor for a group of
System MMUs.

* removed dbgname member from sysmmu_drvdata structure.
debugging kernel message for a System MMU is distinguisheable with the
name of device descroptors.

Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
9 years agoARM: dts: Add description of System MMU of Exynos SoCs
Cho KyongHo [Fri, 26 Jul 2013 11:28:19 +0000 (20:28 +0900)]
ARM: dts: Add description of System MMU of Exynos SoCs

Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
9 years agoclk: exynos5250: add gate clock descriptions of System MMU
Cho KyongHo [Fri, 26 Jul 2013 11:27:54 +0000 (20:27 +0900)]
clk: exynos5250: add gate clock descriptions of System MMU

This adds gate clocks of all System MMUs and their master IPs
that are not apeared in clk-exynos5250.c

Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
9 years agoiommu/exynos: allocate lv2 page table from own slab
Cho KyongHo [Fri, 26 Jul 2013 11:27:29 +0000 (20:27 +0900)]
iommu/exynos: allocate lv2 page table from own slab

Since kmalloc() does not guarantee that the allignment of 1KiB when it
allocates 1KiB, it is required to allocate lv2 page table from own
slab that guarantees alignment of 1KiB

Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
9 years agoiommu/exynos: fix page table maintenance
Cho KyongHo [Fri, 26 Jul 2013 11:27:11 +0000 (20:27 +0900)]
iommu/exynos: fix page table maintenance

This prevents allocating lv2 page table for the lv1 page table entry
that already has 1MB page mapping. In addition some BUG_ON() is
changed to WARN_ON().

Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
9 years agoiommu/exynos: add missing cache flush for removed page table entries
Cho KyongHo [Fri, 26 Jul 2013 11:26:28 +0000 (20:26 +0900)]
iommu/exynos: add missing cache flush for removed page table entries

This commit adds cache flush for removed small and large page entries
in exynos_iommu_unmap(). Missing cache flush of removed page table
entries can cause missing page fault interrupt when a master IP
accesses an unmapped area.

Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
9 years agoiommu/exynos: do not include removed header
Cho KyongHo [Fri, 26 Jul 2013 11:26:10 +0000 (20:26 +0900)]
iommu/exynos: do not include removed header

This commit remove <mach/sysmmu.h> which is removed.

Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
9 years agoARM: dts: exynos4: Add node for hsotg
Tomasz Figa [Tue, 11 Sep 2012 11:37:40 +0000 (13:37 +0200)]
ARM: dts: exynos4: Add node for hsotg

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
9 years agousb: phy: samsung: Add support for USB 2.0 PHY on Exynos 4x12
Tomasz Figa [Mon, 25 Mar 2013 16:39:07 +0000 (17:39 +0100)]
usb: phy: samsung: Add support for USB 2.0 PHY on Exynos 4x12

This patch adds driver data for Exynos 4x12 USB 2.0 PHY.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>