cascardo/linux.git
11 years agoMerge branch 'topic-0620/samsung-gscalar-3.4' into chromeos-exynos-3.4
Olof Johansson [Wed, 20 Jun 2012 18:52:46 +0000 (11:52 -0700)]
Merge branch 'topic-0620/samsung-gscalar-3.4' into chromeos-exynos-3.4

* topic-0620/samsung-gscalar-3.4:
  Add V4L2_CID macros for GScaler custom control
  media: gscalar: Fix build warnings due to possible uninitialized usage
  ARM: EXYNOS: GSCALAR: Add IOMMU mapping to GSC probe
  Media: Exynos: Add VB2 modifications for G-Scalar driver
  Media: Exynos: Header file support for G-Scaler driver
  include: mdev: Add driver_put and module_name_to_driver_data
  media: exynos: Fix Tiled format in Gscalar
  media: exynos: gscaler: Don't register Gscaler capture device
  media: exynos: Add new formats in gscalar driver
  media: gscaler: Add new driver for general scaler
  UPSTREAM: media: media-dev: Add media devices for EXYNOS5

11 years agoMerge branch 'topic-0620/samsung-g2d-mfc-hdmi-3.4' into chromeos-exynos-3.4
Olof Johansson [Wed, 20 Jun 2012 18:52:35 +0000 (11:52 -0700)]
Merge branch 'topic-0620/samsung-g2d-mfc-hdmi-3.4' into chromeos-exynos-3.4

* topic-0620/samsung-g2d-mfc-hdmi-3.4: (24 commits)
  Media: exynos/mfc: revert VIDIOC_EXPBUF support in MFC decoder
  TEMP s5p-mfc: Hack to leave unconsumed mfc input data
  TEMP: s5p-mfc: Set display delay to 0x8
  HACK: Media: Mixer: Add Xrandr clone logic
  media: tv: Switch to i2c8 for HDMI-PHY on Exynos
  media: tvout: Fix compilation error on enabling HDMI-CEC on exynos5
  arm: exynos: Add missing register definitions for HDMI-CEC
  tv: hdmi: Fix build warning in hdmi driver
  tv: mixer: Fix build warning in mixer-videobuf2 interface layer
  tv: mixer: Fix build warning due to possible uninitialized usage
  tv: mixer: Fix build warning due to possible uninitialized usage
  ARM: EXYNOS: MFC: Add IOMMU mapping to MFC probe
  s5p-mfc: Update the codec_type list in the header
  s5p-mfc: MFC v6 requires MV buffer reg update
  s5p-mfc: split error condition check
  Media: Exynos: MFC fixes to support OMX
  MFC: update MFC v4l2 driver to support MFC6.x
  ARM: EXYNOS: MIXER: Add IOMMU mapping to MIXER probe
  include: v4l: Add exynos5 hdmi related macros
  v4l2-common: Add modes supported by exynos5 hdmi
  ...

11 years agoMerge branch 'topic-0620/samsung-fimd-mipi-3.4' into chromeos-exynos-3.4
Olof Johansson [Wed, 20 Jun 2012 18:52:21 +0000 (11:52 -0700)]
Merge branch 'topic-0620/samsung-fimd-mipi-3.4' into chromeos-exynos-3.4

* topic-0620/samsung-fimd-mipi-3.4:
  video: s3c-fb: Pass clock_rate from FIMD platdata
  video: s3c-fb: add eDP clock support for s3c-fb
  video: s3c-fb: Fix unused variable build warning
  video: s3c-fb: Fix function protype build warning
  CHROMIUM: exynos: Hack to quiet errors on the console.
  CHROMIUM: exynos: Use & to check a bitfield in the mipi driver, not &&.
  drivers/video: Enabling MIPI DSIM for DRM
  video: backlight: add toshiba mipi-to-lcd driver
  video: MIPI: Add code changes for DT support
  video: Add MIPI DSI driver support for samsung
  Exynos5: FIMD: Fix s2r support for LCD
  HACK: video: s3c-fb: add clk and clk_parent for samsung display controller
  video: fb: add alpha blending, chroma keying and window positioning
  video: s3c-fb: add AUXDATA for device tree support
  media: video/Kconfig: Remove unwanted Kconfig dependencies for FIMD

11 years agoMerge branch 'topic-0620/samsung-dwmmc-3.4' into chromeos-exynos-3.4
Olof Johansson [Wed, 20 Jun 2012 18:52:04 +0000 (11:52 -0700)]
Merge branch 'topic-0620/samsung-dwmmc-3.4' into chromeos-exynos-3.4

* topic-0620/samsung-dwmmc-3.4:
  dwmci: pltfm: Fix build warning in dwmci platform driver
  mmc: dwmci: Fix build warning in dwmci due to possible uninitialized usage
  UPSTREAM: mmc: dw_mmc: fix the transmission handling in IDMAC
  mmc: dw_mmc: Add per instance host capabilities on exynos5

11 years agoMerge branch 'topic-0620/samsung-drm-3.4' into chromeos-exynos-3.4
Olof Johansson [Wed, 20 Jun 2012 18:51:51 +0000 (11:51 -0700)]
Merge branch 'topic-0620/samsung-drm-3.4' into chromeos-exynos-3.4

* topic-0620/samsung-drm-3.4:
  drm/exynos: Adding IOMMU mapping to NON-CONTIG gem framework
  drm/exynos: Add IOMMU support to DRM and DRM-FIMD
  drm/exynos: Enabling DPCLKCON required for eDP in DRM FIMD
  drm/exynos: setting up DRM FIMD clock
  drm/exynos: modifying the resource number for VSYNC interrupt for FIMD
  drm/exynos: Modifying exynos drm fimd to support exynos5
  drm/exynos: Fix pitch rounding error.
  drm/exynos: Add exynos drm specific fb_mmap function
  drm/exynos: Add mmap function to exynos drm dmabuf module
  UPSTREAM: drm/exynos: added drm prime feature.

11 years agoMerge branch 'topic-0620b/samsung-edp-3.4' into chromeos-exynos-3.4
Olof Johansson [Wed, 20 Jun 2012 18:51:35 +0000 (11:51 -0700)]
Merge branch 'topic-0620b/samsung-edp-3.4' into chromeos-exynos-3.4

* topic-0620b/samsung-edp-3.4:
  drivers: video: exynos: Fix compiler warnings
  drivers: video: exynos: Reset and initialize DP before requesting irq
  video: dp: add match table for display port driver
  video: exynos-dp: Add support for h/w link training
  video: exynos-dp: Add support for EVT1 and fix crash when 2 LANES are used

11 years agoMerge branch 'topic-0620/samsung-audio-3.4' into chromeos-exynos-3.4
Olof Johansson [Wed, 20 Jun 2012 18:51:20 +0000 (11:51 -0700)]
Merge branch 'topic-0620/samsung-audio-3.4' into chromeos-exynos-3.4

* topic-0620/samsung-audio-3.4:
  ASOC: SAMSUNG: Add samsung i2s dev name to make work with DT
  i2s: samsung: Fix build warning due to possible uninitialized usage
  asoc: samsung: Fix compilation break in Samsung's PCM driver
  ASOC: SAMSUNG: Use of_match_ptr for defining the of_match_table
  UPSTREAM: ASoC: Samsung: Update Kconfig for Exynos5250 and Exynos4412
  ASOC: SAMSUNG: Add dma_prop variable in s3c_dma_params
  ASoC: SAMSUNG: Add DT support for i2s
  UPSTREAM: dma: pl330: assign a new cookie when restarting tx descriptors in cyclic mode

11 years agoMerge branch 'topic-0620/samsung-spi-3.4' into chromeos-exynos-3.4
Olof Johansson [Wed, 20 Jun 2012 18:50:59 +0000 (11:50 -0700)]
Merge branch 'topic-0620/samsung-spi-3.4' into chromeos-exynos-3.4

* topic-0620/samsung-spi-3.4:
  mtd: m25p80: Add support for Winbond W25Q80BW
  ARM: Exynos4: Fix the incorrect hierarchy of spi controller bus clock
  spi: s3c64xx: add device tree support
  spi: s3c64xx: Remove the 'set_level' callback from controller data
  ARM: Samsung: Modify s3c64xx_spi{0|1|2}_set_platdata function
  ARM: Samsung: Remove pdev pointer paremeter from spi gpio setup functions
  spi: s3c64xx: move controller information into driver data
  spi: s3c64xx: remove unused S3C64XX_SPI_ST_TRLCNTZ macro

