cascardo/linux.git
11 years agoCHROMIUM: ARM: exynos: add dts for daisy
Olof Johansson [Thu, 12 Apr 2012 23:23:21 +0000 (16:23 -0700)]
CHROMIUM: ARM: exynos: add dts for daisy

BUG=chrome-os-partner:8942
TEST=boot with USE=device_tree

Change-Id: Ic6f9fdf5a049cf6249c33c015adffa7d24bac6b2
Signed-off-by: Olof Johansson <olofj@chromium.org>
Reviewed-on: https://gerrit-int.chromium.org/15738
Reviewed-by: Doug Anderson <dianders@google.com>
Reviewed-by: Simon Glass <sjg@google.com>
Commit-Ready: Olof Johansson <olofj@google.com>
Tested-by: Olof Johansson <olofj@google.com>
11 years agoCHROMIUM: ARM: exynos: add dtb files to dtbs target
Olof Johansson [Fri, 27 Apr 2012 00:00:14 +0000 (17:00 -0700)]
CHROMIUM: ARM: exynos: add dtb files to dtbs target

BUG=none
TEST=make dtbs

Change-Id: Ib4115d595eae899fd80d3ccc49bbb995fa94ec16
Signed-off-by: Olof Johansson <olofj@chromium.org>
11 years agoARM: EXYNOS5: Pass clock_rate from FIMD platdata
Ajay Kumar [Tue, 29 May 2012 11:04:46 +0000 (07:04 -0400)]
ARM: EXYNOS5: Pass clock_rate from FIMD platdata

Passing clock rate from platform data to s3c-fb

Change-Id: I11e85107893d8c5c61a4c46436a07594f4100bbf
Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
11 years agoARM: exynos: dt: add all i2c busses to auxdata
Olof Johansson [Wed, 9 May 2012 04:19:34 +0000 (21:19 -0700)]
ARM: exynos: dt: add all i2c busses to auxdata

Needed to match device ids for clocks, etc.

Change-Id: If15f98f5a2237fd5acf575d1c289af1769ffee8e
Signed-off-by: Olof Johansson <olofj@chromium.org>
Reviewed-on: https://gerrit-int.chromium.org/17354
Reviewed-by: Doug Anderson <dianders@google.com>
Tested-by: Olof Johansson <olofj@google.com>
Commit-Ready: Olof Johansson <olofj@google.com>

11 years agoexynos5: dts: Modified the maximum i2c bus frequency for exynos5
Abhilash Kesavan [Tue, 22 May 2012 17:58:05 +0000 (10:58 -0700)]
exynos5: dts: Modified the maximum i2c bus frequency for exynos5

Increase the requested i2c bus frequency to 66KHz (from 20KHz) for
all i2c channels on SMDK.

Change-Id: I54415ff3a5779b8e087b706c9770509bcfcd8147
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
11 years agoarm: dts: add display port device node information
Ajay Kumar [Thu, 24 May 2012 13:54:15 +0000 (09:54 -0400)]
arm: dts: add display port device node information

This modifies the smdk5250 dts file to support eDP.
Note: eDP is disabled on smdk5250.

Change-Id: I7bea7daab27216d509a8d0c09d3799754101a3fc
Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
11 years agoARM: dts: Add nodes for spi controllers for Samsung Exynos5 platforms
Thomas Abraham [Fri, 1 Jun 2012 09:57:23 +0000 (17:57 +0800)]
ARM: dts: Add nodes for spi controllers for Samsung Exynos5 platforms

Add device nodes for the three instances of spi controllers in Exynos5
platforms and enable instance spi 1 for smdk5250 board.

BUG=None
TEST=enable CONFIG_SPI_S3C64XX
Add Serial Flash part info in m25p80.c file
"{ "w25q80", INFO(0xef5014, 0, 64 * 1024,  16, SECT_4K) },"
enable CONFIG_MTD
enable CONFIG_MTD_OF_PARTS
enable CONFIG_MTD_CHAR
enable CONFIG_MTD_M25P80
build and boot smdk5250.

echo "HelloWorld" > /dev/mtd1
dd if=/dev/mtd1 of=/tmp/test count=10 bs=1 seek=1
cat /tmp/test

Change-Id: If2dbbdcda9b6011faf5f6d5029d07c97dcdcf427
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Padmavathi Venna <padma.v@samsung.com>
Reviewed-on: https://gerrit-int.chromium.org/17936
Reviewed-by: Bryan Freed <bfreed@google.com>
Reviewed-by: Olof Johansson <olofj@google.com>
Tested-by: Doug Anderson <dianders@google.com>
Commit-Ready: Doug Anderson <dianders@google.com>

11 years agoARM: dts: Add nodes for spi controllers for Samsung Exynos4 platforms
Thomas Abraham [Fri, 1 Jun 2012 09:53:24 +0000 (17:53 +0800)]
ARM: dts: Add nodes for spi controllers for Samsung Exynos4 platforms

Add device nodes for the three instances of spi controllers in Exynos4
platforms. Enable instance spi 2 for smdkv310 board and disable all
spi instances for origen board.

BUG=None
TEST=None

Change-Id: Idfc2cf965609581d7ea4b156b4c14198577fa45d
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
Reviewed-on: https://gerrit-int.chromium.org/18957
Reviewed-by: Olof Johansson <olofj@google.com>
Tested-by: Doug Anderson <dianders@google.com>
Commit-Ready: Doug Anderson <dianders@google.com>

11 years agoARM: EXYNOS5: Add alias names for i2c controllers
Padmavathi Venna [Sat, 19 May 2012 10:44:57 +0000 (16:14 +0530)]
ARM: EXYNOS5: Add alias names for i2c controllers

Add aliases for i2c controllers to determine the instance
number of the controller

BUG=None
TEST=Compile and booted

Change-Id: Icde948b84991ae2f106e91e0629fd8cccac26f6a
Signed-off-by: Padmavathi Venna <padma.v@samsung.com>
Signed-off-by: Doug Anderson <dianders@chromium.org>
Reviewed-on: https://gerrit-int.chromium.org/17929
Tested-by: Doug Anderson <dianders@google.com>
Reviewed-by: Taylor Hutt <thutt@google.com>
Commit-Ready: Doug Anderson <dianders@google.com>
Reviewed-by: Doug Anderson <dianders@google.com>
11 years agoCHROMIUM: ARM: dts: move i2c size/address-cells to dtsi file for exynos5250
Olof Johansson [Mon, 14 May 2012 16:52:04 +0000 (09:52 -0700)]
CHROMIUM: ARM: dts: move i2c size/address-cells to dtsi file for exynos5250

