ARM: ASV: enable ASV for exynos5422

This enables asv group and table for exynos5422, for now we
are going to use the same table as 5420

BUG=chrome-os-partner:24687
TEST=build and booted on pi and can see right ASV is picked up

Change-Id: Ie9c07d0377ced9660f94a9efd1f8e9f4632523a8
Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
Reviewed-on: https://chromium-review.googlesource.com/181994
Reviewed-by: Andrew Bresticker <abrestic@chromium.org>
cpufreq: exynos: add support for exynos5422

This enables exynos5422 cpufreq support, for now we are
going to use the same cpufreq table as 5420

BUG=chrome-os-partner:24687
TEST=build and booted on pi, can see the cpufreq is working
	localhost ~ # cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state
	1800000 1967
	1700000 72
	1600000 72
	1500000 0
	1400000 2
	1300000 15
	1200000 51
	1100000 30
	1000000 49
	900000 26
	800000 61
	700000 74
	650000 25
	600000 12
	550000 6
	500000 3
	450000 16
	400000 9
	350000 23
	300000 1299

Change-Id: I0b6cc77a92aca937ad50055eeaa25c765b449c91
Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
Reviewed-on: https://chromium-review.googlesource.com/181995
Reviewed-by: Andrew Bresticker <abrestic@chromium.org>
MALI: platform/chromebook: add support for exynos5422

MALI T6XX is used in both exynos5420 and exynos5422, this rearrange
the mali code to be used by both the SoCs.

BUG=chrome-os-partner:24687
TEST=build and booted on pi, see no mali crash and login screen comes up

Change-Id: I69f8aad74177ba17467948786738e7c6c4e18d06
Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
Reviewed-on: https://chromium-review.googlesource.com/181865
Reviewed-by: Andrew Bresticker <abrestic@chromium.org>
CHROMIUM: Add a new iTCO vendor support option for ChromeOS to disable TCO SMI

This new vendor support is selected by a kernel command line parameter on
x86/x86_64 Chrome OS. It disables TCO SMI when the watchdog timer is enabled.
On some existing devices, this workaround is needed because the TCO SMI handler
in coreboot clears the TIMEOUT bit of TCO1_STS register, preventing the machine
from rebooting when the timer expires. This workaround makes the watchdog work
on existing devices, but it is not necessary for devices with updated firmware.

BUG=chromium:321832
TEST=verified that the Intel TCO watchdog works on peppy

Change-Id: Ic66816dc169112008888769a2f9d153c88807a7b
Signed-off-by: Ben Zhang <benzh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/180324
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
CHROMIUM: Enable iTCO watchdog timer in kernel configs

This enables CONFIG_ITCO_WDT and CONFIG_ITCO_VENDOR_SUPPORT for
i386 and x86_64.

BUG=chromium:321832
TEST=verified that the Intel TCO watchdog works on peppy

Change-Id: I05fa814e7f69b83c9b3a5edafee30d350742075e
Signed-off-by: Ben Zhang <benzh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/180325
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
CHROMIUM: Platform: x86: chromeos_laptop - fix whitespace issue

A minor whitespace issue was introduced with some of the device
.i2c_peripherals entries. Fixing it so people don't copy the
wrong lines anymore.

Signed-off-by: Benson Leung <bleung@chromium.org>

BUG=chromium:334806
TEST=Builds clean. No functional changes.

Change-Id: I21b76a97bfbd30e9e7ad916b4a86d770d4954ad2
Reviewed-on: https://chromium-review.googlesource.com/182703
Reviewed-by: Bernie Thompson <bhthompson@chromium.org>
Commit-Queue: Benson Leung <bleung@chromium.org>
Tested-by: Benson Leung <bleung@chromium.org>
CHROMIUM: ARM: dts: add skate board device tree

Add the device tree configuration for the Exynos5250 based Skate
machine.

Signed-off-by: Katie Roberts-Hoffman <katierh@chromium.org>

BUG=chrome-os-partner:24704
TEST=boot on skate