11 years agoMerge branch 'topic-0620b/samsung-cros-3.4' into chromeos-exynos-3.4
Olof Johansson [Wed, 20 Jun 2012 18:50:37 +0000 (11:50 -0700)]
Merge branch 'topic-0620b/samsung-cros-3.4' into chromeos-exynos-3.4

* topic-0620b/samsung-cros-3.4: (28 commits)
  CHROMIUM: ARM: exynos: hack in machine file
  HACK: Don't init wm8994 except on smdk5250
  CHROMIUM: ARM: Exynos5: Manually register spidev on spi1.
  CHROMIUM: Daisy: Change backlight PWM frequency to 1KHz
  CHROMIUM: ARM: exynos: add UART3 to DEBUG_LL ports
  CHROMIUM: ARM: Exynos5: Configure spi_1 for snow and daisy.
  CHROMIUM: ARM: exynos: daisy: specify power key in dts
  CHROMIUM: ARM: cros5250: Fix the name of the 32k peripheral clock
  ARM: exynos: dt: setup wlan+bt
  CHROMIUM: ARM: cros5250: add Camera device tree data
  CHROMIUM: ARM: cros5250: add WWAN device tree data
  CHROMIUM: ARM: cros5250: add hsicreset device tree data
  CHROMIUM: exynos: Add the light sensor I2C address and bus information.
  CHROMIUM: ARM: cros5250: add tps65090 device tree data
  CHROMIUM: dts: add TPM info for daisy/snow
  CHROMIUM: dts: Modified the maximum i2c bus frequency for Snow/Daisy
  CHROMIUM: dts: Enable the peripheral and coprocessor clocks on Daisy/Snow
  CHROMIUM: dts: Add gpios for vbus control to Daisy/Snow dt
  CHROMIUM: cros5250: fixup MMC3 fdt
  CHROMIUM: dts: exynos: Disable i2c6
  ...

11 years agoCHROMIUM: ARM: exynos: hack in machine file
Prathyush K [Thu, 14 Jun 2012 16:08:50 +0000 (21:38 +0530)]
CHROMIUM: ARM: exynos: hack in machine file

This is an extension of Olof's patch:
"HACK: ARM: exynos: hack in daisy panel init for now" from chromeos-3.4

This includes support for DRM and EDP as well. This should be removed once
resolution and other paramters are passed from device tree.

Change-Id: I1359b0180a2b93088017b9a0820745fe86d926b4
Signed-off-by: Prathyush K <prathyush.k@samsung.com>
11 years agoHACK: Don't init wm8994 except on smdk5250
Doug Anderson [Fri, 25 May 2012 18:08:30 +0000 (11:08 -0700)]
HACK: Don't init wm8994 except on smdk5250

The wm8994 needs to be device tree enabled, but it's not.  We'll
hack it out for now.

BUG=None
TEST=Boot and don't see errors with next CL that moves i2c numbers
(AKA change ID Icde948b84991ae2f106e91e0629fd8cccac26f6a).

Change-Id: Ia433e9c77e1f47d0f4c015351e0349041959d044
Signed-off-by: Doug Anderson <dianders@chromium.org>
Reviewed-on: https://gerrit-int.chromium.org/18412
Tested-by: Doug Anderson <dianders@google.com>
Reviewed-by: Abhilash Kesavan <a.kesavan@samsung.com>
Commit-Ready: Doug Anderson <dianders@google.com>

11 years agoCHROMIUM: ARM: Exynos5: Manually register spidev on spi1.
Bryan Freed [Wed, 30 May 2012 20:44:23 +0000 (13:44 -0700)]
CHROMIUM: ARM: Exynos5: Manually register spidev on spi1.

This gives user space apps access to spi1 through /dev/spidev1.0.

BUG=chrome-os-partner:9777
TEST=Confirm flashrom -p linux_spi:dev=/dev/spidev1.0 --get-size works.

Change-Id: Ieb957f9b191895e656e11323fd82fd7d68f18007
Signed-off-by: Bryan Freed <bfreed@chromium.org>
Reviewed-on: https://gerrit-int.chromium.org/18705
Commit-Ready: Bryan Freed <bfreed@google.com>
Reviewed-by: Bryan Freed <bfreed@google.com>
Tested-by: Bryan Freed <bfreed@google.com>
Reviewed-by: Olof Johansson <olofj@google.com>
11 years agoCHROMIUM: Daisy: Change backlight PWM frequency to 1KHz
Bernie Thompson [Fri, 23 Mar 2012 22:12:05 +0000 (15:12 -0700)]
CHROMIUM: Daisy: Change backlight PWM frequency to 1KHz

The LCD backlight on Daisy is specified to be 900-1100Hz, the original
clock for the PWM was ~1000Khz, this CL sets the PWM frequency to ~1000Hz.

This change will also impact the SMDK, it will likely resolve a similar
backight not recovering problem there.

This is roughly the same change that happened here:
  <https://gerrit-int.chromium.org/15729>
...so keeping the old commit message...

BUG=chrome-os-partner:10126
TEST=Manual, verify LCD backlight PWM is at 1000Hz.

Change-Id: I4e5c956b2d062d1ca75b36f4cb06364b40f3da42
Signed-off-by: Bernie Thompson <bhthompson@chromium.org>
Signed-off-by: Doug Anderson <dianders@chromium.org>
11 years agoCHROMIUM: ARM: exynos: add UART3 to DEBUG_LL ports
Olof Johansson [Fri, 13 Apr 2012 17:47:20 +0000 (10:47 -0700)]
CHROMIUM: ARM: exynos: add UART3 to DEBUG_LL ports

Turns out that the uart we're using is not supported for DEBUG_LL on
the samsung platform port. I'll upstream this as well.

BUG=none
TEST=boot with DEBUG_LL, see output on serial

Change-Id: Ia8e1d8243205a990acb2ed75a33c2e65c913969d
Signed-off-by: Olof Johansson <olofj@chromium.org>
Reviewed-on: https://gerrit-int.chromium.org/15740
Reviewed-by: Doug Anderson <dianders@google.com>
Commit-Ready: Olof Johansson <olofj@google.com>
Tested-by: Olof Johansson <olofj@google.com>
11 years agoCHROMIUM: ARM: Exynos5: Configure spi_1 for snow and daisy.
Bryan Freed [Thu, 7 Jun 2012 16:57:36 +0000 (09:57 -0700)]
CHROMIUM: ARM: Exynos5: Configure spi_1 for snow and daisy.

Disable spi_0 and spi_2.
Configure gpios, num-cs, and parent clock for spi_1.

BUG=chrome-os-partner:9777
TEST=Confirm spi_0, 1, and 2 warnings longer occur in the boot dmesg.

Change-Id: I31512d601d4ab712d7d9041ac6ce674113ab58e5
Reviewed-on: https://gerrit-int.chromium.org/19281
Tested-by: Bryan Freed <bfreed@google.com>
Reviewed-by: Olof Johansson <olofj@google.com>
Commit-Ready: Bryan Freed <bfreed@google.com>

11 years agoCHROMIUM: ARM: exynos: daisy: specify power key in dts
Olof Johansson [Tue, 5 Jun 2012 22:42:16 +0000 (15:42 -0700)]
CHROMIUM: ARM: exynos: daisy: specify power key in dts

BUG=chrome-os-partner:8925
TEST=evtest

Change-Id: Ib1f149899728735e767b4977974a0d0fab5f8a13
Signed-off-by: Olof Johansson <olofj@chromium.org>
Reviewed-on: https://gerrit-int.chromium.org/19114
Commit-Ready: Olof Johansson <olofj@google.com>
Reviewed-by: Olof Johansson <olofj@google.com>
Tested-by: Olof Johansson <olofj@google.com>
Reviewed-by: Doug Anderson <dianders@google.com>
11 years agoCHROMIUM: ARM: cros5250: Fix the name of the 32k peripheral clock
Doug Anderson [Tue, 5 Jun 2012 23:09:10 +0000 (16:09 -0700)]
CHROMIUM: ARM: cros5250: Fix the name of the 32k peripheral clock