Change-Id: I8df46ef8609489f253d2ceae135f57a0113b59fe
Signed-off-by: Olof Johansson <olofj@chromium.org>
Reviewed-on: https://gerrit-int.chromium.org/17345
Reviewed-by: Doug Anderson <dianders@google.com>
Reviewed-by: Simon Glass <sjg@google.com>
Commit-Ready: Olof Johansson <olofj@google.com>
Tested-by: Olof Johansson <olofj@google.com>
11 years agoarm: exynos5: dts: Move alias names from dts file to dtsi file
Banajit Goswami [Thu, 24 May 2012 12:48:48 +0000 (18:18 +0530)]
arm: exynos5: dts: Move alias names from dts file to dtsi file

Alias names need not be repeated for every board file.
So move alias names from dts file to dtsi file.

BUG=None
TEST=Compile and boot.

Change-Id: I02918882a2c9b1a1e3301e43736d58152143fc8f
Signed-off-by: Padmavathi Venna <padma.v@samsung.com>
Signed-off-by: Doug Anderson <dianders@chromium.org>
(dianders) Fixed problems compiling non-SMDK dts files.
Reviewed-on: https://gerrit-int.chromium.org/18407
Tested-by: Doug Anderson <dianders@google.com>
Reviewed-by: Olof Johansson <olofj@google.com>
Commit-Ready: Doug Anderson <dianders@google.com>

11 years agoARM: EXYNOS: Add 'sysmmu' property to DTS file for exynos5250
Prathyush K [Sun, 3 Jun 2012 12:03:26 +0000 (17:33 +0530)]
ARM: EXYNOS: Add 'sysmmu' property to DTS file for exynos5250

This sysmmu property is retrieved during the probe for MFC/GSC etc.
After retrieving, the sysmmu platform device is found by calling
of_find. A IOMMU mapping is then created for that device.

Change-Id: Ia97291c9ece35a0efccc9c21cb86094f12045e60
Signed-off-by: Prathyush K <prathyush.k@samsung.com>
11 years agoARM: exynos: move sms911x device node to sromc bus on smdk
Olof Johansson [Wed, 2 May 2012 17:52:06 +0000 (10:52 -0700)]
ARM: exynos: move sms911x device node to sromc bus on smdk

Use the srom bus to find the right CS to setup smsc911x on. Also add the
dummy regulators needed, and remove the hardcoded local-mac-address.

Change-Id: If40f1eb4204642794e486d6fc4afe866fe1291e2
Signed-off-by: Olof Johansson <olofj@chromium.org>
Reviewed-on: https://gerrit-int.chromium.org/17306
Reviewed-by: Doug Anderson <dianders@google.com>
Commit-Ready: Olof Johansson <olofj@google.com>
Tested-by: Olof Johansson <olofj@google.com>
11 years agoARM: exynos: dts: add sromc bus with ranges
Olof Johansson [Wed, 2 May 2012 17:45:08 +0000 (10:45 -0700)]
ARM: exynos: dts: add sromc bus with ranges

Change-Id: I825ad1d7fdde2c20c96b9fc935901fe12d2f67a5
Signed-off-by: Olof Johansson <olofj@chromium.org>
Reviewed-on: https://gerrit-int.chromium.org/17305
Reviewed-by: Doug Anderson <dianders@google.com>
Commit-Ready: Olof Johansson <olofj@google.com>
Tested-by: Olof Johansson <olofj@google.com>
11 years agoAdd aliases for mshc controllers to determine the instance number of the controller.
Banajit Goswami [Tue, 8 May 2012 17:22:39 +0000 (22:52 +0530)]
Add aliases for mshc controllers to determine the instance number of the controller.

Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
11 years agoARM: EXYNOS5: Add support for MAX77686 chip and regulators.
Yadwinder Singh Brar [Mon, 7 May 2012 10:27:59 +0000 (15:57 +0530)]
ARM: EXYNOS5: Add support for MAX77686 chip and regulators.

Add device tree node for Max77686 chip and regulators.
Define all used LDOs in SMDK5250

Signed-off-by: Yadwinder Singh Brar <yadi.brar@samsung.com>
11 years agoARM: EXYNOS5: Interchanging PA of sysmmu for MFC_L and MFC_R
Kiran AVND [Sat, 2 Jun 2012 12:07:45 +0000 (17:37 +0530)]
ARM: EXYNOS5: Interchanging PA of sysmmu for MFC_L and MFC_R

This seems to be a required fix for ensuring that sysmmus of MFC
work properly.

Change-Id: I1e8ffefbacb1b31995416059381cf067666bb36d
Signed-off-by: Prathyush K <prathyush.k@samsung.com>
11 years agoARM: EXYNOS5: Add EDP device and platform data.
Ajay Kumar [Thu, 14 Jun 2012 15:26:56 +0000 (20:56 +0530)]
ARM: EXYNOS5: Add EDP device and platform data.

Add EDP device from device tree for exynos5 and add platform data.

Change-Id: I620bb86675c6890d6f16b9773b2b2f9111134b49
Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
11 years agoARM: Exynos5: Enable platform support for SPI controllers
Thomas Abraham [Fri, 1 Jun 2012 09:46:53 +0000 (17:46 +0800)]
ARM: Exynos5: Enable platform support for SPI controllers

Add the platform bits which are required to support SPI controllers.

BUG=None
TEST=None

Change-Id: I0c10313b7b4cbe1cf856417c1fa001b2ad7f7a5d
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Padmavathi Venna <padma.v@samsung.com>
Reviewed-on: https://gerrit-int.chromium.org/17935
Reviewed-by: Olof Johansson <olofj@google.com>
Tested-by: Doug Anderson <dianders@google.com>
Commit-Ready: Doug Anderson <dianders@google.com>

11 years agoARM: Exynos4: Enable platform support for SPI controllers
Thomas Abraham [Fri, 1 Jun 2012 09:43:25 +0000 (17:43 +0800)]
ARM: Exynos4: Enable platform support for SPI controllers

Add the platform bits which are required to support SPI controllers.

BUG=None
TEST=None

Change-Id: I0622d7346f81ea1260013876caeb382dbe106d93
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
Reviewed-on: https://gerrit-int.chromium.org/18955
Reviewed-by: Olof Johansson <olofj@google.com>
Tested-by: Doug Anderson <dianders@google.com>
Commit-Ready: Doug Anderson <dianders@google.com>

11 years agoARM: EXYNOS: Adding DRM-FIMD platform data
Prathyush K [Thu, 14 Jun 2012 14:39:34 +0000 (20:09 +0530)]
ARM: EXYNOS: Adding DRM-FIMD platform data

When DRM is enabled, platform data for DRM-FIMD is passed instead of
platform data for s3c_fb.