Change-Id: I466ab1196bd77cb3a5dbcf0c8802bde197cfaac6
Reviewed-on: https://chromium-review.googlesource.com/182542
Reviewed-by: Doug Anderson <dianders@chromium.org>
Commit-Queue: Katie Roberts-Hoffman <katierh@chromium.org>
Tested-by: Katie Roberts-Hoffman <katierh@chromium.org>
Revert "CHROMIUM: ARM: SAMSUNG: Add residue DMA operation."

This reverts commit 5e790819352b73ee8571fd6338b70cdc1ae836ac.

CQ-DEPEND=CL:181358
BUG=chrome-os-partner:24263
TEST=Play Mv.html and check for zero frame drop

Change-Id: I845200504596428a529a8c4f0b6833b45a127e73
Reviewed-on: https://chromium-review.googlesource.com/181316
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Tested-by: Dylan Reid <dgreid@chromium.org>
Commit-Queue: Doug Anderson <dianders@chromium.org>
Revert "CHROMIUM: DMA: PL330: Report residue for dev to mem transfers."

This reverts commit 7af0a5cd71fc24ad061d5957acabe31fb36ee5f1.

BUG=chrome-os-partner:24263
TEST=Play Mv.html and check for zero frame drop

Change-Id: I8f9d8ab347b1bdcad776155cb7153616ff60493b
Reviewed-on: https://chromium-review.googlesource.com/181317
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Tested-by: Dylan Reid <dgreid@chromium.org>
Commit-Queue: Doug Anderson <dianders@chromium.org>
Revert "CHROMIUM: dmaengine: pl330: lock work_list in set residue."

This reverts commit 7f3fbe0c75ca2e57a2bec31ef80a170b738b0c76.

BUG=chrome-os-partner:24263
TEST=Play Mv.html and check for zero frame drop

Change-Id: I31006d78e7e6ba5b2f2e0f94863b4adb3ebf79c6
Reviewed-on: https://chromium-review.googlesource.com/181318
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Tested-by: Dylan Reid <dgreid@chromium.org>
Commit-Queue: Doug Anderson <dianders@chromium.org>
Revert "CHROMIUM: dmaengine: pl330: Set residue in tx_status callback."

This reverts commit 2836ef6edd899a689e859ad07eb0d3ca0c433968.

BUG=chrome-os-partner:24263
TEST=Play Mv.html and check for zero frame drop

Change-Id: I47fc6e83bfd9fd4f982a1b732c986d8bdda6e726
Reviewed-on: https://chromium-review.googlesource.com/181319
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Tested-by: Dylan Reid <dgreid@chromium.org>
Commit-Queue: Doug Anderson <dianders@chromium.org>
Revert "CHROMIUM: ASoC: Samsung: Protect the dma pointer position access"

This reverts commit 3176205492889c5e1120c262752a9469c00dcbd8.

BUG=chrome-os-partner:24263
TEST=Play Mv.html and check for zero frame drop

Change-Id: Iabfd5ec1951a37280c17c7eb2af97300a0def9e5
Reviewed-on: https://chromium-review.googlesource.com/181350
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Tested-by: Dylan Reid <dgreid@chromium.org>
Commit-Queue: Doug Anderson <dianders@chromium.org>
Revert "CHROMIUM: ASoC: Update pointer to account for pending dma transfers."

This reverts commit 2f5fccacdfc458cfa5fd863d503e9e1ce4cfdcf7.

BUG=chrome-os-partner:24263
TEST=Play Mv.html and check for zero frame drop

Change-Id: I817bca83a83baee8d7ae776eacff5558d7398244
Reviewed-on: https://chromium-review.googlesource.com/181351
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Tested-by: Dylan Reid <dgreid@chromium.org>
Commit-Queue: Doug Anderson <dianders@chromium.org>
CHROMIUM: dma: pl330: add getposition() API

This patch adds a getposition() API to provide the
current DMA buffer position.

BUG=chrome-os-partner:24263
TEST=Play Mv.html and check for zero frame drop