The name of this clock was corrected in my fixup to this CL:
  https://gerrit-int.chromium.org/18444
...unfortunately, I hadn't realized that I also needed to update the
device tree.  This fixes it.

BUG=chrome-os-partner:8923
TEST=On Daisy can now see WiFi card.  AKA, see this in boot messages:
  [    9.640000] mmc2: new high speed SDIO card at address 0001
TEST=No longer see errors about 32khz clock in dmesg.  Was seeing:
  [    0.700000] max77686 0-0009: No configuration data for regulator EN32KHZ

Change-Id: Ia113ebe416b07a0355fe45995439e5043bdce46e
Signed-off-by: Doug Anderson <dianders@chromium.org>
Reviewed-on: https://gerrit-int.chromium.org/19091
Tested-by: Doug Anderson <dianders@google.com>
Reviewed-by: Sam Leffler <sleffler@google.com>
Commit-Ready: Doug Anderson <dianders@google.com>

11 years agoARM: exynos: dt: setup wlan+bt
Sam Leffler [Fri, 25 May 2012 00:21:41 +0000 (17:21 -0700)]
ARM: exynos: dt: setup wlan+bt

Initialize the gpio's required to probe the SDIO wlan+bt devices.

Signed-off-by: Sam Leffler <sleffler@chromium.org>
BUG=chrome-os-partner:10088
TEST=boot on snow and verify wifi is probed

Change-Id: Ice9ecd3eea265b2e8cf7f34c759c4c9c844c8ebc
Reviewed-on: https://gerrit-int.chromium.org/18766
Tested-by: Sam Leffler <sleffler@google.com>
Reviewed-by: Olof Johansson <olofj@google.com>
Commit-Ready: Sam Leffler <sleffler@google.com>
Reviewed-by: Sam Leffler <sleffler@google.com>
11 years agoCHROMIUM: ARM: cros5250: add Camera device tree data
Terry Lambert [Thu, 31 May 2012 22:20:01 +0000 (15:20 -0700)]
CHROMIUM: ARM: cros5250: add Camera device tree data

Default the camera power regulator in the PMIC to "on"

BUG=chrome-os-partner:8927
TEST=add HSIC change, build, boot, lsusb, see camera device

Change-Id: Ibf9bc32dd84d6bb483818e21ec1719ed057d106d
Reviewed-on: https://gerrit-int.chromium.org/18791
Commit-Ready: Terry Lambert <tlambert@google.com>
Reviewed-by: Terry Lambert <tlambert@google.com>
Tested-by: Terry Lambert <tlambert@google.com>
11 years agoCHROMIUM: ARM: cros5250: add WWAN device tree data
Terry Lambert [Thu, 31 May 2012 22:15:49 +0000 (15:15 -0700)]
CHROMIUM: ARM: cros5250: add WWAN device tree data

Default the GSM miodem power regulator in the PMIC to "on"

BUG=chrome-os-partner:8924
TEST=add HSIC change, build, boot, lsusb, see 3G modem device

Change-Id: I374b83e23aca602222dcfe137654aa4cbd4d70b0
Reviewed-on: https://gerrit-int.chromium.org/18790
Reviewed-by: Olof Johansson <olofj@google.com>
Tested-by: Terry Lambert <tlambert@google.com>
Commit-Ready: Terry Lambert <tlambert@google.com>
Reviewed-by: Terry Lambert <tlambert@google.com>
11 years agoCHROMIUM: ARM: cros5250: add hsicreset device tree data
Terry Lambert [Thu, 31 May 2012 22:03:57 +0000 (15:03 -0700)]
CHROMIUM: ARM: cros5250: add hsicreset device tree data

Describes the HSIC reset line gpio as a fixed-regulator, defaults it on;
minimal metadata is included for uniqueness, naming identification.

BUG=chrome-os-partner:9351
TEST=add camera/3G/ALS FET change, build, boot, lsusb, see camera or 3G
modem device

Change-Id: If215558bab480754d0cc3637edd1ece6409d482c
Reviewed-on: https://gerrit-int.chromium.org/18786
Tested-by: Terry Lambert <tlambert@google.com>
Reviewed-by: Olof Johansson <olofj@google.com>
Reviewed-by: Terry Lambert <tlambert@google.com>
Commit-Ready: Terry Lambert <tlambert@google.com>

11 years agoCHROMIUM: exynos: Add the light sensor I2C address and bus information.
Bryan Freed [Wed, 30 May 2012 21:50:00 +0000 (14:50 -0700)]
CHROMIUM: exynos: Add the light sensor I2C address and bus information.

Add this information to the cros-common dtsi so we can share fdt
between boards.

BUG=chrome-os-partner:8928
TEST=Verify /sys/class/iio/devices/iio:device0/ is populated.

Change-Id: I03ad5998cdbe951de8af6a7dd7cacd92d0150d5e
Signed-off-by: Bryan Freed <bfreed@chromium.org>
Reviewed-on: https://gerrit-int.chromium.org/18680
Tested-by: Bryan Freed <bfreed@google.com>
Reviewed-by: Olof Johansson <olofj@google.com>
Commit-Ready: Bryan Freed <bfreed@google.com>

11 years agoCHROMIUM: ARM: cros5250: add tps65090 device tree data
Olof Johansson [Wed, 30 May 2012 09:24:17 +0000 (02:24 -0700)]
CHROMIUM: ARM: cros5250: add tps65090 device tree data

Just descring the FETs right now.

BUG=chrome-os-partner:9776
TEST=build, boot, see graphics on console

Change-Id: I12ab7d74807f323077a78d4e07f4d081c284a659
Signed-off-by: Olof Johansson <olofj@chromium.org>
Reviewed-on: https://gerrit-int.chromium.org/18604
Reviewed-by: Doug Anderson <dianders@google.com>
Commit-Ready: Olof Johansson <olofj@google.com>
Tested-by: Olof Johansson <olofj@google.com>
11 years agoCHROMIUM: dts: add TPM info for daisy/snow
Luigi Semenzato [Fri, 25 May 2012 19:44:01 +0000 (12:44 -0700)]
CHROMIUM: dts: add TPM info for daisy/snow

BUG=chrome-os-partner:8919
TEST=tpmc startup; tpmc test

Change-Id: I1524b4098ea36c44887188557d0845939c0533e1
Reviewed-on: https://gerrit-int.chromium.org/18425
Reviewed-by: Olof Johansson <olofj@google.com>
Commit-Ready: Luigi Semenzato <semenzato@google.com>
Tested-by: Luigi Semenzato <semenzato@google.com>
11 years agoCHROMIUM: dts: Modified the maximum i2c bus frequency for Snow/Daisy
Abhilash Kesavan [Tue, 22 May 2012 17:58:05 +0000 (10:58 -0700)]
CHROMIUM: dts: Modified the maximum i2c bus frequency for Snow/Daisy

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

Change-Id: I843f88b1d5b70098c1ee73fff8371a349dc0e684
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
11 years agoCHROMIUM: dts: Enable the peripheral and coprocessor clocks on Daisy/Snow
Abhilash Kesavan [Fri, 25 May 2012 21:28:29 +0000 (14:28 -0700)]
CHROMIUM: dts: Enable the peripheral and coprocessor clocks on Daisy/Snow

Enabling the 32KHz peripheral and coprocessor clocks at boot time.

Bug=None
Test=Build, boot and see the bootup messages showing the regulator
enabling these clocks.

Change-Id: I24085d8cb151a455c5ad0643ae36c7f242fa7032
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Reviewed-on: https://gerrit-int.chromium.org/18447
Reviewed-by: Olof Johansson <olofj@google.com>
Tested-by: Olof Johansson <olofj@google.com>
Commit-Ready: Olof Johansson <olofj@google.com>

11 years agoCHROMIUM: dts: Add gpios for vbus control to Daisy/Snow dt
Abhilash Kesavan [Fri, 25 May 2012 20:05:16 +0000 (13:05 -0700)]
CHROMIUM: dts: Add gpios for vbus control to Daisy/Snow dt