Change-Id: I6b01f8dc0b444b53e190e2f6c43c79eb3d784679
Signed-off-by: Prathyush K <prathyush.k@samsung.com>
11 years agoARM: EXYNOS5: Add mixer device DT support
Naveen Krishna Chatradhi [Sun, 6 May 2012 08:47:04 +0000 (14:17 +0530)]
ARM: EXYNOS5: Add mixer device DT support

EXYNOS5 supports Mixer device instead of VideoProcessor as in EXYNOS4.

Change-Id: I858c824dad688f547efd54db6f3a812c55faf0c0
Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
11 years agoARM: EXYNOS5: Add HDMI device into DT list
Banajit Goswami [Tue, 8 May 2012 16:24:44 +0000 (21:54 +0530)]
ARM: EXYNOS5: Add HDMI device into DT list

Add device tree node for HDMI for Exynos5.

Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
Signed-off-by: Banajit Goswami <banajit.g@samsung.com>
11 years agoARM: EXYNOS5: Add I2C2 and I2C HDMIPHY devices from device tree
Naveen Krishna Chatradhi [Sat, 5 May 2012 17:47:02 +0000 (23:17 +0530)]
ARM: EXYNOS5: Add I2C2 and I2C HDMIPHY devices from device tree

Adds I2C2 and I2C HDMIPHY devices from device tree for exynos5250

Change-Id: I0d5d75c80069ccc8895f3651ce6e5377fd1f9810
Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
11 years agoARM: EXYNOS5: Add I2S device from device tree
Padmavathi Venna [Sat, 5 May 2012 08:55:12 +0000 (14:25 +0530)]
ARM: EXYNOS5: Add I2S device from device tree

Add I2S device from device tree for exynos5 and add I2S platform
data and I2S GPIO configuration

Change-Id: I8660853c40843748b4853852ac0c80c2c74818c6
Signed-off-by: Padmavathi Venna <padma.v@samsung.com>
11 years agoARM: EXYNOS5: Add machine and dt support for DWC3
Banajit Goswami [Mon, 7 May 2012 14:20:40 +0000 (23:20 +0900)]
ARM: EXYNOS5: Add machine and dt support for DWC3

This patch adds machine and dt support for DWC3 XHCI for exynos5

Signed-off-by: Praveen Paneri <p.paneri@samsung.com>
Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
11 years agoARM: EXYNOS5: Add machine and dt support for EHCI
Banajit Goswami [Mon, 7 May 2012 14:19:36 +0000 (23:19 +0900)]
ARM: EXYNOS5: Add machine and dt support for EHCI

This patch adds machine and dt support for EHCI for exynos5

Change-Id: Ia19a5ec06d12f8a3e8122a6c900a77d59780ebff
Signed-off-by: Banajit Goswami <banajit.g@samsung.com>
Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
11 years agoARM: EXYNOS5: Add OHCI device from device tree
Banajit Goswami [Thu, 14 Jun 2012 13:52:19 +0000 (19:22 +0530)]
ARM: EXYNOS5: Add OHCI device from device tree

Adds OHCI device from device tree for exynos5 and adds platform data.

Change-Id: I159f2e2c676ae4dec7dc9faae08e360352b3b7e5
Signed-off-by: Banajit Goswami <banajit.g@samsung.com>
Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
11 years agoARM: EXYNOS5: Add G2D device from device tree.
Banajit Goswami [Thu, 14 Jun 2012 09:11:58 +0000 (14:41 +0530)]
ARM: EXYNOS5: Add G2D device from device tree.

Add G2D device from device tree for exynos5 and add g2d platform
data.

Change-Id: I3cb2eb6bed9886f980a597ceeeeafd8768fbf384
Signed-off-by: Banajit Goswami <banajit.g@samsung.com>
Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
11 years agoARM: EXYNOS5: Add gscalar device from DT
Abhilash Kesavan [Thu, 14 Jun 2012 13:40:22 +0000 (19:10 +0530)]
ARM: EXYNOS5: Add gscalar device from DT

Adding all 4 gscalar devices from DT device list in machine file.

Change-Id: Ie6a0f3127fba88b0befc1e81529ca03ab98985f7
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com>
11 years agoARM: EXYNOS5: Add MFC device from DT
Abhilash Kesavan [Thu, 14 Jun 2012 08:56:07 +0000 (14:26 +0530)]
ARM: EXYNOS5: Add MFC device from DT

Adding mfc v6 device from DT device list in machine file.

Change-Id: I293adea35c162a146e4af8446243a390a72d98b2
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
11 years agoARM: EXYNOS5: add device tree node for mipi dsi
Abhilash Kesavan [Thu, 14 Jun 2012 08:17:54 +0000 (13:47 +0530)]
ARM: EXYNOS5: add device tree node for mipi dsi

Add device tree node for mipi dsi in samsung's exynos5 based SMDK5250 board

Change-Id: Ib6c01faf1b863ff637878bc83d224ad841d8b46a
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Signed-off-by: Prathyush K <prathyush.k@samsung.com>
11 years agoARM: EXYNOS5: add device tree node for display controller
Banajit Goswami [Sun, 6 May 2012 13:24:39 +0000 (22:24 +0900)]
ARM: EXYNOS5: add device tree node for display controller

Add device tree node for display controller in samsung's exynos5 based
SMDK5250 board

Signed-off-by: Banajit Goswami <banajit.g@samsung.com>
11 years agoARM: EXYNOS5: add sysmmu devices from device tree
Banajit Goswami [Thu, 14 Jun 2012 08:03:45 +0000 (13:33 +0530)]
ARM: EXYNOS5: add sysmmu devices from device tree

Add sysmmu devices from device tree and sysmmu platform data
for exynos5.

Change-Id: I04b435fec8e4444e53cef03b46f4326053d654a2
Signed-off-by: Banajit Goswami <banajit.g@samsung.com>
11 years agoarm: exynos5: add displayport setup
Ajay Kumar [Thu, 7 Jun 2012 06:51:46 +0000 (02:51 -0400)]
arm: exynos5: add displayport setup

This patch adds the machine side changes related to DP.

Change-Id: I2414e8b79b1a4bef37b497640bcec147ba9383a6
Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
11 years agoARM: SAMSUNG: Add set platdata function for G2D
Leela Krishna Amudala [Fri, 16 Mar 2012 06:48:29 +0000 (12:18 +0530)]
ARM: SAMSUNG: Add set platdata function for G2D

This patch adds the setplatdata funtion to set the default
platdata for g2d device.

Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com>
11 years agoARM: EXYNOS: SYSMMU: Add IOMMU machine support to Exynos5
Prathyush K [Sun, 3 Jun 2012 12:06:14 +0000 (17:36 +0530)]
ARM: EXYNOS: SYSMMU: Add IOMMU machine support to Exynos5

