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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Tomasz Figa [Mon, 25 Mar 2013 15:57:32 +0000 (16:57 +0100)]
usb: phy: samsung: Pass enable/disable callbacks through driver data
To remove unnecessary if statements, this patch introduces phy_enable
and phy_disable callbacks in driver data structure that implement
SoC-specific PHY initialization and deinitialization.
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Tomasz Figa [Mon, 25 Mar 2013 15:40:52 +0000 (16:40 +0100)]
usb: phy: samsung: Pass set_isolation callback through driver data
This patch extends driver data structure with set_isolation callback,
which allows to remove the need for checking for SoC type in a switch
statement.
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Tomasz Figa [Mon, 25 Mar 2013 15:15:55 +0000 (16:15 +0100)]
usb: phy: samsung: Consolidate reference clock rate handling
This patch cleans up handling of reference clock rate in Samsung USB PHY
drivers. It is mostly a cosmetic change but improves error handling in
case of failing to get reference clock or invalid clock rate.
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Tomasz Figa [Mon, 25 Mar 2013 18:36:22 +0000 (19:36 +0100)]
usb: phy: samsung: Use clk_get to get reference clock
There is no need to use devm_clk_get to get a clock that is being put
at the end of the function.
This patch changes the code getting reference clock to use clk_get
instead of useless in this case devm_clk_get.
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Tomasz Figa [Mon, 25 Mar 2013 14:48:47 +0000 (15:48 +0100)]
usb: phy: samsung: Select common driver part implicitly
Since phy-samsung-usb library can be used only by phy-samsung-usb2 and
phy-samsung-usb3 drivers, there is no need to give explicit control over
its Kconfig symbol.
This patch makes CONFIG_SAMSUNG_USBPHY symbol hidden and selected
implicitly by CONFIG_SAMSUNG_USB2PHY and CONFIG_SAMSUNG_USB3PHY.
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Tomasz Figa [Tue, 11 Sep 2012 11:36:51 +0000 (13:36 +0200)]
usb: gadget: s3c-hsotg: Add device tree-based instantiation
Marek Szyprowski [Fri, 9 Nov 2012 15:04:23 +0000 (16:04 +0100)]
mm: cma: allocate pages from CMA if NR_FREE_PAGES approaches low water mark
It has been observed that system tends to keep a lot of CMA free pages
even in very high memory pressure use cases. The CMA fallback for movable
pages is used very rarely, only when system is completely pruned from
MOVABLE pages, what usually means that the out-of-memory even will be
triggered very soon. To avoid such situation and make better use of CMA
pages, a heuristics is introduced which turns on CMA fallback for movable
pages when the real number of free pages (excluding CMA free pages)
approaches low water mark.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Kyungmin Park <kyungmin.park@samsung.com>
CC: Michal Nazarewicz <mina86@mina86.com>
Laura Abbott [Wed, 12 Sep 2012 07:36:16 +0000 (09:36 +0200)]
fs/buffer.c: Revoke LRU when trying to drop buffers
When a buffer is added to the LRU list, a reference is taken which is
not dropped until the buffer is evicted from the LRU list. This is the
correct behavior, however this LRU reference will prevent the buffer
from being dropped. This means that the buffer can't actually be dropped
until it is selected for eviction. There's no bound on the time spent
on the LRU list, which means that the buffer may be undroppable for
very long periods of time. Given that migration involves dropping
buffers, the associated page is now unmigratible for long periods of
time as well. CMA relies on being able to migrate a specific range
of pages, so these these types of failures make CMA significantly
less reliable, especially under high filesystem usage.
Rather than waiting for the LRU algorithm to eventually kick out
the buffer, explicitly remove the buffer from the LRU list when trying
to drop it. There is still the possibility that the buffer
could be added back on the list, but that indicates the buffer is
still in use and would probably have other 'in use' indicates to
prevent dropping.
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Marek Szyprowski [Tue, 4 Sep 2012 08:44:49 +0000 (10:44 +0200)]
fs: jbd2: force commit to free jbd2's cma/isolated page
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tomasz Figa [Wed, 12 Sep 2012 13:36:39 +0000 (15:36 +0200)]
ARM: dts: exynos4: Add DT nodes for L2 cache controller
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Tomasz Figa [Wed, 12 Sep 2012 13:35:58 +0000 (15:35 +0200)]
ARM: EXYNOS: Add secure firmware support to l2x0 initialization
Signed-off-by: Tomasz Figa <t.figa@samsung.com>