Add USB 2.0 EHCI and USB 3.0 XHCI vbus control gpio pins to the
Daisy/Snow device tree file.

Bug=chrome-os-partner:9156
Test=Booted and tested USB 2.0/3.0 port on Daisy

Change-Id: Ic2d35b9734343b9b346fd7c4139e93421c02d08f
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Reviewed-on: https://gerrit-int.chromium.org/18442
Reviewed-by: Doug Anderson <dianders@google.com>
Commit-Ready: Doug Anderson <dianders@google.com>

11 years agoCHROMIUM: cros5250: fixup MMC3 fdt
Sam Leffler [Fri, 25 May 2012 16:03:49 +0000 (09:03 -0700)]
CHROMIUM: cros5250: fixup MMC3 fdt

Convert the 3.3 MMC3 platform initializations to FDT.

Signed-off-by: sleffler@chromium.org
BUG=chrome-os-partner:9843
TEST=boot and verify device tree settings via /proc

Change-Id: I15daca841c5796f5368008c4f2f15c4765391788
Reviewed-on: https://gerrit-int.chromium.org/18414
Reviewed-by: Doug Anderson <dianders@google.com>
Commit-Ready: Sam Leffler <sleffler@google.com>
Tested-by: Sam Leffler <sleffler@google.com>
11 years agoCHROMIUM: dts: exynos: Disable i2c6
Doug Anderson [Fri, 25 May 2012 17:11:07 +0000 (10:11 -0700)]
CHROMIUM: dts: exynos: Disable i2c6

We don't use this i2c on our board.  Mark as disabled.  Before this
we were getting this error in the log:

[    1.600000] s3c-i2c s3c2440-i2c.6: invalid gpio[0]: -22
[    1.600000] s3c-i2c: probe of s3c2440-i2c.6 failed with error -22

BUG=None
TEST=Booted and didn't see the above error.

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

11 years agoCHROMIUM: exynos: daisy: Enable 32KHz AP clock
Abhilash Kesavan [Thu, 24 May 2012 04:13:44 +0000 (21:13 -0700)]
CHROMIUM: exynos: daisy: Enable 32KHz AP clock

Ported over from chromeos-3.3.
The AP clock goes to the exynos CPU and is the source for the RTC.
Enable the clock to get the RTC going.

BUG=None
TEST=Boot and test RTC using hwclock on Daisy

Change-Id: Ief1a5616653db427987dafe49c2261c5849b63ea
Original-Signed-off-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Reviewed-on: https://gerrit-int.chromium.org/18279
Reviewed-by: Olof Johansson <olofj@google.com>
Tested-by: Olof Johansson <olofj@google.com>
11 years agoCHROMIUM: exynos: dts: Take "smdk5250" out of daisy/snow dts
Doug Anderson [Fri, 25 May 2012 23:21:31 +0000 (16:21 -0700)]
CHROMIUM: exynos: dts: Take "smdk5250" out of daisy/snow dts

Daisy and snow have some important differences from smdk5250.  Taking
this out allows us to check for smdk5250.  Note that we really
shouldn't be testing for the board itself in the long term, but in the
short term it is helpful.

BUG=None
TEST=Compile and boot; notice that future patch with test for smdk5250
detects that snow is not smdk5250.

Change-Id: I52f01cc7355719e46dcd4dcf09ec9affa399133d
Signed-off-by: Doug Anderson <dianders@chromium.org>
Reviewed-on: https://gerrit-int.chromium.org/18459
Tested-by: Doug Anderson <dianders@google.com>
Reviewed-by: Abhilash Kesavan <a.kesavan@samsung.com>
Commit-Ready: Doug Anderson <dianders@google.com>

11 years agoCHROMIUM: ARM: exynos: daisy: dts: Refactor common dts between daisy and snow
Doug Anderson [Fri, 18 May 2012 16:02:39 +0000 (09:02 -0700)]
CHROMIUM: ARM: exynos: daisy: dts: Refactor common dts between daisy and snow

Daisy and snow are so similar that we should share as much as possible
between them.  This has the side effect of bring snow more up to date.

Also remove the @3a from hdcp as a cleanup.

BUG=None
TEST=Boot snow and daisy
TEST=Running 'dtc exynos5250-daisy.dts' before and after produce same
result (except exynos_hdcp@3a has 3a missing).
TEST=Running 'dtc exynos5250-snow.dts' before and after shows expected
changes.

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

11 years agoCHROMIUM: ARM: exynos: snow: dts: Disable mipi
Doug Anderson [Tue, 22 May 2012 19:22:04 +0000 (12:22 -0700)]
CHROMIUM: ARM: exynos: snow: dts: Disable mipi

Snow has nothing connected to MIPI.  If you don't disable it and you
try to boot on snow, you'll get lines like:

  [    1.820000] mipi dsi interrupt source (0).
  [    1.820000] mipi dsi interrupt source (0).

BUG=None
TEST=Booted snow and didn't see errors.

Change-Id: I43a2f870909782b9f78785eb4d929067c0e7d588
Signed-off-by: Doug Anderson <dianders@chromium.org>
Reviewed-on: https://gerrit-int.chromium.org/18118
Tested-by: Doug Anderson <dianders@google.com>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Commit-Ready: Doug Anderson <dianders@google.com>

11 years agoCHROMIUM: dts: add display port device node information to Daisy
Ajay Kumar [Thu, 24 May 2012 13:54:15 +0000 (09:54 -0400)]
CHROMIUM: dts: add display port device node information to Daisy

This modifies the daisy dts file to disable eDP.

Change-Id: I3218bc396f50d9cf50899b347a441ef5f5b097b8
Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
11 years agoCHROMIUM: ARM: exynos: add snow dts file
Olof Johansson [Thu, 26 Apr 2012 23:59:17 +0000 (16:59 -0700)]
CHROMIUM: ARM: exynos: add snow dts file

BUG=none
TEST=make dtbs

Change-Id: I583c71b6e00098ca50f74f6d9921f6dcc6a267ee
Signed-off-by: Olof Johansson <olofj@chromium.org>
Reviewed-on: https://gerrit-int.chromium.org/16559
Commit-Ready: Olof Johansson <olofj@google.com>
Reviewed-by: Olof Johansson <olofj@google.com>
Tested-by: Olof Johansson <olofj@google.com>
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 agoMerge branch 'topic-0620b/samsung-dt-3.4' into chromeos-exynos-3.4
Olof Johansson [Wed, 20 Jun 2012 18:47:51 +0000 (11:47 -0700)]
Merge branch 'topic-0620b/samsung-dt-3.4' into chromeos-exynos-3.4

* topic-0620b/samsung-dt-3.4: (32 commits)
  ARM: EXYNOS5: Pass clock_rate from FIMD platdata
  ARM: exynos: dt: add all i2c busses to auxdata
  exynos5: dts: Modified the maximum i2c bus frequency for exynos5
  arm: dts: add display port device node information
  ARM: dts: Add nodes for spi controllers for Samsung Exynos5 platforms
  ARM: dts: Add nodes for spi controllers for Samsung Exynos4 platforms
  ARM: EXYNOS5: Add alias names for i2c controllers
  CHROMIUM: ARM: dts: move i2c size/address-cells to dtsi file for exynos5250
  arm: exynos5: dts: Move alias names from dts file to dtsi file
  ARM: EXYNOS: Add 'sysmmu' property to DTS file for exynos5250
  ARM: exynos: move sms911x device node to sromc bus on smdk
  ARM: exynos: dts: add sromc bus with ranges
  Add aliases for mshc controllers to determine the instance number of the controller.
  ARM: EXYNOS5: Add support for MAX77686 chip and regulators.
  ARM: EXYNOS5: Interchanging PA of sysmmu for MFC_L and MFC_R
  ARM: EXYNOS5: Add EDP device and platform data.
  ARM: Exynos5: Enable platform support for SPI controllers
  ARM: Exynos4: Enable platform support for SPI controllers
  ARM: EXYNOS: Adding DRM-FIMD platform data
  ARM: EXYNOS5: Add mixer device DT support
  ...

11 years agoMerge branch 'topic-0620/samsung-arch-3.4' into chromeos-exynos-3.4
Olof Johansson [Wed, 20 Jun 2012 18:39:51 +0000 (11:39 -0700)]
Merge branch 'topic-0620/samsung-arch-3.4' into chromeos-exynos-3.4