For creating IOMMU mapping, the dts file is modified to add a
'sysmmu' field for all the parent devices e.g. MFC, GSC, HDMI etc.
When the parent device is getting probed, the corresponding sysmmu
device is retrieved and a IOMMU mapping is created.

This patch adds two functions to dev-sysmmu which are called during
probe of respective parent devices like MFC/FIMD etc.
1> s5p_create_iommu_mapping is modified to get a mapping as input. This
is used for sharing a IOMMU mapping across multiple devices. A new
mapping is created only if the received mapping is NULL and the function
also returns this mapping.
2> find_sysmmu_dt is a common function which retrieves the sysmmu platform
device from the parent device's of_node.

Change-Id: Ic0e324fdaa758229f6d2ef8e00175346230716b4
Signed-off-by: Prathyush K <prathyush.k@samsung.com>
11 years agoARM: EXYNOS: add setup functions for MIPI DSI
Leela Krishna Amudala [Sat, 28 Apr 2012 09:28:12 +0000 (14:58 +0530)]
ARM: EXYNOS: add setup functions for MIPI DSI

Add the necessary setup functions for MIPI DSI initiliasation
on EXYNOS 4 and 5 platforms. Also add the base address for
MIPI-DSI channel 0 for EXYNOS5

Change-Id: I4947b384852c72bb6c28be54fe1cc8faedc88c5d
Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com>
Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
11 years agoARM: EXYNOS: Add clock setup functions for FIMD1
Abhilash Kesavan [Thu, 3 May 2012 05:59:09 +0000 (11:29 +0530)]
ARM: EXYNOS: Add clock setup functions for FIMD1

This patch adds the code for clock setup for FIMD channel 1
on EXYNOS5. MIPI-DSI LCD's require clock rate setting.

Change-Id: Iedd3824dd025a0ef267dafd5c05ea8c0fe737c5d
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
11 years agoARM: SAMSUNG: add mipi dsim platform specific changes
Banajit Goswami [Sun, 6 May 2012 13:44:18 +0000 (22:44 +0900)]
ARM: SAMSUNG: add mipi dsim platform specific changes

Adds platform specific header files that includes necessary structures
and dsim device setup codes.

Change-Id: Ie185349cf9fc84dcf6e614601c4a6c04253449bc
Signed-off-by: Banajit Goswami <banajit.g@samsung.com>
11 years agoarm: exynos5: add display port clock instance
Ajay Kumar [Thu, 7 Jun 2012 05:26:12 +0000 (01:26 -0400)]
arm: exynos5: add display port clock instance

Adds eDP clock instance for exynos5.

BUG=chrome-os-partner:9780
TEST=build ok, booted on snow and saw display

Change-Id: I8f6eebcbcb3cc6de9d38e73dd1defaee65594dbd
Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
11 years agoARM: EXYNOS: Add DPCLK to plat data
Akshu Agrawal [Thu, 7 Jun 2012 11:04:33 +0000 (16:34 +0530)]
ARM: EXYNOS: Add DPCLK to plat data

Added DPCLKCON and DPCLKCON_ENABLE to regs-fb.

Change-Id: Ia5914be63e4f07e25bf9e94684ebca249c87fe7d
Signed-off-by: Akshu Agrawal <akshu.a@samsung.com>
Signed-off-by: Prathyush K <prathyush.k@samsung.com>
11 years agoS5P: SYSMMU: Remove System MMU device driver
KyongHo Cho [Fri, 2 Mar 2012 05:11:50 +0000 (14:11 +0900)]
S5P: SYSMMU: Remove System MMU device driver

This patch removes System MMU device driver from arm/plat-s5p tree
for transition to implement IOMMU driver.
Although controlling System MMU in this removing driver
is similar to the new IOMMU driver in the following patch,
the new one is almost rewrite of this driver and there is no
benefit to moving the driver file from arch/arm/ to drivers/iommu.

Cc: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: KyongHo Cho <pullip.cho@samsung.com>
11 years agoARM: EXYNOS: Adding DRM platform device
Prathyush K [Wed, 9 May 2012 05:28:18 +0000 (22:28 -0700)]
ARM: EXYNOS: Adding DRM platform device

Add DRM platform device to machine file for exynos5.

Change-Id: I92a1b9a52fb892b09cc39bbbafb02e934c39984e
Signed-off-by: Prathyush K <prathyush.k@samsung.com>
11 years agoARM: EXYNOS: Add reserve function to increase consistent memory
Subash Patel [Sun, 3 Jun 2012 15:20:36 +0000 (20:50 +0530)]
ARM: EXYNOS: Add reserve function to increase consistent memory

Added a function 'reserve' which increases the consistent DMA memory
from 2MB to 64MB. This is required in case of mapping many large
buffers.

Change-Id: I522a027d08180bc76e25a5ec4f84f6fb5a26714d
Signed-off-by: Subash Patel <subash.ramaswamy@linaro.org>
Signed-off-by: Prathyush K <prathyush.k@samsung.com>
11 years agoARM: EXYNOS: Update Display block cfg and fimd bypass offset register
Leela Krishna Amudala [Fri, 11 May 2012 12:21:38 +0000 (17:51 +0530)]
ARM: EXYNOS: Update Display block cfg and fimd bypass offset register

Define DISP1BLK_CFG and FIMDBYPASS_DISP1 values for FIMD

Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com>
11 years agoARM: EXYNOS5: Setup legacy i2c controller interrupts on SMDK5250
Abhilash Kesavan [Tue, 8 May 2012 11:29:03 +0000 (16:59 +0530)]
ARM: EXYNOS5: Setup legacy i2c controller interrupts on SMDK5250

On Exynos5 EVT1 we have a new high-speed i2c controller, the interrupts
for which are set by default at reset. To continue using the old i2c
controller configure the SYSCON I2C_CFG register for setting up
interrupts appropriately.

Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
11 years agoARM: EXYNOS: Add machine code to support watchdog reset
Naveen Krishna Chatradhi [Thu, 10 May 2012 12:57:13 +0000 (18:27 +0530)]
ARM: EXYNOS: Add machine code to support watchdog reset

This patch clears the reset bits for PMU registers
AUTOMATIC_WDT_RESET_DISABLE & MASK_WDT_RESET_REQUEST
to support watchdog reset for exynos5.

Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
11 years agoARM: EXYNOS5: Add GPIO setup function for TV
Naveen Krishna Chatradhi [Sun, 6 May 2012 08:35:36 +0000 (14:05 +0530)]
ARM: EXYNOS5: Add GPIO setup function for TV

Adds GPIO setup function required for TV.

Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
11 years agoARM: EXYNOS5: Update clock file with hdmi clock
Naveen Krishna Chatradhi [Fri, 4 May 2012 09:52:13 +0000 (15:22 +0530)]
ARM: EXYNOS5: Update clock file with hdmi clock