Change-Id: I00facc6894b810723503ef0ae41abea67712aacf
Signed-off-by: Soohyun Kim <soohyuni.kim@samsung.com>
Signed-off-by: Arun Mankuzhi <arun.m@samsung.com>
Reviewed-on: https://chromium-review.googlesource.com/181352
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Tested-by: Dylan Reid <dgreid@chromium.org>
Commit-Queue: Doug Anderson <dianders@chromium.org>
CHROMIUM: ARM: SAMSUNG: Add getpostion() operation

This patch adds new getpostion() operation into s3c-dma-ops and dma-ops.
DMA clients use it through .getpostion() function pointer.

BUG=chrome-os-partner:24263
TEST=Play Mv.html and check for zero frame drop

Change-Id: I45bcc83536b6821eeae272a9a22650ee21f4864c
Signed-off-by: Soohyun Kim <soohyuni.kim@samsung.com>
Signed-off-by: Arun Mankuzhi <arun.m@samsung.com>
Reviewed-on: https://chromium-review.googlesource.com/181353
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Tested-by: Dylan Reid <dgreid@chromium.org>
Commit-Queue: Doug Anderson <dianders@chromium.org>
CHROMIUM: ASoC: SAMSUNG: Support dma_pointer using getposition() API

This patch provides more accurate DMA buffer position using
getposition() API in dma_pointer function.

BUG=chrome-os-partner:24263
TEST=Play Mv.html and check for zero frame drop

Change-Id: Iabff48d75881d31579918c5f8c015680fe73e525
Signed-off-by: Soohyun Kim <soohyuni.kim@samsung.com>
Signed-off-by: Arun Mankuzhi <arun.m@samsung.com>
Reviewed-on: https://chromium-review.googlesource.com/181354
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Tested-by: Dylan Reid <dgreid@chromium.org>
Commit-Queue: Doug Anderson <dianders@chromium.org>
CHROMIUM: DMA: PL330: Fix calculating burst_size

The burst size of PL330 should be aligned with source address, destination
address and size. If not, PL330 HW generates transmit or data missmatch error.
This patch adds the condition that checks the align of source and destination
address for burst size.

BUG=chrome-os-partner:24263
TEST=Play Mv.html and check for zero frame drop

Change-Id: Id83e3ab81aa03532986b222d2d6315c212b3dbdd
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Signed-off-by: Arun Mankuzhi <arun.m@samsung.com>
Reviewed-on: https://chromium-review.googlesource.com/181357
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Tested-by: Dylan Reid <dgreid@chromium.org>
Commit-Queue: Doug Anderson <dianders@chromium.org>
CHROMIUM: DMA: PL330: Change the cookie complete operation for cyclic mode

It doesn't set cookies to zero because cookies is reused
in case of cyclic mode.

BUG=chrome-os-partner:24263
TEST=Play Mv.html and check for zero frame drop

Change-Id: I3b569a14c9e42fd79c5e608f272cb31de25e9d6e
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Signed-off-by: Arun Mankuzhi <arun.m@samsung.com>
Reviewed-on: https://chromium-review.googlesource.com/181358
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Tested-by: Dylan Reid <dgreid@chromium.org>
Commit-Queue: Doug Anderson <dianders@chromium.org>
thermal: exynos: reuse 5420 stuffs for 5422

exynos5422 is having same TMU controller as exynos5420, lets
modify this so that this can be used by both SoCs

BUG=chrome-os-partner:24687
TEST=build and booted on pi and can see tmu still works

Change-Id: I6247981899da7b63f6e07b0bde5aaa8838d52999
Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
Reviewed-on: https://chromium-review.googlesource.com/182036
Reviewed-by: Andrew Bresticker <abrestic@chromium.org>
Commit-Queue: Doug Anderson <dianders@chromium.org>
cpufreq: exynos-iks: use in-kernel-switcher for 5422

This enables full iks support on exynos5422 SoC

BUG=chrome-os-partner:24687
TEST=booted on pit and pi
     on pit can see only Cluster switching works
     on pi can see iks working

Change-Id: Id70201b168c6ed87f0ee39b4c399107a342b6959
Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
Reviewed-on: https://chromium-review.googlesource.com/182119
Reviewed-by: Andrew Bresticker <abrestic@chromium.org>
Commit-Queue: Doug Anderson <dianders@chromium.org>