* topic-0620/samsung-arch-3.4: (34 commits)
  arm: exynos5: add displayport setup
  ARM: SAMSUNG: Add set platdata function for G2D
  ARM: EXYNOS: SYSMMU: Add IOMMU machine support to Exynos5
  ARM: EXYNOS: add setup functions for MIPI DSI
  ARM: EXYNOS: Add clock setup functions for FIMD1
  ARM: SAMSUNG: add mipi dsim platform specific changes
  arm: exynos5: add display port clock instance
  ARM: EXYNOS: Add DPCLK to plat data
  S5P: SYSMMU: Remove System MMU device driver
  ARM: EXYNOS: Adding DRM platform device
  ARM: EXYNOS: Add reserve function to increase consistent memory
  ARM: EXYNOS: Update Display block cfg and fimd bypass offset register
  ARM: EXYNOS5: Setup legacy i2c controller interrupts on SMDK5250
  ARM: EXYNOS: Add machine code to support watchdog reset
  ARM: EXYNOS5: Add GPIO setup function for TV
  ARM: EXYNOS5: Update clock file with hdmi clock
  ARM: EXYNOS: Add configuration helper functions for TV/HDMI
  ARM: EXYNOS5: Add DMA interface device into platform devices list
  ARM: EXYNOS5: Add platform data for wm8994
  ARM: EXYNOS: Add static mapping for EXYNOS Audio Subsystem
  ...

11 years agoMerge branch 'topic-0620b/samsung-3d-3.4' into chromeos-exynos-3.4
Olof Johansson [Wed, 20 Jun 2012 18:39:10 +0000 (11:39 -0700)]
Merge branch 'topic-0620b/samsung-3d-3.4' into chromeos-exynos-3.4

* topic-0620b/samsung-3d-3.4:
  drm: vithar: don't default to enabled
  arm: exynos5: Add G3D physical address on Exynos5
  arm: exynos5: Add irq definitions for GPU
  gpu: vithar: Add DVFS in Kconfig and fix compilation issues
  gpu: vithar: Fix for deadlock in mali kbase.
  gpu: vithar: Removal of UMP dependent code from Vithar
  EXYNOS5: GPU: Makefile hack for vithar
  gpu: vithar: Add vithar code base to kernel

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 agoMerge ranch 'topic-0620/samsung-vb2-3.4' into chromeos-exynos-3.4
Olof Johansson [Wed, 20 Jun 2012 17:32:05 +0000 (10:32 -0700)]
Merge ranch 'topic-0620/samsung-vb2-3.4' into chromeos-exynos-3.4

* topic-0620/samsung-vb2-3.4: (28 commits)
  FIX: add blank mmap function support for dma_buf_ops
  MEDIA: Support of dma_buf export in v4l2-m2m
  v4l: vb2-dma-contig: use dma_get_sgtable
  v4l: s5p-mfc: support for dmabuf exporting
  v4l: s5p-tv: mixer: support for dmabuf exporting
  v4l: s5p-fimc: support for dmabuf exporting
  v4l: vb2-dma-contig: add support for DMABUF exporting
  v4l: vb2: add buffer exporting via dmabuf
  v4l: add buffer exporting via dmabuf
  Documentation: media: description of DMABUF exporting in V4L2
  v4l: vb2-dma-contig: let mmap method to use dma_mmap_coherent call
  UPSTREAM: [media] v4l2-ioctl: handle priority handling based on a table lookup
  UPSTREAM: [media] v4l2-dev/ioctl: determine the valid ioctls upfront
  UPSTREAM: [media] v4l2-dev: make it possible to skip locking for selected ioctls
  v4l: s5p-tv: mixer: support for dmabuf importing
  v4l: vivi: support for dmabuf importing
  v4l: vb2-vmalloc: add support for dmabuf importing
  v4l: vb2-dma-contig: add support for dma_buf importing
  v4l: vb2-dma-contig: add prepare/finish to dma-contig allocator
  v4l: vb2: add prepare/finish callbacks to allocators
  ...

11 years agoMerge ranch 'topic-0620/samsung-dmabuf-3.4' into chromeos-exynos-3.4
Olof Johansson [Wed, 20 Jun 2012 17:31:50 +0000 (10:31 -0700)]
Merge ranch 'topic-0620/samsung-dmabuf-3.4' into chromeos-exynos-3.4

* topic-0620/samsung-dmabuf-3.4:
  UPSTREAM: dma-buf: add initial vmap documentation
  UPSTREAM: dma-buf: minor documentation fixes.
  UPSTREAM: dma-buf: add vmap interface
  UPSTREAM: dma-buf: mmap support

11 years agoMerge ranch 'topic-0620/samsung-dmamapping-3.4' into chromeos-exynos-3.4
Olof Johansson [Wed, 20 Jun 2012 17:31:36 +0000 (10:31 -0700)]
Merge ranch 'topic-0620/samsung-dmamapping-3.4' into chromeos-exynos-3.4

* topic-0620/samsung-dmamapping-3.4:
  iommu/exynos: add support for IOMMU mapping for virtual devices
  IOMMU: EXYNOS: Adding DT support to sysmmu driver for exynos
  iommu/exynos: fix runtime pm support
  iommu/exynos: Add iommu driver for Exynos Platforms
  scatterlist: add sg_alloc_table_from_pages function
  ARM: dma-mapping: fix debug messages in dmabounce code
  ARM: dma-mapping: add support for DMA_ATTR_SKIP_CPU_SYNC attribute
  common: DMA-mapping: add DMA_ATTR_SKIP_CPU_SYNC attribute
  ARM: dma-mapping: add support for dma_get_sgtable()
  common: dma-mapping: introduce dma_get_sgtable() function
  ARM: dma-mapping: add support for DMA_ATTR_NO_KERNEL_MAPPING attribute
  common: DMA-mapping: add DMA_ATTR_NO_KERNEL_MAPPING attribute
  ARM: dma-mapping: remove custom consistent dma region
  mm: vmalloc: add VM_DMA flag to indicate areas used by dma-mapping framework
  mm: vmalloc: use const void * for caller argument

11 years agoMerge branch 'topic-0620/samsung-dmamapping-mainline-3.4' into chromeos-exynos-3.4
Olof Johansson [Wed, 20 Jun 2012 17:31:19 +0000 (10:31 -0700)]
Merge branch 'topic-0620/samsung-dmamapping-mainline-3.4' into chromeos-exynos-3.4

* topic-0620/samsung-dmamapping-mainline-3.4: (28 commits)
  ARM: dma-mapping: use PMD size for section unmap
  cma: fix migration mode
  ARM: integrate CMA with DMA-mapping subsystem
  X86: integrate CMA with DMA-mapping subsystem
  drivers: add Contiguous Memory Allocator
  mm: trigger page reclaim in alloc_contig_range() to stabilise watermarks
  mm: extract reclaim code from __alloc_pages_direct_reclaim()
  mm: Serialize access to min_free_kbytes
  mm: page_isolation: MIGRATE_CMA isolation functions added
  mm: mmzone: MIGRATE_CMA migration type added
  mm: page_alloc: change fallbacks array handling
  mm: page_alloc: introduce alloc_contig_range()
  mm: compaction: export some of the functions
  mm: compaction: introduce isolate_freepages_range()
  mm: compaction: introduce map_pages()
  mm: compaction: introduce isolate_migratepages_range()
  mm: page_alloc: remove trailing whitespace
  ARM: dma-mapping: add support for IOMMU mapper
  ARM: dma-mapping: use alloc, mmap, free from dma_ops
  ARM: dma-mapping: remove redundant code and do the cleanup
  ...

11 years agoMerge branch 'topic-0620/samsung-base-3.4' into chromeos-exynos-3.4
Olof Johansson [Wed, 20 Jun 2012 17:30:57 +0000 (10:30 -0700)]
Merge branch 'topic-0620/samsung-base-3.4' into chromeos-exynos-3.4