Add clock support for HDMI on Exynos5.

Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
11 years agoARM: EXYNOS: Add configuration helper functions for TV/HDMI
Naveen Krishna Chatradhi [Fri, 4 May 2012 08:32:49 +0000 (14:02 +0530)]
ARM: EXYNOS: Add configuration helper functions for TV/HDMI

Adds the GPIO configuration helper functions.

Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
11 years agoARM: EXYNOS5: Add DMA interface device into platform devices list
Padmavathi Venna [Sat, 5 May 2012 09:42:23 +0000 (15:12 +0530)]
ARM: EXYNOS5: Add DMA interface device into platform devices list

Add DMA interface platform device into platform devices list

Signed-off-by: Padmavathi Venna <padma.v@samsung.com>
11 years agoARM: EXYNOS5: Add platform data for wm8994
Padmavathi Venna [Sat, 5 May 2012 09:26:43 +0000 (14:56 +0530)]
ARM: EXYNOS5: Add platform data for wm8994

Add wm8994 platform data to the device tree

Signed-off-by: Padmavathi Venna <padma.v@samsung.com>
11 years agoARM: EXYNOS: Add static mapping for EXYNOS Audio Subsystem
Padmavathi Venna [Sat, 5 May 2012 07:07:36 +0000 (12:37 +0530)]
ARM: EXYNOS: Add static mapping for EXYNOS Audio Subsystem

The CMU of EXYNOS can't control Audio Subsystem's clocks because
AUDSS SFRs aren't located in CMU. But AUDSS is a kind of CMU for
Audio Subsystem and need to use clock framework. This mapping
address will be used for AUDSS clock control.

Change-Id: If056f1e5c389f0d99748af332d27d23036e1b35a
Signed-off-by: Padmavathi Venna <padma.v@samsung.com>
11 years agoARM: EXYNOS: Add clocks for Secondary Audio Subsystem
Padmavathi Venna [Sat, 5 May 2012 06:54:09 +0000 (12:24 +0530)]
ARM: EXYNOS: Add clocks for Secondary Audio Subsystem

Add clocks for the secondary audio interface.

Signed-off-by: sangsu4u.park <sangsu4u.park@samsung.com>
Signed-off-by: Padmavathi Venna <padma.v@samsung.com>
11 years agoARM: EXYNOS: Add clocks for EXYNOS Audio Subsystem.
Padmavathi Venna [Sat, 5 May 2012 06:50:05 +0000 (12:20 +0530)]
ARM: EXYNOS: Add clocks for EXYNOS Audio Subsystem.

This patch adds clocks for EXYNOS Audio Subsystem and they use
clock framework. That's implemented in clock-audss.c file.
Also EXYNOS Audio Subsystem definitions are added for that.

Signed-off-by: sangsu4u.park <sangsu4u.park@samsung.com>
Signed-off-by: Padmavathi Venna <padma.v@samsung.com>
11 years agoUPSTREAM: dma: pl330: assign a new cookie when restarting tx descriptors in cyclic...
Padmavathi Venna [Sat, 5 May 2012 11:57:17 +0000 (17:27 +0530)]
UPSTREAM: dma: pl330: assign a new cookie when restarting tx descriptors in cyclic mode

The cookie of completed transfer descriptors are marked as zero. In case of
cyclic transfers, a new cookie needs to be assigned to the transfer
descriptors
which are picked up from the work_list list before they are re-enabled for
transfer. This prevents hitting BUG_ON in dma_cookie_complete function when
transfer descriptors are recycled from the work_list list.

Change-Id: Ib2417e61b0f69abaebd64bbb0144ff91c27eb47e
Signed-off-by: Padmavathi Venna <padma.v@samsung.com>
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
11 years agoARM: EXYNOS5: Add PHY initialization code for usb 3.0
Vivek Gautam [Sat, 5 May 2012 11:51:01 +0000 (17:21 +0530)]
ARM: EXYNOS5: Add PHY initialization code for usb 3.0

This patch adds PHY init and exit code for usb 3.0 for exynos5

Signed-off-by: Praveen Paneri <p.paneri@samsung.com>
Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
11 years agoARM: EXYNOS5: Add PHY initialization code for usb 2.0
Vivek Gautam [Sat, 5 May 2012 10:35:56 +0000 (16:05 +0530)]
ARM: EXYNOS5: Add PHY initialization code for usb 2.0

This patch adds PHY init and exit code for usb 2.0 for exynos5

Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
11 years agoARM: EXYNOS5: Add machine data for OHCI
Banajit Goswami [Mon, 7 May 2012 14:13:09 +0000 (23:13 +0900)]
ARM: EXYNOS5: Add machine data for OHCI

This patch adds machine support for OHCI for exynos5

Change-Id: I25e32d9c8b915a045e98b318f278728ddbc9add6
Signed-off-by: Banajit Goswami <banajit.g@samsung.com>
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
11 years agoARM: EXYNOS5: Add G2D clock support
Banajit Goswami [Thu, 14 Jun 2012 09:11:58 +0000 (14:41 +0530)]
ARM: EXYNOS5: Add G2D clock support

G2D clock is added to exynos5 clock file.

Change-Id: I3cb2eb6bed9886f980a597ceeeeafd8768fbf384
Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
Signed-off-by: Banajit Goswami <banajit.g@samsung.com>
Signed-off-by: Prathyush K <prathyush.k@samsung.com>
11 years agoARM: EXYNOS5: Add clock support for Gscaler
Abhilash Kesavan [Thu, 14 Jun 2012 09:08:32 +0000 (14:38 +0530)]
ARM: EXYNOS5: Add clock support for Gscaler

Add required clock support for Gscaler for exynos5

Change-Id: I631d2474fee666d523a14aadc259c49b65d55c1d
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com>
Signed-off-by: Prathyush K <prathyush.k@samsung.com>
11 years agoARM: EXYNOS5: Renaming MFC clock for MFC v6
Abhilash Kesavan [Thu, 14 Jun 2012 13:30:32 +0000 (19:00 +0530)]
ARM: EXYNOS5: Renaming MFC clock for MFC v6

EXYNOS5 supports MFC v6.x version hardware. So, making the
required changes in clock file.

Change-Id: I78a852c388eb2e80be7fdc2266c030fdba49bb9d
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
Signed-off-by: Prathyush K <prathyush.k@samsung.com>
11 years agoARM: EXYNOS5: add machine specific device tree node for media layer
Banajit Goswami [Sun, 6 May 2012 15:53:43 +0000 (00:53 +0900)]
ARM: EXYNOS5: add machine specific device tree node for media layer

Adds device tree node for media layer into machine file