* topic-0620/samsung-base-3.4: (28 commits)
  UPSTREAM: ARM: dts: Add nodes for dw_mmc controllers for Samsung Exynos5250 platforms
  UPSTREAM: ARM: Exynos5: Add AUXDATA support for MSHC controllers
  UPSTREAM: ARM: Samsung: Add support for MSHC controller clocks
  UPSTREAM: mmc: dw_mmc: add samsung exynos5250 specific extentions
  UPSTREAM: mmc: dw_mmc: add device tree support
  UPSTREAM: mmc: dw_mmc: add quirk to indicate missing write protect line
  UPSTREAM: mmc: dw_mmc: lookup for optional biu and ciu clocks
  UPSTREAM: mmc: dw_mmc: make multiple instances of dw_mci_card_workqueue
  UPSTREAM: ARM: Exynos5: Add SROMC bank initialization for LAN9215 controller
  UPSTREAM: ARM: Exynos5: Add AUXDATA for i2c controllers
  UPSTREAM: ARM: Exynos5: Add combiner, wakeup interrupt controller and ethernet nodes
  UPSTREAM: ARM: dts: Update device tree source files for EXYNOS5250
  UPSTREAM: ARM: Exynos: Add device tree support for gpio wakeup interrupt controller
  UPSTREAM: ARM: Exynos: Remove arch_initcall for wakeup interrupt initialization
  UPSTREAM: ARM: Exynos: Add irq_domain support for gpio wakeup interrupts
  UPSTREAM: ARM: Exynos: Simplify the wakeup interrupt setup code
  UPSTREAM: ARM: Exynos: Add device tree support for interrupt combiner
  UPSTREAM: ARM: Exynos: Add irq_domain support for interrupt combiner
  UPSTREAM: of/irq: add retry support for interrupt controller tree initialization
  UPSTREAM: of/irq: fix interrupt parent lookup procedure
  ...

11 years agoAdd V4L2_CID macros for GScaler custom control
Leela Krishna Amudala [Wed, 20 Jun 2012 10:23:37 +0000 (03:23 -0700)]
Add V4L2_CID macros for GScaler custom control

This patch adds supporting macros for GScaler custom controls.

Change-Id: I5db77c4e7699cf860e01391f1d1e955ddbd9c44c
Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com>
11 years agomedia: gscalar: Fix build warnings due to possible uninitialized usage
Abhilash Kesavan [Tue, 15 May 2012 22:01:59 +0000 (15:01 -0700)]
media: gscalar: Fix build warnings due to possible uninitialized usage

Fix the following build warnings in exynos' gscalar driver:

drivers/media/video/exynos/gsc/gsc-capture.c: In function
'gsc_capture_subdev_set_fmt':
drivers/media/video/exynos/gsc/gsc-capture.c:1041:16: warning: 'max_h'
may be used uninitialized in this function [-Wmaybe-uninitialized]
drivers/media/video/exynos/gsc/gsc-capture.c:1013:27: note: 'max_h'
was declared here
drivers/media/video/exynos/gsc/gsc-capture.c:1040:15: warning: 'max_w'
may be used uninitialized in this function [-Wmaybe-uninitialized]
drivers/media/video/exynos/gsc/gsc-capture.c:1013:20: note: 'max_w'
was declared here
drivers/media/video/exynos/gsc/gsc-capture.c:1041:16: warning: 'min_h'
may be used uninitialized in this function [-Wmaybe-uninitialized]
drivers/media/video/exynos/gsc/gsc-capture.c:1013:13: note: 'min_h'
was declared here
drivers/media/video/exynos/gsc/gsc-capture.c:1040:15: warning: 'min_w'
may be used uninitialized in this function [-Wmaybe-uninitialized]
drivers/media/video/exynos/gsc/gsc-capture.c:1013:6: note: 'min_w'
was declared here

BUG=chrome-os-partner:9696
TEST=build and boot on SMDK

Change-Id: Iabaaf6b33787a7cd37818fb8a46d33ca8f589e22
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Reviewed-on: https://gerrit-int.chromium.org/17823
Commit-Ready: Doug Anderson <dianders@google.com>
Reviewed-by: Doug Anderson <dianders@google.com>
Tested-by: Doug Anderson <dianders@google.com>
11 years agoARM: EXYNOS: GSCALAR: Add IOMMU mapping to GSC probe
Prathyush K [Sun, 3 Jun 2012 12:11:32 +0000 (17:41 +0530)]
ARM: EXYNOS: GSCALAR: Add IOMMU mapping to GSC probe

IOMMU mapping is created for gscalar device during probe. This
requires the sysmmu property be set in the DTS file. First, the
sysmmu device node is found and then the sysmmu platform device
is retrieved. A IOMMU mapping is then created.

Change-Id: If7708c65dac7e65ab25352ed6350b8a40218eb3b
Signed-off-by: Prathyush K <prathyush.k@samsung.com>
11 years agoMedia: Exynos: Add VB2 modifications for G-Scalar driver
Subash Patel [Tue, 29 May 2012 06:44:46 +0000 (12:14 +0530)]
Media: Exynos: Add VB2 modifications for G-Scalar driver

Adding required modification for supporting dma mapping through vb2
for gscalar driver.

Change-Id: I94c7f889682538f15d3e1e9426dee84e7493b6b1
Signed-off-by: Subash Patel <subash.ramaswamy@linaro.org>
Signed-off-by: Shaik Ameer Basha <shaik.ameer@samsung.com>
11 years agoMedia: Exynos: Header file support for G-Scaler driver
Subash Patel [Tue, 22 May 2012 19:18:30 +0000 (20:18 +0100)]
Media: Exynos: Header file support for G-Scaler driver

This commit adds the header files required to define the controls
of the new G-Scaler driver.

Change-Id: Iea9d01e18870501758326750c3b0051df9ec139f
Signed-off-by: Subash Patel <subash.ramaswamy@linaro.org>
Signed-off-by: Kiran AVND <kiran.avnd@samsung.com>
11 years agoinclude: mdev: Add driver_put and module_name_to_driver_data
Naveen Krishna Chatradhi [Fri, 4 May 2012 09:58:00 +0000 (15:28 +0530)]
include: mdev: Add driver_put and module_name_to_driver_data

This patch adds driver_put and module_name_to_driver_data
calls made by Multi media devices usign MDEV.

Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
11 years agomedia: exynos: Fix Tiled format in Gscalar
Naveen Krishna Chatradhi [Fri, 13 Apr 2012 19:12:14 +0000 (00:42 +0530)]
media: exynos: Fix Tiled format in Gscalar

If the output or input format is V4L2_PIX_FMT_NV12MT_16X16
configure gsc to use GSC_IN_TILE_MODE.

Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
11 years agomedia: exynos: gscaler: Don't register Gscaler capture device
Leela Krishna Amudala [Mon, 14 May 2012 13:09:42 +0000 (18:39 +0530)]
media: exynos: gscaler: Don't register Gscaler capture device

Gscaler capture interface is not used at this moment
so dont register gscaler capture device.

This will be addressed later.

Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com>
11 years agomedia: exynos: Add new formats in gscalar driver
Leela Krishna Amudala [Mon, 14 May 2012 13:08:13 +0000 (18:38 +0530)]
media: exynos: Add new formats in gscalar driver

Add V4L2_PIX_FMT_YVU420M and V4L2_PIX_FMT_NV12MT_16X16 format
support in the gscalar driver.

Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
11 years agomedia: gscaler: Add new driver for general scaler
Leela Krishna Amudala [Wed, 2 May 2012 10:02:21 +0000 (15:32 +0530)]
media: gscaler: Add new driver for general scaler

    This patch add support gscaler device which is a new device
    for scaling and color space conversion on EXYNOS5 SoCs.

    This device supports the followings as key feature.
     1) Input image format
       - RGB888/565, YUV422 1P/2P, YUV420 2P/3P, TILE
     2) Output image format
       - RGB888/565, YUV422 1P/2P, YUV420 2P/3P, YUV444
     3) Input rotation
       - 0/90/180/270 degree, X/Y Flip
     4) Scale ratio
       - 1/16 scale down to 8 scale up
     5) CSC
       - RGB to YUV / YUV to RGB
     6) Size
       - 2048 x 2048 for tile or rotation
       - 4800 x 3344 other case