Signed-off-by: Banajit Goswami <banajit.g@samsung.com>
11 years agoARM: SAMSUNG: add additional registers and ioctl definition
Banajit Goswami [Sun, 6 May 2012 14:54:43 +0000 (23:54 +0900)]
ARM: SAMSUNG: add additional registers and ioctl definition

Add
1. additional registers for Samsung's V8 display controller
2. IOCTL commands related to set_par alpha belnding, chroma keying
   and window positioning

Signed-off-by: Banajit Goswami <banajit.g@samsung.com>
11 years agoARM: EXYNOS5: add machine specific support for LCD backlight
Banajit Goswami [Sun, 6 May 2012 14:16:10 +0000 (23:16 +0900)]
ARM: EXYNOS5: add machine specific support for LCD backlight

Adds machine specific support for LCD backlight for SMDK board based
on Exynos5

Signed-off-by: Banajit Goswami <banajit.g@samsung.com>
Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com>
11 years agoARM: EXYNOS5: add machine specific support for MIPI-DSMI
Banajit Goswami [Sun, 6 May 2012 14:07:10 +0000 (23:07 +0900)]
ARM: EXYNOS5: add machine specific support for MIPI-DSMI

Adds machine specific support for MIPI-DSIM controller for exynos5

Change-Id: I7560e4f81466867a09b7558eeaa40ac83ea00088
Signed-off-by: Banajit Goswami <banajit.g@samsung.com>
Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com>
11 years agoARM: EXYNOS5: add support for clock for display controller.
Banajit Goswami [Thu, 14 Jun 2012 07:52:35 +0000 (13:22 +0530)]
ARM: EXYNOS5: add support for clock for display controller.

Adds fimd clock to exynos5 clock for Samsung's display controller.

Change-Id: Ia4936b46778070381d15bb3a157783b9605111ef
Signed-off-by: Banajit Goswami <banajit.g@samsung.com>
Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com>
Signed-off-by: Prathyush K <prathyush.k@samsung.com>
11 years agoUPSTREAM: ARM: dts: Add nodes for dw_mmc controllers for Samsung Exynos5250 platforms
Thomas Abraham [Wed, 2 May 2012 04:15:19 +0000 (21:15 -0700)]
UPSTREAM: ARM: dts: Add nodes for dw_mmc controllers for Samsung Exynos5250 platforms

Add device nodes for the four instances of dw_mmc controllers in Exynos5250
and enable instance 0 and 2 for the smdk5250 board.

Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
11 years agoUPSTREAM: ARM: Exynos5: Add AUXDATA support for MSHC controllers
Thomas Abraham [Tue, 1 May 2012 16:55:15 +0000 (09:55 -0700)]
UPSTREAM: ARM: Exynos5: Add AUXDATA support for MSHC controllers

Add entries if MSHC controllers in AUXDATA table for correct device name
initialization.

Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
11 years agoUPSTREAM: ARM: Samsung: Add support for MSHC controller clocks
Thomas Abraham [Tue, 1 May 2012 16:18:29 +0000 (09:18 -0700)]
UPSTREAM: ARM: Samsung: Add support for MSHC controller clocks

Add clock instances for bus interface unit clock and card interface unit
clock of the all four MSHC controller instances.

Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
11 years agoUPSTREAM: mmc: dw_mmc: add samsung exynos5250 specific extentions
Thomas Abraham [Tue, 1 May 2012 16:53:27 +0000 (09:53 -0700)]
UPSTREAM: mmc: dw_mmc: add samsung exynos5250 specific extentions

The instantiation of the Synopsis Designware controller on Exynos5250
include extension for SDR and DDR specific tx/rx phase shift timing
and CIU internal divider. In addition to that, the option to skip the
command hold stage is also introduced. Add support for these Exynos5250
specfic extenstions.

Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
11 years agoUPSTREAM: mmc: dw_mmc: add device tree support
Thomas Abraham [Fri, 4 May 2012 21:18:44 +0000 (14:18 -0700)]
UPSTREAM: mmc: dw_mmc: add device tree support

Add device tree based discovery support.

Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
11 years agoUPSTREAM: mmc: dw_mmc: add quirk to indicate missing write protect line
Thomas Abraham [Wed, 2 May 2012 03:33:44 +0000 (20:33 -0700)]
UPSTREAM: mmc: dw_mmc: add quirk to indicate missing write protect line

If the write protect pad of the controller is not connected to the write
protect pin of the slot, the driver should be notified of this condition
so that incorrect check for write protection by reading the WRTORT
register can avoided. The get_ro platform callback can be used for in
such cases, but with device tree support enabled, such platform callbacks
cannot be supported.

Add a new quirk for notifying the driver about the missing write protect
line so the driver can assume that the card write protection is disabled.

Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
11 years agoUPSTREAM: mmc: dw_mmc: lookup for optional biu and ciu clocks
Thomas Abraham [Tue, 1 May 2012 04:48:46 +0000 (21:48 -0700)]
UPSTREAM: mmc: dw_mmc: lookup for optional biu and ciu clocks

Some platforms allow for clock gating and control of bus interface unit clock
and card interface unit clock. Add support for clock lookup of optional biu
and ciu clocks for clock gating and clock speed determination.

Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
11 years agoUPSTREAM: mmc: dw_mmc: make multiple instances of dw_mci_card_workqueue
Thomas Abraham [Tue, 1 May 2012 21:39:13 +0000 (14:39 -0700)]
UPSTREAM: mmc: dw_mmc: make multiple instances of dw_mci_card_workqueue

The variable 'dw_mci_card_workqueue' is a global variable shared between
multiple instances of the dw_mmc host controller. Due to this, data
corruption has been noticed when multiple instances of dw_mmc controllers
are actively reading/writing the media. Fix this by adding a instance
of 'struct workqueue_struct' for each host instance and removing the
global 'dw_mci_card_workqueue' instance.

Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
11 years agoUPSTREAM: ARM: Exynos5: Add SROMC bank initialization for LAN9215 controller
Thomas Abraham [Mon, 30 Apr 2012 17:53:40 +0000 (10:53 -0700)]
UPSTREAM: ARM: Exynos5: Add SROMC bank initialization for LAN9215 controller

Add SROMC bank initialization support for LAN9215 ethernet controllers.

Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
11 years agoUPSTREAM: ARM: Exynos5: Add AUXDATA for i2c controllers
Thomas Abraham [Mon, 30 Apr 2012 17:48:17 +0000 (10:48 -0700)]
UPSTREAM: ARM: Exynos5: Add AUXDATA for i2c controllers

Use AUXDATA to set the device names for controller instances discovered
from device tree.

Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
11 years agoUPSTREAM: ARM: Exynos5: Add combiner, wakeup interrupt controller and ethernet nodes
Thomas Abraham [Mon, 30 Apr 2012 18:37:48 +0000 (11:37 -0700)]
UPSTREAM: ARM: Exynos5: Add combiner, wakeup interrupt controller and ethernet nodes

And interrupt combiner, external interrupt wakeup interrupt controller
and smsc9215 lan controller nodes.

Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
11 years agoUPSTREAM: ARM: dts: Update device tree source files for EXYNOS5250
Thomas Abraham [Tue, 24 Apr 2012 21:34:58 +0000 (14:34 -0700)]
UPSTREAM: ARM: dts: Update device tree source files for EXYNOS5250

Updated EXYNOS5 device tree source files to reflect changes in rev1
of EXYNOS5 SoC. This includes new additions to the EXYNOS5 dtsi and
SMDK5250 dts files and few minor fixes.

Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
11 years agoUPSTREAM: ARM: Exynos: Add device tree support for gpio wakeup interrupt controller
Thomas Abraham [Mon, 30 Apr 2012 17:42:22 +0000 (10:42 -0700)]
UPSTREAM: ARM: Exynos: Add device tree support for gpio wakeup interrupt controller

Add device tree support for gpio wakeup source interrupt controller
for Exynos platforms.

Cc: Rob Herring <rob.herring@calxeda.com>
Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
11 years agoUPSTREAM: ARM: Exynos: Remove arch_initcall for wakeup interrupt initialization
Thomas Abraham [Wed, 21 Mar 2012 01:59:24 +0000 (07:29 +0530)]
UPSTREAM: ARM: Exynos: Remove arch_initcall for wakeup interrupt initialization

The of_irq_init function would be setup to invoke the exynos4_init_irq_eint
function when booting using device tree. The arch_initcall for
exynos4_init_irq_eint would duplicate its invocation in that case. Hence,
arch_initcall for exynos4_init_irq_eint is removed and this function is invoked
from the exynos4_init_irq for non-dt case.

Moreover, with single kernel image build, the exynos4_init_irq_eint has no checks
to ensure that it is running on a exynos4 platform. So it would be appropriate
to invoke it from exynos4_init_irq.

Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
Acked-by: Rob Herring <rob.herring@calxeda.com>
11 years agoUPSTREAM: ARM: Exynos: Add irq_domain support for gpio wakeup interrupts
Thomas Abraham [Tue, 20 Mar 2012 19:10:51 +0000 (00:40 +0530)]
UPSTREAM: ARM: Exynos: Add irq_domain support for gpio wakeup interrupts

Add a irq_domain for all the 32 gpio external wakeup interrupt sources.
Since there are users of fixed linux irq numbers of the external wakeup
interrupts, the legacy mapping is used for the irq domain. The fixups
required to use irq domain based interrupt mapping is also included.

Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
Acked-by: Rob Herring <rob.herring@calxeda.com>
11 years agoUPSTREAM: ARM: Exynos: Simplify the wakeup interrupt setup code
Thomas Abraham [Tue, 20 Mar 2012 18:28:01 +0000 (23:58 +0530)]
UPSTREAM: ARM: Exynos: Simplify the wakeup interrupt setup code

Simplify the wakeup interrupt setup code in order to add irq domain
and device tree support.

Cc: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
11 years agoUPSTREAM: ARM: Exynos: Add device tree support for interrupt combiner
Thomas Abraham [Fri, 27 Apr 2012 17:40:34 +0000 (10:40 -0700)]
UPSTREAM: ARM: Exynos: Add device tree support for interrupt combiner

Add device tree based instantiation of the interrupt combiner controller.

Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
Acked-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
11 years agoUPSTREAM: ARM: Exynos: Add irq_domain support for interrupt combiner
Thomas Abraham [Tue, 20 Mar 2012 07:35:04 +0000 (13:05 +0530)]
UPSTREAM: ARM: Exynos: Add irq_domain support for interrupt combiner

Add irq_domain support for hardware interrupts of the interrupt combiner.
The hardware interrupts of all the instances of the combiner are grouped
in a single irq_domain.

Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
Acked-by: Rob Herring <rob.herring@calxeda.com>
11 years agoUPSTREAM: of/irq: add retry support for interrupt controller tree initialization
Thomas Abraham [Fri, 27 Apr 2012 19:06:37 +0000 (12:06 -0700)]
UPSTREAM: of/irq: add retry support for interrupt controller tree initialization

Allow a interrupt-controller initializtion call to report -EAGAIN to notify
that its initializtion has not been completed since one or more of its
interrupt-parent has not yet been initialized.

Suggested-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
11 years agoUPSTREAM: of/irq: fix interrupt parent lookup procedure
Thomas Abraham [Mon, 30 Apr 2012 17:22:47 +0000 (10:22 -0700)]
UPSTREAM: of/irq: fix interrupt parent lookup procedure

The interrupt parent lookup fails for a node that is a interrupt-controller
but does not have an explict interrupt-parent property and instead inherits
this property from the root node.

Consider the nodes listed below.

    / {
        interrupt-parent = <&intc_level1>;

        intc_level1: interrupt-controller@xxx {
                interrupt-controller;
                #interrupt-cells = <3>;
                <rest of the properties here>;
        };

        intc_level2: interrupt-controller@yyy {
                interrupt-controller;
                #interrupt-cells = <2>;
                <rest of the properties here>;
        };
    };

The interrupt parent lookup for interrupt-controller@yyy fails. It inherits
the interrupt-parent property from the root node and the root node ('/')
specifies a 'interrupt-parent' property which represents the default interrupt
root controller. But, the property '#interrupt-cells' might not be specified
in the root node.

In case a interrupt controller node does not include a 'interrupt-parent'
property but inherits that property from the root node, the check for
'interrupt-cells' property in the root node fails. Fix this removing the
check for 'interrupt-cells' property.

Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
11 years agoUPSTREAM: ARM: Exynos: Remove a new bus_type instance for Exynos5
Thomas Abraham [Mon, 30 Apr 2012 17:10:12 +0000 (10:10 -0700)]
UPSTREAM: ARM: Exynos: Remove a new bus_type instance for Exynos5

A seperate bus_type instance is not required for Exynos5. The existing bus_type
instance used with Exynos4 is sufficient for both Exynos4 and Exynos5. This
also solves issue of uninitialized usage of exynos4_subsys in Exynos4 power
management code that is reused for Exynos5 also. In addition to that, the
existing exynos4_subsys bus_type is renamed to exynos_subsys to indicate that
it is reused on both Exynos4 and Exynos5 platforms.

Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
11 years agoUPSTREAM: ARM: EXYNOS: update irqs for EXYNOS5250 evt1
Kukjin Kim [Tue, 24 Apr 2012 22:33:32 +0000 (15:33 -0700)]
UPSTREAM: ARM: EXYNOS: update irqs for EXYNOS5250 evt1

Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
11 years agoUPSTREAM: ARM: EXYNOS: Add pre-divider and fout mux clocks for bpll and mpll
Kisoo Yu [Tue, 24 Apr 2012 21:54:15 +0000 (14:54 -0700)]
UPSTREAM: ARM: EXYNOS: Add pre-divider and fout mux clocks for bpll and mpll