Change-Id: Ic3caf7b0e35fa43e14b85f878635160ccbe60f23
Signed-off-by: Hynwoong Kim <khw0178.kim@xxxxxxxxxxx>
Signed-off-by: Sungchun Kang <sungchun.kang@xxxxxxxxxxx>
11 years agoUPSTREAM: media: media-dev: Add media devices for EXYNOS5
Banajit Goswami [Sun, 6 May 2012 15:52:11 +0000 (00:52 +0900)]
UPSTREAM: media: media-dev: Add media devices for EXYNOS5

Since the EXYNOS5 SoCs have various multimedia IPs
such as Gscaler, FIMC-LITE, and MIXER, and so on.
Additionally, media controller interface is needed
to configure connection between them and to control each IPs.

This patch adds support media device for EXYNOS5 SoCs.
Actually, there are three media devices such as below
diagram which are using media control framework.
Since they are not belong to one hardware block, we
need to manage it for connecting with each devices.

Follwing is detailed list of them:

* Gscaler: general scaler
  Support memory to memory interface
  Support output interface from memory to display device(LCD, TV)
  Support capture interface from device(FIMC-LITE, FIMD) to memory

* MIPI-CSIS
  Support interconnection(subdev interface) between devices

* FIMC-LITE
  Support capture interface from device(Sensor, MIPI-CSIS) to memory
  Support interconnection(subdev interface) between devices

* MIXER
  Support output interface from memory to device(HDMI)
  Support interconnection(subdev interface) between devices

* FIMD
  Support framebuffer interface
  Support subdev interface to display frames sent from Gscaler

* Rotator
  Support memory to memory interface

* m2m-scaler
  Support only memory to memory interface

* And so on...

1) media 0
  LCD Output path consists of Gscaler and FIMD(display controller).
  +----------------+     +------+
  | Gscaler-output | --> | FIMD | --> LCD
  +----------------+     +------+

  HDMI Output path consists of Gscaler, Mixer and HDMI.
  +----------------+     +-------+     +------+
  | Gscaler-output | --> | MIXER | --> | HDMI | --> TV
  +----------------+     +-------+     +------+

+--------+     +-----------+     +-----------+     +-----------------+

 2) media 1
  Camera Capture path consists of MIPI-CSIS, FIMC-LITE and Gscaler
  +--------+     +-----------+     +-----------------+
  | Sensor | --> | FIMC-LITE | --> | Gscaler-capture |
  +--------+     +-----------+     +-----------------+

  +--------+     +-----------+     +-----------+     +-----------------+
  | Sensor | --> | MIPI-CSIS | --> | FIMC-LITE | --> | Gscaler-capture |
  +--------+     +-----------+     +-----------+     +-----------------+

Signed-off-by: Sungchun Kang <sungchun.kang@samsung.com>
11 years agoMedia: exynos/mfc: revert VIDIOC_EXPBUF support in MFC decoder
Subash Patel [Fri, 15 Jun 2012 23:44:21 +0000 (16:44 -0700)]
Media: exynos/mfc: revert VIDIOC_EXPBUF support in MFC decoder

VIDIOC_EXPBUF support which was added in the earlier commits was
hard-coded to the OUTPUT queue. In the new videobuf2 exporter
patch-set this support has been provided. Hence this commit will
revert this change from the decoder.

Change-Id: I32e4eb360c6695cb28c139cd609e79e14c98d29a
Signed-off-by: Subash Patel <subash.rp@samsung.com>
11 years agoTEMP s5p-mfc: Hack to leave unconsumed mfc input data
Arun Mankuzhi [Tue, 5 Jun 2012 06:52:03 +0000 (23:52 -0700)]
TEMP s5p-mfc: Hack to leave unconsumed mfc input data

This patch removes the code, which is needed to manage
unconsumed bits of mfc input data. This is only done to
temporarily allow non-h264 streams to playback till end
without running out of capture buffers. These capture buffers
were not dequeued by application otherwise.

BUG=None
TEST=mpeg4 files playback is tested

Change-Id: Ia4687a58221b98f99e6bcc0769d668f1c9657f72
Signed-off-by: Kiran AVND <avnd.kiran@samsung.com>
Reviewed-on: https://gerrit-int.chromium.org/19657
Reviewed-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
Tested-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
Reviewed-by: Pawel Osciak <posciak@google.com>
Reviewed-by: Sunil M <sunilm.samsung@gmail.com>
Reviewed-by: Prashanth Godrehal <prashanth.g@samsung.com>
Commit-Ready: Prashanth Godrehal <prashanth.g@samsung.com>
Reviewed-by: Bibhuti Bhusan Panigrahi <bibhuti.p@samsung.com>
Tested-by: Bibhuti Bhusan Panigrahi <bibhuti.p@samsung.com>
11 years agoTEMP: s5p-mfc: Set display delay to 0x8
Naveen krishna Chatradhi [Wed, 6 Jun 2012 05:03:35 +0000 (22:03 -0700)]
TEMP: s5p-mfc: Set display delay to 0x8

HACK: Application should be able to set the DISPLAY_DELAY using the
s_ctrl IOCTL. But, the s_ctrl path is not working in the driver
right now. This needs to be fixed.

BUG=None
TEST=H264 videos runs fine with UTC Secomx

Change-Id: Ife47b5ade29105981bf2b20af92419e3e54528ae
Signed-off-by: Naveen krishna Chatradhi <ch.naveen@samsung.com>
Reviewed-on: https://gerrit-int.chromium.org/19656
Reviewed-by: Sunil M <sunilm.samsung@gmail.com>
Reviewed-by: Pawel Osciak <posciak@google.com>
Reviewed-by: Prashanth Godrehal <prashanth.g@samsung.com>
11 years agoHACK: Media: Mixer: Add Xrandr clone logic
Shirish S [Thu, 7 Jun 2012 14:54:29 +0000 (20:24 +0530)]
HACK: Media: Mixer: Add Xrandr clone logic

The base address register of mixer group is populated only if
the address provided is not NULL.
The Mixer GRP0 is always enabled.

Change-Id: I63b911e147cdf7e358f52dd240782c6e98535bae
Signed-off-by: Shirish S <s.shirish@samsung.com>
11 years agomedia: tv: Switch to i2c8 for HDMI-PHY on Exynos
Abhilash Kesavan [Tue, 29 May 2012 23:50:57 +0000 (05:20 +0530)]
media: tv: Switch to i2c8 for HDMI-PHY on Exynos

Exynos5 has 8 i2c channels and a dedicated internal one for the
HDMI-PHY. We setup the HDMI-PHY with an i2c8 alias as it would
remain constant across boards irrespective of usage of other channels.
Modify the hdmi_driver_data to select the HDMI-PHY bus as 8 to match
this.

BUG=None
TEST=Only build tested, no h/w at the moment; The HDMI-PHY initialization
errors should go away.

Change-Id: I3c7482d83a3641902cabf091d94a925d666db9ec
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Signed-off-by: Doug Anderson <dianders@chromium.org>
Reviewed-on: https://gerrit-int.chromium.org/18568
Reviewed-by: Doug Anderson <dianders@google.com>
Tested-by: Doug Anderson <dianders@google.com>
Commit-Ready: Olof Johansson <olofj@google.com>

11 years agomedia: tvout: Fix compilation error on enabling HDMI-CEC on exynos5
Abhilash Kesavan [Fri, 18 May 2012 19:19:06 +0000 (12:19 -0700)]
media: tvout: Fix compilation error on enabling HDMI-CEC on exynos5

Change the name of HDMI PHY control register and include the appropriate
headers to fix build break on enabling HDMI-CEC.

BUG=chrome-os-partner:9695
TEST=build tested

Change-Id: I5fdd342f389c22605def151bdf18c3f8a83bf6c4
Signed-off-by: Padmavathi Venna <padma.v@samsung.com>
Reviewed-on: https://gerrit-int.chromium.org/17863
Reviewed-by: Prashanth Godrehal <prashanth.g@samsung.com>
Reviewed-by: Sean Paul <seanpaul@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: exynos: Add missing register definitions for HDMI-CEC
Abhilash Kesavan [Tue, 29 May 2012 09:27:10 +0000 (14:57 +0530)]
arm: exynos: Add missing register definitions for HDMI-CEC

Add missing register definitions for HDMI-CEC on Exynos.

BUG=chrome-os-partner:9695
TEST=build and boot on SMDK

Change-Id: I68639d3c48cc35a871c62ed59c6edd3f96c6d461
Signed-off-by: Padmavathi Venna <padma.v@samsung.com>
Reviewed-on: https://gerrit-int.chromium.org/17862
Reviewed-by: Sean Paul <seanpaul@google.com>
Reviewed-by: Prashanth Godrehal <prashanth.g@samsung.com>
Tested-by: Doug Anderson <dianders@google.com>
Commit-Ready: Doug Anderson <dianders@google.com>

11 years agotv: hdmi: Fix build warning in hdmi driver
Abhilash Kesavan [Tue, 15 May 2012 23:17:08 +0000 (16:17 -0700)]
tv: hdmi: Fix build warning in hdmi driver

Fix the following build warning in exynos' hdmi driver:

drivers/media/video/exynos/tv/hdmi_drv.c:61:3: warning: initialization makes
pointer from integer without a cast [enabled by default]
drivers/media/video/exynos/tv/hdmi_drv.c:61:3: warning: (near initialization
for 'exynos_hdmi_match[0].data') [enabled by default]

BUG=chrome-os-partner:9696
TEST=build and boot on SMDK

Change-Id: I92c9e1d52520a6fe262730c70885b2200e0e8312
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Reviewed-on: https://gerrit-int.chromium.org/17825
Commit-Ready: Doug Anderson <dianders@google.com>
Reviewed-by: Doug Anderson <dianders@google.com>
Tested-by: Doug Anderson <dianders@google.com>
11 years agotv: mixer: Fix build warning in mixer-videobuf2 interface layer
Abhilash Kesavan [Tue, 15 May 2012 23:19:55 +0000 (16:19 -0700)]
tv: mixer: Fix build warning in mixer-videobuf2 interface layer

Fix the following build warnings in exynos' mixer-vb2 interface:

drivers/media/video/exynos/tv/mixer_vb2.c:95:2: warning: initialization from
incompatible pointer type [enabled by default]
drivers/media/video/exynos/tv/mixer_vb2.c:95:2: warning: (near initialization
for 'mxr_vb2_sdvmm.resume') [enabled by default]
drivers/media/video/exynos/tv/mixer_vb2.c:97:2: warning: initialization from
incompatible pointer type [enabled by default]
drivers/media/video/exynos/tv/mixer_vb2.c:97:2: warning: (near initialization
for 'mxr_vb2_sdvmm.cache_flush') [enabled by default]

BUG=chrome-os-partner:9696
TEST=build and boot on SMDK

Change-Id: I9fe51b2cb3e6516d0328c4b36cd442f58ed3d706
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Reviewed-on: https://gerrit-int.chromium.org/17826
Reviewed-by: Prashanth Godrehal <prashanth.g@samsung.com>
Commit-Ready: Olof Johansson <olofj@google.com>
Reviewed-by: Olof Johansson <olofj@google.com>
Tested-by: Olof Johansson <olofj@google.com>
11 years agotv: mixer: Fix build warning due to possible uninitialized usage
Abhilash Kesavan [Tue, 15 May 2012 23:28:00 +0000 (16:28 -0700)]
tv: mixer: Fix build warning due to possible uninitialized usage

Fix the following build error in exynos' mixer driver:

drivers/media/video/exynos/tv/mixer_drv.c: In function 'mxr_s_stream':
drivers/media/video/exynos/tv/mixer_drv.c:281:9: warning: 'hdmi_sd' may be
used uninitialized in this function [-Wmaybe-uninitialized]
drivers/media/video/exynos/tv/mixer_drv.c:217:22: note: 'hdmi_sd' was
declared here

BUG=chrome-os-partner:9696
TEST=build and boot on SMDK

Change-Id: If22eac90c5a1906aab7c6a7647f4db4b721f5dde
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Reviewed-on: https://gerrit-int.chromium.org/17828
Reviewed-by: Prashanth Godrehal <prashanth.g@samsung.com>
Commit-Ready: Olof Johansson <olofj@google.com>
Reviewed-by: Olof Johansson <olofj@google.com>
Tested-by: Olof Johansson <olofj@google.com>
11 years agotv: mixer: Fix build warning due to possible uninitialized usage
Abhilash Kesavan [Tue, 15 May 2012 23:25:39 +0000 (16:25 -0700)]
tv: mixer: Fix build warning due to possible uninitialized usage

Fix the following build error in exynos' mixer driver:

drivers/media/video/exynos/tv/mixer_drv.c: In function 'mxr_apply_format.isra.9':
drivers/media/video/exynos/tv/mixer_drv.c:784:36: warning: 'fourcc' may be used
uninitialized in this function [-Wmaybe-uninitialized]
drivers/media/video/exynos/tv/mixer_drv.c:764:6: note: 'fourcc' was declared here

BUG=chrome-os-partner:9696
TEST=build and boot on SMDK

Change-Id: I8b0b217077c7372c5ce7953d467ffe15b8b0cb35
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Reviewed-on: https://gerrit-int.chromium.org/17827
Commit-Ready: Olof Johansson <olofj@google.com>
Reviewed-by: Olof Johansson <olofj@google.com>
Tested-by: Olof Johansson <olofj@google.com>
11 years agoARM: EXYNOS: MFC: Add IOMMU mapping to MFC probe
Prathyush K [Fri, 1 Jun 2012 17:14:04 +0000 (22:44 +0530)]
ARM: EXYNOS: MFC: Add IOMMU mapping to MFC probe

IOMMU mapping is created for mfc device during probe. This
requires the sysmmu_l and sysmmu_r property be set in the DTS
file. First, the sysmmu device nodes are found and then the
sysmmu platform devices are retrieved. A IOMMU mapping is then created
for mfc_l and mfc_r devices.

Change-Id: Ic035c4fa8a61aed654e3136acd8e18d8496de0c2
Signed-off-by: Prathyush K <prathyush.k@samsung.com>
11 years agos5p-mfc: Update the codec_type list in the header
Kiran [Tue, 29 May 2012 22:12:14 +0000 (15:12 -0700)]
s5p-mfc: Update the codec_type list in the header

Also removes the codec_type hardcoding in cmd_v6.c

Change-Id: I85fd237cb285f6e0d956a3e80012b7e3a87783e5
Signed-off-by: Kiran <avnd.kiran@samsung.com>
11 years agos5p-mfc: MFC v6 requires MV buffer reg update
Kiran [Thu, 31 May 2012 06:32:36 +0000 (23:32 -0700)]
s5p-mfc: MFC v6 requires MV buffer reg update

Patch does the following:
1) scratch buffer size for h264
2) mv buffer addresses update based on mv count
   dpb buffer addresses update based on dpb count

Change-Id: Ie268e9daed4b7d7f514eaa321a543c068223ec7f
Signed-off-by: Kiran <avnd.kiran@samsung.com>
11 years agos5p-mfc: split error condition check
Kiran [Thu, 31 May 2012 06:23:33 +0000 (23:23 -0700)]
s5p-mfc: split error condition check

To be merged into the mfc-v6 mainline patch

Change-Id: Ie1d9b8483bc385b37ab3cbb19218f1cfe3ec5740
Signed-off-by: Kiran <avnd.kiran@samsung.com>
11 years agoMedia: Exynos: MFC fixes to support OMX
Kiran AVND [Fri, 25 May 2012 10:12:12 +0000 (11:12 +0100)]
Media: Exynos: MFC fixes to support OMX

This commit adds the extensions for the display control to support
the OMX

Change-Id: If7eef341c02faa3a5248c93dbf343f3056cc0161
Signed-off-by: Kiran AVND <avnd.kiran@samsung.com>
11 years agovideo: s3c-fb: Pass clock_rate from FIMD platdata
Ajay Kumar [Tue, 29 May 2012 11:04:46 +0000 (07:04 -0400)]
video: s3c-fb: Pass clock_rate from FIMD platdata

Remove the hard coding for FIMD source clock rate
in the driver and pass it from platdata instead.

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

Change-Id: Ib4eeecf0bc33f0361a6bde5bc81dad6c3a63c3be
Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.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>