The fout clock of BPLL and MPLL have a selectable source in rev1 of
EXYNOS5. The clock options are a fixed divided by 2 clock and the
output of the PLL itself. Add support for these new clock instances.

Signed-off-by: Kisoo Yu <ksoo.yu@samsung.com>
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
[kgene.kim@samsung.com: temporary apply this because I
don't want to add pll stuff in each clock not commonly]
Temporary-Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
11 years agoUPSTREAM: ARM: EXYNOS: add GPC4 bank instance
Sangsu Park [Tue, 24 Apr 2012 21:44:58 +0000 (14:44 -0700)]
UPSTREAM: ARM: EXYNOS: add GPC4 bank instance

Add GPC4 bank instance which is included in rev1 of EXYNOS5.

Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Sangsu Park <sangsu4u.park@samsung.com>
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
[kgene.kim@samsung.com: re-worked on top of v3.4-rc3]
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
11 years agoUPSTREAM: ARM: EXYNOS: Redefine IRQ_MCT_L0,1 definition
Changhwan Youn [Tue, 24 Apr 2012 21:33:14 +0000 (14:33 -0700)]
UPSTREAM: ARM: EXYNOS: Redefine IRQ_MCT_L0,1 definition

Redefine IRQ_MCT_L0,1 irq definition as it is changed in rev1 of EXYNOS5.

Signed-off-by: Changhwan Youn <chaos.youn@samsung.com>
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
11 years agoUPSTREAM: ARM: EXYNOS: Modify the GIC physical address for static io-mapping
Changhwan Youn [Tue, 24 Apr 2012 21:31:11 +0000 (14:31 -0700)]
UPSTREAM: ARM: EXYNOS: Modify the GIC physical address for static io-mapping

Adapt to changes in GIC physical address in rev1 of EXYNOS5.

Signed-off-by: Changhwan Youn <chaos.youn@samsung.com>
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
11 years agoUPSTREAM: ARM: EXYNOS: Support DMA for EXYNOS5250 SoC
Boojin Kim [Mon, 30 Apr 2012 16:56:56 +0000 (09:56 -0700)]
UPSTREAM: ARM: EXYNOS: Support DMA for EXYNOS5250 SoC

mach-exynos/dma.c is updated to support both exynos4 and exynos5.

Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
[kgene.kim@samsung.com: re-worked on top of v3.4-rc3]
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
11 years agoUPSTREAM: ARM: EXYNOS: Add watchdog timer clock instance
Thomas Abraham [Tue, 24 Apr 2012 21:03:05 +0000 (14:03 -0700)]
UPSTREAM: ARM: EXYNOS: Add watchdog timer clock instance

Add watchdog timer clock instance for EXYNOS5 watchdog controller.

Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
12 years agoLinux 3.4 v3.4
Linus Torvalds [Sun, 20 May 2012 22:29:13 +0000 (15:29 -0700)]
Linux 3.4

12 years agoMerge tag 'parisc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/parisc-2.6
Linus Torvalds [Sat, 19 May 2012 22:30:15 +0000 (15:30 -0700)]
Merge tag 'parisc-fixes' of git://git./linux/kernel/git/jejb/parisc-2.6

Pull PA-RISC fixes from James Bottomley:
 "This is a set of three bug fixes that gets parisc running again on
  systems with PA1.1 processors.

  Two fix regressions introduced in 2.6.39 and one fixes a prefetch bug
  that only affects PA7300LC processors.  We also have another pending
  fix to do with the sectional arrangement of vmlinux.lds, but there's a
  query on it during testing on one particular system type, so I'll hold
  off sending it in for now."

* tag 'parisc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/parisc-2.6:
  [PARISC] fix panic on prefetch(NULL) on PA7300LC
  [PARISC] fix crash in flush_icache_page_asm on PA1.1
  [PARISC] fix PA1.1 oops on boot

12 years agoMerge branch 'x86/ld-fix' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Linus Torvalds [Sat, 19 May 2012 22:28:22 +0000 (15:28 -0700)]
Merge branch 'x86/ld-fix' of git://git./linux/kernel/git/tip/tip

Pull x86 linker bug workarounds from Peter Anvin.

GNU ld-2.22.52.0.[12] (*) has an unfortunate bug where it incorrectly
turns certain relocation entries absolute.  Section-relative symbols
that are part of otherwise empty sections are silently changed them to
absolute.  We rely on section-relative symbols staying section-relative,
and actually have several sections in the linker script solely for this
purpose.

See for example

   http://sourceware.org/bugzilla/show_bug.cgi?id=14052

We could just black-list the buggy linker, but it appears that it got
shipped in at least F17, and possibly other distros too, so it's sadly
not some rare unusual case.

This backports the workaround from the x86/trampoline branch, and as
Peter says: "This is not a minimal fix, not at all, but it is a tested
code base."

* 'x86/ld-fix' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  x86, relocs: When printing an error, say relative or absolute
  x86, relocs: Workaround for binutils 2.22.52.0.1 section bug
  x86, realmode: 16-bit real-mode code support for relocs tool

(*) That's a manly release numbering system. Stupid, sure. But manly.

12 years agoMerge branch 'for-linus' of git://git.kernel.dk/linux-block
Linus Torvalds [Sat, 19 May 2012 17:12:17 +0000 (10:12 -0700)]
Merge branch 'for-linus' of git://git.kernel.dk/linux-block

Pull block layer fixes from Jens Axboe:
 "A few small, but important fixes.  Most of them are marked for stable
  as well

   - Fix failure to release a semaphore on error path in mtip32xx.
   - Fix crashable condition in bio_get_nr_vecs().
   - Don't mark end-of-disk buffers as mapped, limit it to i_size.
   - Fix for build problem with CONFIG_BLOCK=n on arm at least.
   - Fix for a buffer overlow on UUID partition printing.
   - Trivial removal of unused variables in dac960."

* 'for-linus' of git://git.kernel.dk/linux-block:
  block: fix buffer overflow when printing partition UUIDs
  Fix blkdev.h build errors when BLOCK=n
  bio allocation failure due to bio_get_nr_vecs()
  block: don't mark buffers beyond end of disk as mapped
  mtip32xx: release the semaphore on an error path
  dac960: Remove unused variables from DAC960_CreateProcEntries()