platform/kernel/linux-exynos.git
7 years agoarm64: configs: defconfig: Turn off unused kernel configuration
Jonghwa Lee [Wed, 29 Jul 2015 04:29:00 +0000 (13:29 +0900)]
arm64: configs: defconfig: Turn off unused kernel configuration

-CONFIG_THERMAL_HWMON : support compatibility for legacy hwmon inf.
-CONFIG_CLOCK_THERMAL : clock cooling device driver, aimed to co-processor.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agocpufreq: arm_big_little: Unregister cooling device at exit
Jonghwa Lee [Wed, 29 Jul 2015 03:39:44 +0000 (12:39 +0900)]
cpufreq: arm_big_little: Unregister cooling device at exit

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agodrm/exynos: decon: Update to upstream (preset zpos value for overlay planes)
Krzysztof Kozlowski [Fri, 31 Jul 2015 01:52:29 +0000 (10:52 +0900)]
drm/exynos: decon: Update to upstream (preset zpos value for overlay planes)

Update to upstream API: 6e2a3b66e78 ("drm/exynos: preset zpos value for
overlay planes").

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
7 years agodrm/exynos: decon: Update to upstream (no win_data)
Krzysztof Kozlowski [Thu, 30 Jul 2015 08:25:41 +0000 (17:25 +0900)]
drm/exynos: decon: Update to upstream (no win_data)

Update to upstream API where struct *_win_data abstraction on planes
were removed. See commit 7ee14cdcbc4f8 ("drm/exynos: remove struct
*_win_data abstraction on planes").

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
7 years agopower_supply: charger-manager: Adjust to new API
Krzysztof Kozlowski [Thu, 30 Jul 2015 07:00:57 +0000 (16:00 +0900)]
power_supply: charger-manager: Adjust to new API

Port the driver to new power supply API introduced in v4.1.
Fixes errors:
drivers/power/charger-manager.c: In function ‘update_battery_state’:
drivers/power/charger-manager.c:547:37: warning: initialization from incompatible pointer type [enabled by default]
  struct power_supply *charger_psy = &cm->charger_psy;
                                     ^
drivers/power/charger-manager.c:553:19: error: ‘struct power_supply’ has no member named ‘get_property’
  ret = charger_psy->get_property(charger_psy,

drivers/power/charger-manager.c: In function ‘show_polling_ms’:
drivers/power/charger-manager.c:1125:22: error: request for member ‘dev’ in something not a structure or union
   if (cm->charger_psy.dev == dev)
                      ^
drivers/power/charger-manager.c: In function ‘charger_manager_register_sysfs’:
drivers/power/charger-manager.c:1199:42: error: request for member ‘dev’ in something not a structure or union
  ret = device_create_file(cm->charger_psy.dev, &dev_attr_polling_ms);

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
7 years agopower_supply: max77843_charger: Adjust to new API
Krzysztof Kozlowski [Thu, 30 Jul 2015 06:55:06 +0000 (15:55 +0900)]
power_supply: max77843_charger: Adjust to new API

Port the driver to new power supply API introduced in v4.1.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
7 years agopower_supply: max77843_battery: Adjust to new API
Krzysztof Kozlowski [Thu, 30 Jul 2015 06:54:22 +0000 (15:54 +0900)]
power_supply: max77843_battery: Adjust to new API

Port the driver to new power supply API introduced in v4.1.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
7 years agoLOCAL / arm: defconfig: Fix-up duplicated symbols after rebase on v4.1
Krzysztof Kozlowski [Thu, 30 Jul 2015 06:36:49 +0000 (15:36 +0900)]
LOCAL / arm: defconfig: Fix-up duplicated symbols after rebase on v4.1

Remove duplicated symbols after rebasing commit "LOCAL / arm: configs:
Add tm2/rinato/trats2/odroidu3 defconfig" on v4.1:
arch/arm64/configs/defconfig:1026:warning: override: reassigning to symbol TEGRA_AHB
arch/arm64/configs/defconfig:1400:warning: override: reassigning to symbol SKY2
arch/arm64/configs/defconfig:1830:warning: override: reassigning to symbol SERIAL_XILINX_PS_UART
arch/arm64/configs/defconfig:2085:warning: override: reassigning to symbol POWER_RESET_XGENE
arch/arm64/configs/defconfig:2086:warning: override: reassigning to symbol POWER_RESET_SYSCON
arch/arm64/configs/defconfig:3062:warning: override: reassigning to symbol USB_ISP1760
arch/arm64/configs/defconfig:3425:warning: override: reassigning to symbol VIRTIO_PCI
arch/arm64/configs/defconfig:3574:warning: override: reassigning to symbol COMMON_CLK_QCOM
arch/arm64/configs/defconfig:3971:warning: override: reassigning to symbol EFIVAR_FS
arch/arm64/configs/defconfig:4003:warning: override: reassigning to symbol NFS_V4

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
7 years agodrm/exynos: fix typo in error msg
Ingi Kim [Wed, 29 Jul 2015 03:06:52 +0000 (12:06 +0900)]
drm/exynos: fix typo in error msg

This patch changes spelling typo correctly in various part of drivers

Signed-off-by: Ingi Kim <ingi2.kim@samsung.com>
7 years agos5p-mfc: fix typo in error msg
Ingi Kim [Wed, 29 Jul 2015 02:57:44 +0000 (11:57 +0900)]
s5p-mfc: fix typo in error msg

This patch changes spelling typo correctly in various part of mfc-encoder

Signed-off-by: Ingi Kim <ingi2.kim@samsung.com>
7 years agodrm/exynos: disable vt switch on suspend
Joonyoung Shim [Tue, 21 Jul 2015 08:10:37 +0000 (17:10 +0900)]
drm/exynos: disable vt switch on suspend

We don't need VT switch when suspending/resuming, so disable it. This
speeds up suspend/resume.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
7 years agoLOCAL / arm64: configs: Enable ramdump
Seung-Woo Kim [Wed, 15 Jul 2015 12:11:19 +0000 (21:11 +0900)]
LOCAL / arm64: configs: Enable ramdump

This patch enables ramdump with CONFIG_EXYNOS_SNAPSHOT for kernel
panic. Also PANIC_TIMEOUT is changed to 3 to wait register dump.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agotrace: ramdump: add to support ramdump mode for exynos5433
sungguk.na [Mon, 20 Apr 2015 11:50:12 +0000 (20:50 +0900)]
trace: ramdump: add to support ramdump mode for exynos5433

This patch adds to support ramdump mode for exynos5433.

Change-Id: I7e833273315dab3116a5e6100c01f1f7ce965067
Signed-off-by: sungguk.na <sungguk.na@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agothermal: devfreq_cooling: Add missing update_devfreq()
Chanwoo Choi [Fri, 17 Jul 2015 07:29:55 +0000 (16:29 +0900)]
thermal: devfreq_cooling: Add missing update_devfreq()

This patch add the missing update_devfreq() to update the maximum frequency
of devfreq cooling device when g3d sensor detect the overheating temperature.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoLOCAL / arm64: configs: Change the size of CONFIG_NR_CPU_LOAD_STORAGE (10->20)
Chanwoo Choi [Thu, 16 Jul 2015 05:58:51 +0000 (14:58 +0900)]
LOCAL / arm64: configs: Change the size of CONFIG_NR_CPU_LOAD_STORAGE (10->20)

This patch modify the size of CONFIG_NR_CPU_LOAD_STORAGE.
After applied this patch, extend the following entries from 10 to 20.

For example,
$ cat /sys/kernel/debug/cpufreq/cpu4/load_table
Time(ms)   Old Freq(Hz) New Freq(Hz) NR_running CPU4 CPU5 CPU6 CPU7
831040     500000       500000       810        99   88   100  100
831120     500000       500000       983        100  100  100  100
831200     500000       500000       1170       100  100  100  100
831280     500000       500000       1310       100  100  100  100
831360     500000       500000       1383       100  100  100  100
831440     500000       500000       1400       100  100  100  100
831520     500000       500000       1400       100  100  100  100
831600     500000       500000       1400       100  100  100  100
831680     500000       500000       1400       100  100  100  100
831760     500000       500000       1400       100  100  100  100

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoLOCAL / arm64: configs: Enable CONFIG_DEVFREQ_THERMAL
Chanwoo Choi [Wed, 15 Jul 2015 09:51:32 +0000 (18:51 +0900)]
LOCAL / arm64: configs: Enable CONFIG_DEVFREQ_THERMAL

This patch enables the CONFIG_DEVFREQ_THERMAL to use the devfreq cooling device.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoLOCAL / arm64: dts: exynos5433-tm2: Extend the permitted temperature of battery charg...
Chanwoo Choi [Wed, 15 Jul 2015 09:47:09 +0000 (18:47 +0900)]
LOCAL / arm64: dts: exynos5433-tm2: Extend the permitted temperature of battery charging (40 -> 50)

This patch extend the permitted temperature of battery charging from 40
millicelsius to 50 millicelsius because of applying the thermal management unit
for G3D and big.LITTLE cores.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agothermal: devfreq_cooling: Add generic devfreq cooling device implementaion
Chanwoo Choi [Tue, 14 Jul 2015 09:44:47 +0000 (18:44 +0900)]
thermal: devfreq_cooling: Add generic devfreq cooling device implementaion

This patch add the generic devfreq cooling device based on devfreq framework.
The devfreq device is used as cooling device.

Cc: Zhang Rui <rui.zhang@intel.com>
Cc: Eduardo Valentin <edubezval@gmail.com>
Cc: MyungJoo Ham <myungjoo.ham@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoPM: devfreq: Add the prototype of update_devfreq() to export
Chanwoo Choi [Tue, 14 Jul 2015 09:45:27 +0000 (18:45 +0900)]
PM: devfreq: Add the prototype of update_devfreq() to export

This patch add simply the protoptye of update_devfreq() to devfreq.h header
file to export it. The some device driver (e.g., thermal cooling device) may
use the update_devfreq() to update the range of supported frequency of devfreq
device.

Cc: MyungJoo Ham <myungjoo.ham@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agogpu: arm: Fix build warning about devfreq cooling device
Chanwoo Choi [Tue, 14 Jul 2015 09:53:42 +0000 (18:53 +0900)]
gpu: arm: Fix build warning about devfreq cooling device

This patch fixes the build warning according to new devfreq_cooling device
driver and make the frequency table as descending order.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoarm64: dts: exynos5433: Adjust the temperture of trip-point for G3D and add cooling...
Chanwoo Choi [Tue, 14 Jul 2015 07:16:45 +0000 (16:16 +0900)]
arm64: dts: exynos5433: Adjust the temperture of trip-point for G3D and add cooling-device

This patch adjust the temperature of trip-point of G3D and add the cooling
device as mali device to protect the critical overheating problem.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoarm64: dts: exynos5433: Adjust the temperature of trip-point for big.LITTLE core
Chanwoo Choi [Mon, 29 Jun 2015 05:03:03 +0000 (14:03 +0900)]
arm64: dts: exynos5433: Adjust the temperature of trip-point for big.LITTLE core

This patch adjust the temperature of trip-point of big.LITTLE core
to protect the critical overheating problem.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoarm64: dts: exynos5433: Add OPP entry of big.LITTLE core to extend the range of frequency
Chanwoo Choi [Fri, 26 Jun 2015 07:36:15 +0000 (16:36 +0900)]
arm64: dts: exynos5433: Add OPP entry of big.LITTLE core to extend the range of frequency

This patch adds the OPP entery of big.LITTLE core to extend the range of
frequency. So, the cpu frequency of big.LITTLE core would be operated on low
frequency to reduce the power-consumption.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoarm64: dts: exynos5433-tm2: Change BUCK2, BUCK3's voltage to be adjustable.
Jonghwa Lee [Wed, 15 Jul 2015 06:36:55 +0000 (15:36 +0900)]
arm64: dts: exynos5433-tm2: Change BUCK2, BUCK3's voltage to be adjustable.

The voltage of BUCK2(supplied to A57) BUCK3(supplied to A53) has been fixed for
stability. Now, it changes its voltage to be adjustable.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agoarm64: dts: exynos5433-tm2: Fix wrong regulator node name of CPU node.
Jonghwa Lee [Wed, 15 Jul 2015 06:32:15 +0000 (15:32 +0900)]
arm64: dts: exynos5433-tm2: Fix wrong regulator node name of CPU node.

It fixes cluster number in the regulator's phandle node name correctly.
CPU0 -> cpu-cluster.1-supply
CPU4 -> cpu-cluster.0-supply

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agodrm/exynos: move order to register vidi kms driver
Joonyoung Shim [Wed, 15 Jul 2015 01:48:06 +0000 (10:48 +0900)]
drm/exynos: move order to register vidi kms driver

The vidi is virtual kms driver and now it is registered earlier than
actual hw kms drivers, so it will occupy crtc index 0. Some users
assume the condition yet that actual hw kms driver has crtc index 0.
It may or may not be matter but let's arrange register order.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
7 years agocpufreq: Modify cpufreq debugfs code to support cluster hotplug
Jonghwa Lee [Mon, 13 Jul 2015 11:36:39 +0000 (20:36 +0900)]
cpufreq: Modify cpufreq debugfs code to support cluster hotplug

The origin code which is introduced by the commit,
'62be371a LOCAL / cpufreq: Add debugfs  directory for cpufreq', is designed
for CPU0 based cpufreq driver. This patch improves the code to support whole
cluster hotplug which means that it can hotplug off whole cluster and bring
any of cpu from the cluster on first.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agocpufreq: arm_big_little_dt: Parse suspend frequency from first cpu.
Jonghwa Lee [Mon, 13 Jul 2015 11:12:08 +0000 (20:12 +0900)]
cpufreq: arm_big_little_dt: Parse suspend frequency from first cpu.

To support secondary cpu's cpufreq initialization, it checks suspend
freqeuency property from not only current cpu device node but also
first cpu's of same cluster.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agothermal: cpu_cooling: Update cpufreq policy only for online cpus.
Jonghwa Lee [Mon, 13 Jul 2015 10:41:51 +0000 (19:41 +0900)]
thermal: cpu_cooling: Update cpufreq policy only for online cpus.

Current cpu_cooling driver sets cooling state without consideration of
CPU hotplug. However, applicable CPUs may differs because of hotplug,
so it has to check whether target CPU is online either.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agocpufreq: cpufreq_stats: Add missing cpufreq_put_put()
Jonghwa Lee [Mon, 13 Jul 2015 05:32:54 +0000 (14:32 +0900)]
cpufreq: cpufreq_stats: Add missing cpufreq_put_put()

It adds cpufreq_cpu_put() to where it missed to call it after referensing
cpufreq's policy.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agocpufreq: arm_big_little: Fix initialization error on secondary cpus.
Jonghwa Lee [Fri, 10 Jul 2015 07:21:27 +0000 (16:21 +0900)]
cpufreq: arm_big_little: Fix initialization error on secondary cpus.

For per-cluster dvfs system, current big.Little cpufreq driver only can
be initialized on fist core of each cluster. If secondary cpu shows up
first than first cpu, it fails to initialize cpufreq driver because of
lack of information. Rather to return with error, this patch fixes driver
to reference first cpu's information.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agocpufreq: cpufreq_stat_pass: Fix not released spin lock issue.
Jonghwa Lee [Thu, 9 Jul 2015 12:29:56 +0000 (21:29 +0900)]
cpufreq: cpufreq_stat_pass: Fix not released spin lock issue.

In get_avg_nr_running(), it might return without unlocking spin lock.
It only happens and results panic when the first cpu of each cluster is
hotplugged off. This patch fixes unlocking spin lock problem and also
narrows the critical section which is surrounded with the spin lock.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agosii8620: fix non-MHL device handling
Andrzej Hajda [Wed, 8 Jul 2015 10:16:36 +0000 (12:16 +0200)]
sii8620: fix non-MHL device handling

Sometimes dongle is incorrectly detected as non-MHL device. In such case
full re-discovery helps.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agoarm64/dts: add video links for HDMI and MHL
Andrzej Hajda [Wed, 8 Jul 2015 09:22:45 +0000 (11:22 +0200)]
arm64/dts: add video links for HDMI and MHL

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agosii8620: device capabilities fixes
Andrzej Hajda [Wed, 8 Jul 2015 09:21:39 +0000 (11:21 +0200)]
sii8620: device capabilities fixes

The patch fixes handling devcap.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agosii8620: implement drm_bridge interface
Andrzej Hajda [Wed, 8 Jul 2015 09:20:16 +0000 (11:20 +0200)]
sii8620: implement drm_bridge interface

sii8620 should filter out some modes depending on MHL dongle capabilities.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/exynos/hdmi: add MHL bridge support
Andrzej Hajda [Wed, 8 Jul 2015 09:16:24 +0000 (11:16 +0200)]
drm/exynos/hdmi: add MHL bridge support

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agoRevert "drm/exynos/hdmi: limit modes not supported by drivers"
Andrzej Hajda [Tue, 30 Jun 2015 10:00:10 +0000 (12:00 +0200)]
Revert "drm/exynos/hdmi: limit modes not supported by drivers"

This reverts commit 30ec55242304755e6e124b08a4684a6d656e0967.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/exynos/hdmi: add support for more pixel clocks
Andrzej Hajda [Fri, 3 Jul 2015 10:52:35 +0000 (12:52 +0200)]
drm/exynos/hdmi: add support for more pixel clocks

This patch adds pixel clocks mainly used in DVI modes.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/exynos/hdmi: do not call mixer directly for mode validation
Andrzej Hajda [Fri, 3 Jul 2015 10:49:04 +0000 (12:49 +0200)]
drm/exynos/hdmi: do not call mixer directly for mode validation

Mixer can validate mode via .mode_fixup callback if necessary.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agosii8620: replace hdmi detection routines with drm core function
Andrzej Hajda [Tue, 30 Jun 2015 10:48:35 +0000 (12:48 +0200)]
sii8620: replace hdmi detection routines with drm core function

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agoLOCAL / net: rfkill: rfkill-bcm: Add hci registered flag
Beomho Seo [Wed, 8 Jul 2015 10:37:06 +0000 (19:37 +0900)]
LOCAL / net: rfkill: rfkill-bcm: Add hci registered flag

This patch add hci registered flag for handling abnormal interrupt
signal.

Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
7 years agoarm64: dtsi: exynos5433: Add 'rtc-clk-always-on' property to rtc dev.
Jonghwa Lee [Tue, 7 Jul 2015 11:07:06 +0000 (20:07 +0900)]
arm64: dtsi: exynos5433: Add 'rtc-clk-always-on' property to rtc dev.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agortc: s3c: Make dynamic source clock gating optional.
Jonghwa Lee [Tue, 7 Jul 2015 10:59:55 +0000 (19:59 +0900)]
rtc: s3c: Make dynamic source clock gating optional.

On EXYNOS5433, gating rtc device's source clock doensn't just affect
the bus but also IP itself. When any of source clock is gated, IP won't
work. It changes dynamic clock gating as a option for the case.
It can be set thorough the device tree with node 'rtc-clk-always-on'.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agosoc: samsung: exynos-pmu: Support conditional reboot mode
Jonghwa Lee [Fri, 3 Jul 2015 08:16:33 +0000 (17:16 +0900)]
soc: samsung: exynos-pmu: Support conditional reboot mode

Traditional exynos bootloader checks PMU's inform registers at booting
to support various conditional reboot mode. Depends on the value of
inform registers, the behavior after reboot would be varied.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agoarm64: dtsi: exynos5433: Add power key gpio handle to pmu device tree.
Jonghwa Lee [Fri, 3 Jul 2015 07:38:07 +0000 (16:38 +0900)]
arm64: dtsi: exynos5433: Add power key gpio handle to pmu device tree.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agosoc: samsung: exynos-pmu: Support power off for Exynos series.
Jonghwa Lee [Fri, 3 Jul 2015 07:37:14 +0000 (16:37 +0900)]
soc: samsung: exynos-pmu: Support power off for Exynos series.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agoLOCAL / ASoC: samsung: Add SYSCLK stop in stop_sysclk for reset base rate
Inha Song [Thu, 2 Jul 2015 12:11:17 +0000 (21:11 +0900)]
LOCAL / ASoC: samsung: Add SYSCLK stop in stop_sysclk for reset base rate

This patch add SYSCLK stop in stop_sysclk function for set base rate.
In arizona codec, pcm hw rate is set reference to base_rate.

If not initialize the base_rate, we can't change pcm rate. So it can
makes underrun issues.

Signed-off-by: Inha Song <ideal.song@samsung.com>
7 years agoLOCAL / arm64: dts: exynos5433-tm2: Add the regulator of big.LITTLE core to support...
Chanwoo Choi [Fri, 26 Jun 2015 07:23:26 +0000 (16:23 +0900)]
LOCAL / arm64: dts: exynos5433-tm2: Add the regulator of big.LITTLE core to support voltage scaling

This patch adds the regulator of big.LITTLE core to support the voltage scaling
duing frequency scaling.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agocpufreq: arm_big_little: add cluster regulator support
Bartlomiej Zolnierkiewicz [Fri, 26 Jun 2015 07:22:23 +0000 (16:22 +0900)]
cpufreq: arm_big_little: add cluster regulator support

Add cluster regulator support as a preparation to adding
generic arm_big_little_dt cpufreq_dt driver support for
ODROID-XU3 board.  This allows arm_big_little[_dt] driver
to set not only the frequency but also the voltage (which
is obtained from operating point's voltage value) for CPU
clusters.

Cc: Kukjin Kim <kgene.kim@samsung.com>
Cc: Doug Anderson <dianders@chromium.org>
Cc: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Cc: Andreas Faerber <afaerber@suse.de>
Cc: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Thomas Abraham <thomas.ab@samsung.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
7 years agoLOCAL / cpufreq: pass: Add nr_running data to load_table debugfs entry
Chanwoo Choi [Mon, 1 Jun 2015 08:22:02 +0000 (17:22 +0900)]
LOCAL / cpufreq: pass: Add nr_running data to load_table debugfs entry

This patch add 'nr_running' data to load_table debugfs entry. This data
is used to judge current CPUs state.

- /sys/kernel/debug/cpufreq/cpu0/load_table

Time(ms)   Old Freq(Hz) New Freq(Hz) NR_running CPU0 CPU1
1175715    200000       200000       54         15   9
1175802    200000       200000       261        72   54
1175900    200000       800000       214        96   64
1176005    800000       400000       195        29   37
1176100    400000       200000       205        42   35
1176200    200000       200000       288        93   66
1176302    200000       200000       193        61   88
1176400    200000       200000       204        65   75
1176570    200000       200000       223        27   17
1176695    200000       200000       0          2    1
1176830    200000       200000       0          4    3
1176900    200000       200000       100        17   22
1177000    200000       200000       228        60   90
1177100    200000       800000       257        96   83
1177200    800000       600000       194        59   50
1177300    600000       400000       168        29   56
1177410    400000       300000       181        38   55
1177500    300000       300000       118        37   75
1177750    300000       200000       165        16   25
1177800    200000       200000       100        22   15

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoLOCAL / cpufreq: pass: Calculate the average number of running threads
Chanwoo Choi [Mon, 1 Jun 2015 08:15:53 +0000 (17:15 +0900)]
LOCAL / cpufreq: pass: Calculate the average number of running threads

This patch add get_avg_nr_running() function to get the average number of
running threads periodically. This data is used to determine current CPUs state.
- get_avg_nr_running()

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoLOCAL / sched: Add nr_running_cpumask() to get the number of running tasks of per...
Chanwoo Choi [Mon, 1 Jun 2015 09:45:37 +0000 (18:45 +0900)]
LOCAL / sched: Add nr_running_cpumask() to get the number of running tasks of per-cluster

This patch adds the nr_running_cpumask() function to get the number of runing
tasks of per-cluster.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoLOCAL / cpufreq: stats: Add 'load_table' debugfs file to show accumulated data of...
Chanwoo Choi [Mon, 1 Jun 2015 04:08:07 +0000 (13:08 +0900)]
LOCAL / cpufreq: stats: Add 'load_table' debugfs file to show accumulated data of CPUs

This patch add new 'load_table' debugfs file to show previous accumulated data
of CPUs load as following path and add CPUFREQ_LOADCHECK notification to
CPUFREQ_TRANSITION_NOTIFIER notifier chain.
- /sys/kernel/debug/cpufreq/cpuX/load_table

When governor calculates CPUs load on dbs_check_cpu(), governor send
CPUFREQ_LOADCHECK notification with CPUs load, so that cpufreq_stats
accumulates calculated CPUs load on 'load_table' storage.

This debugfs file is used to judge the correct system state or determine
suitable system resource according to current CPUs load on user-space.

This debugfs file include following data:
- Measurement point of time
- CPU frequency
- Per-CPU load

Changes since v6:
- Remove unnecessary memory free/allocation operation on
  cpufreq_stats_reset_debugfs()
- Get correct index of cpu_debugfs[] array according to cpu number
- Reset 'load_table' data when cpufreq governor is changed or updated because
  specific governor(e.g., performance/powersave) haven't used 'load_table;
  debugfs file.

Changes since v5:
- Determine index value of policy->cpu_debugfs[] according to
  cpumask_weight(policy->cpus) value
- Bug fix, store 'policy->cpu' to 'freq->cpu' before notify
  CPUFREQ_LOADCHECK notification

Changes since v4:
- Reset the data of CPUs load when cpufreq governor is changed
- Move code about creating debugfs directory to below first patch
: [PATCH 1/2] cpufreq: Add debugfs directory for cpufreq

Changes since v3:
- Extend a range of accumulated data (10 ~ 1000)
- Add unit information of time/freq and align 'Time' field as left for readability
- Use CONFIG_CPU_FREQ_STAT depdendency instead of CONFIG_CPU_FREQ_STAT_DETATILS
- Initialize load of offline CPUx as zero(0)
- Create/remove debugfs root directory on cpufreq_stats_init/exit() because
  debugfs root is used on all CPUs.

Changes since v2:
- Code clean according to Viresh Kumar's comment
- Show both old frequency and new frequency on 'load_table' debugfs file
- Change debufs file patch as below
  old: /sys/kernel/debugfs/cpufreq/load_table
  new: /sys/kernel/debugfs/cpufreq/cpuX/load_table

Changes since v1:
- Set maximum storage size to save CPUs load on Kconfig
- Use spinlock to synchronize read/write operation for CPUs load
- Use local variable instead of global variable(struct cpufreq_freqs *freqs)
- Use pointer of data structure to get correct size of data structure
  in sizeof() macro instead of structure name
  : sizeof(struct cpufreq_freqs) -> sizeof(*stat->load_table)
- Change time unit from nanosecond to microsecond
- Remove unnecessary memory copy

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoLOCAL / cpufreq: Add debugfs directory for cpufreq
Chanwoo Choi [Mon, 1 Jun 2015 02:07:42 +0000 (11:07 +0900)]
LOCAL / cpufreq: Add debugfs directory for cpufreq

This patch create debugfs root directory and child directory according to
the number of CPUs for CPUFreq as below debugfs directory path:
- /sys/kernel/debug/cpufreq/cpuX

If many CPUs share only one cpufreq policy, other CPUs(except for first CPU)
create a symbolic link for debugfs directory of CPU0.
- link: /sys/kernel/debug/cpufreq/cpu[1-(N-1)] -> /sys/kernel/debug/cpufreq/cpu0

And then cpufreq may need to create debugfs specific file below of debugfs
directory of cpufreq. (e.g., /sys/kernel/debug/cpufreq/cpu0/load_table)

Changes since v6:
- Use 'policy->related_cpus' instead of 'policy->cpus' when getting the number
  of CPUs included in the same package
- Get correct index of cpu_debugfs[] array according to cpu number
- Refactoring cpufreq_move_debugfs_dir() / cpufreq_create_debugfs_symlink()
- Use for_each_cpu() to support multi cluster instead of for_each_present_cpu()

Changes since v5:
- Refactoring patch v4
- Create again symbolic link of debugfs directory when first CPU dev is removed
  (In this case, many CPUs share only one cpufreq policy)

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoarm64: dts: exynos5433: Change the clock-latency of big.LITTLE core
Chanwoo Choi [Thu, 25 Jun 2015 04:00:49 +0000 (13:00 +0900)]
arm64: dts: exynos5433: Change the clock-latency of big.LITTLE core

This patch changes the clock-latency of big.LITTLE core to modify the sampling
rate of CPUFREQ. (100ms -> 50ms)

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoarm64: dts: exynos5433: Add g3d thermal node to measure the temperature of G3D
Chanwoo Choi [Fri, 26 Jun 2015 07:31:02 +0000 (16:31 +0900)]
arm64: dts: exynos5433: Add g3d thermal node to measure the temperature of G3D

This patch add g3d tmu dt node to measure the temperature of G3D.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agoiommu: dma-iommu: fix off-by-one error in bitmap size calculation
Marek Szyprowski [Wed, 1 Jul 2015 11:52:33 +0000 (13:52 +0200)]
iommu: dma-iommu: fix off-by-one error in bitmap size calculation

nr_bitmaps member stores the number of already allocated bitmaps and it
is interpreted as loop iterator (starts from 0 not from 1), so a
comparison against number of possible bitmap extensions should also
include this fact. This patch fixes this by changing the extension failure
condition.

Reported-by: Hyungwon Hwang <human.hwang@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agodrm/exynos: decon: fix the VCLK hold scheme at data underflow
Hyungwon Hwang [Wed, 1 Jul 2015 02:29:54 +0000 (11:29 +0900)]
drm/exynos: decon: fix the VCLK hold scheme at data underflow

VCLK hold scheme must be set to make VCLK run and VDEN disable, when
data underflow happens in case of MIPI command mode is being used.
Incorrect setting can make image distorted when underflow occurs.

Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
7 years agodrm/exynos: gsc: Handles the combination of rotation and flip
Hyungwon Hwang [Mon, 29 Jun 2015 13:37:27 +0000 (22:37 +0900)]
drm/exynos: gsc: Handles the combination of rotation and flip

The unique results of all the combination of rotation and flip can
be represented by just 8 states. This patch handles all the combination
correctly.

Change-Id: I27d8c96f012b30d4d628a0eba9ca6f15b903a981
Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
7 years agodrm/exynos: gsc: fix wrong bitwise operation for swap detection
Hyungwon Hwang [Mon, 29 Jun 2015 11:42:17 +0000 (20:42 +0900)]
drm/exynos: gsc: fix wrong bitwise operation for swap detection

The bits for rotation are not used as exclusively. So GSC_IN_ROT_270 can
not be used for swap detection. The definition of it is same with
GSC_IN_ROT_MASK. It is enough to check GSC_IN_ROT_90 bit is set or not to
check whether width / height size swapping is needed.

Change-Id: I69a98c170b4d31ee68dfd816dfecfd6045d84a44
Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
7 years agosii8620: small cleanup
Andrzej Hajda [Mon, 29 Jun 2015 14:12:49 +0000 (16:12 +0200)]
sii8620: small cleanup

The patch removes private comments.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agosii8620: force MHL version to 1/2
Andrzej Hajda [Mon, 29 Jun 2015 14:11:48 +0000 (16:11 +0200)]
sii8620: force MHL version to 1/2

Since we do not need MHL3 at the moment MHL1/2 protocol is enforced.
With this patch driver works with MHL3 dongles.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agosii8620: set_int handler cleanup
Andrzej Hajda [Mon, 29 Jun 2015 13:56:26 +0000 (15:56 +0200)]
sii8620: set_int handler cleanup

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agosii8620: fetch edid only once
Andrzej Hajda [Mon, 29 Jun 2015 13:55:33 +0000 (15:55 +0200)]
sii8620: fetch edid only once

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agosii8620: cleaning of MHL related macros
Andrzej Hajda [Mon, 29 Jun 2015 09:15:22 +0000 (11:15 +0200)]
sii8620: cleaning of MHL related macros

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agosii8620: add support to RAP commands
Andrzej Hajda [Fri, 26 Jun 2015 12:09:05 +0000 (14:09 +0200)]
sii8620: add support to RAP commands

Request Action Protocol is required to enable CBUS mode in MHL3.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agosii8620: add XDEVCAP read support
Andrzej Hajda [Thu, 25 Jun 2015 13:22:33 +0000 (15:22 +0200)]
sii8620: add XDEVCAP read support

MHL3 requires it.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agosii8620: MHL definition changes
Andrzej Hajda [Thu, 25 Jun 2015 11:04:42 +0000 (13:04 +0200)]
sii8620: MHL definition changes

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agosii8620: set mode to MHL3 if sink supports it
Andrzej Hajda [Wed, 24 Jun 2015 10:51:50 +0000 (12:51 +0200)]
sii8620: set mode to MHL3 if sink supports it

In case sink supports MHL3, use it.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agosii8620: remove unused code
Andrzej Hajda [Wed, 24 Jun 2015 10:49:51 +0000 (12:49 +0200)]
sii8620: remove unused code

The patch removes commented out code.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/exynos: Add missing else statement
Hyungwon Hwang [Mon, 29 Jun 2015 07:42:39 +0000 (16:42 +0900)]
drm/exynos: Add missing else statement

This patch adds missing else statement in decon_win_commi().

Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
7 years agodrm/exynos: ipp: validate a GEM handle with multiple planes
Hyungwon Hwang [Tue, 9 Jun 2015 03:45:15 +0000 (12:45 +0900)]
drm/exynos: ipp: validate a GEM handle with multiple planes

FIMC & GSC driver can calculate the offset of planes. So there are
use cases which IPP receives just one GEM handle of an image with
multiple plane. This patch extends ipp_validate_mem_node() to validate
this case.

Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
7 years agodrm : bridge: Kconfig: Break configuration dependency chain.
Jonghwa Lee [Mon, 29 Jun 2015 04:34:22 +0000 (13:34 +0900)]
drm : bridge: Kconfig: Break configuration dependency chain.

This fixes recursive dependency warning occured by CONFIG_SII8620.

*** Error on kernel build **********
drivers/video/fbdev/Kconfig:5:error: recursive dependency detected!
drivers/video/fbdev/Kconfig:5: symbol FB is selected by DRM_KMS_FB_HELPER
drivers/gpu/drm/Kconfig:34:   symbol DRM_KMS_FB_HELPER depends on DRM_KMS_HELPER
drivers/gpu/drm/Kconfig:28:   symbol DRM_KMS_HELPER is selected by DRM_SII8620
drivers/gpu/drm/bridge/Kconfig:15:   symbol DRM_SII8620 depends on I2C
drivers/i2c/Kconfig:7:           symbol I2C is selected by FB_DDC
drivers/video/fbdev/Kconfig:59:  symbol FB_DDC is selected by FB_CYBER2000_DDC
drivers/video/fbdev/Kconfig:374: symbol FB_CYBER2000_DDC depends on FB_CYBER2000
drivers/video/fbdev/Kconfig:362: symbol FB_CYBER2000 depends on FB

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
7 years agodrm/exynos/hdmi: add spdif clock gate to the driver
Andrzej Hajda [Mon, 22 Jun 2015 09:01:30 +0000 (11:01 +0200)]
drm/exynos/hdmi: add spdif clock gate to the driver

HDMI should enable this clock to work properly.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agoARM64: dts: exynos5433: add spdif clock to HDMI node
Andrzej Hajda [Mon, 22 Jun 2015 09:00:27 +0000 (11:00 +0200)]
ARM64: dts: exynos5433: add spdif clock to HDMI node

HDMI requires spdif clock to work correctly, even if audio is not used.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/exynos/decon5433: added pclk clock to driver
Andrzej Hajda [Mon, 22 Jun 2015 08:59:19 +0000 (10:59 +0200)]
drm/exynos/decon5433: added pclk clock to driver

decon5433 requires pclk clock gate to work correctly.
The patch adds the clock.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agoARM64: dts: exynos5433: added pclk clocks to decon device nodes
Andrzej Hajda [Mon, 22 Jun 2015 08:56:24 +0000 (10:56 +0200)]
ARM64: dts: exynos5433: added pclk clocks to decon device nodes

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agoclk/samsung: added pclk_decon clock
Andrzej Hajda [Mon, 22 Jun 2015 08:53:36 +0000 (10:53 +0200)]
clk/samsung: added pclk_decon clock

This gate clock is partially documented.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/exynos/hdmi: limit modes not supported by drivers
Andrzej Hajda [Fri, 19 Jun 2015 12:43:50 +0000 (14:43 +0200)]
drm/exynos/hdmi: limit modes not supported by drivers

This temporary patch prevent setting modes not supported by HDMI/MHL drivers.
After fixing drivers the check can be removed.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/exynos/hdmi: allow change PLL configuration without turning off pipeline
Andrzej Hajda [Fri, 19 Jun 2015 10:27:07 +0000 (12:27 +0200)]
drm/exynos/hdmi: allow change PLL configuration without turning off pipeline

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/exynos/decon5433: respect framebuffer offsets
Andrzej Hajda [Thu, 18 Jun 2015 14:18:58 +0000 (16:18 +0200)]
drm/exynos/decon5433: respect framebuffer offsets

Driver should display image form framebuffer shifted by fb offsets.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/exynos: fix call to exynos_update_plane
Andrzej Hajda [Thu, 18 Jun 2015 14:15:46 +0000 (16:15 +0200)]
drm/exynos: fix call to exynos_update_plane

exynos_update_plane assumes four last arguments are in fixed point arithmetic.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
[k.kozlowski: rebased on 4.1]
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
7 years agoarm64/configs: add HDMI and MHL drivers
Andrzej Hajda [Tue, 26 May 2015 07:51:44 +0000 (09:51 +0200)]
arm64/configs: add HDMI and MHL drivers

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/exynos/decon5433: fix DECON_VIDW0xADD2 value calculation
Andrzej Hajda [Wed, 17 Jun 2015 06:17:24 +0000 (08:17 +0200)]
drm/exynos/decon5433: fix DECON_VIDW0xADD2 value calculation

DECON_VIDW0xADD2 registry differs in DECON and DECON-TV. So its value should
be calculated accordingly.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/exynos/decon5433: interlace fix
Andrzej Hajda [Tue, 16 Jun 2015 06:28:05 +0000 (08:28 +0200)]
drm/exynos/decon5433: interlace fix

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/exynos/hdmi: do not touch 3d mode registers in 2d modes
Andrzej Hajda [Mon, 15 Jun 2015 15:26:46 +0000 (17:26 +0200)]
drm/exynos/hdmi: do not touch 3d mode registers in 2d modes

3d modes are not supported so driver should not touch these registers.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/exynos/decon5433: fix interlace support
Andrzej Hajda [Mon, 15 Jun 2015 14:51:03 +0000 (16:51 +0200)]
drm/exynos/decon5433: fix interlace support

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/exynos/decon5433: restart video stream on commit
Andrzej Hajda [Mon, 15 Jun 2015 11:51:28 +0000 (13:51 +0200)]
drm/exynos/decon5433: restart video stream on commit

Image sent to HDMI is time-shifted if the stream is not restarted during
commit. It can be observed during modesetting without disabling pipeline.
The patch fixes it.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/exynos/hdmi: speed-up PLL stabilization code
Andrzej Hajda [Fri, 12 Jun 2015 12:36:35 +0000 (14:36 +0200)]
drm/exynos/hdmi: speed-up PLL stabilization code

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/exynos/hdmi: add commit callback to allow modesetting w/o disabling pipeline
Andrzej Hajda [Thu, 11 Jun 2015 13:50:18 +0000 (15:50 +0200)]
drm/exynos/hdmi: add commit callback to allow modesetting w/o disabling pipeline

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/exynos/hdmi: move common code to one place
Andrzej Hajda [Thu, 11 Jun 2015 13:39:21 +0000 (15:39 +0200)]
drm/exynos/hdmi: move common code to one place

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/exynos/hdmi: fix removal order
Andrzej Hajda [Thu, 11 Jun 2015 13:13:26 +0000 (15:13 +0200)]
drm/exynos/hdmi: fix removal order

DRM device should be destroyed first, before resources unbinding.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/exynos/hdmi: remove private lock code
Andrzej Hajda [Thu, 11 Jun 2015 13:08:09 +0000 (15:08 +0200)]
drm/exynos/hdmi: remove private lock code

Most of the code is called by drm core framework, so it is already synchronized.
The only async function is irq routine which only calls drm framework so it
does not need to be synchronized.

7 years agodrm/exynos/hdmi: simplify Hot-Plug detection code
Andrzej Hajda [Thu, 11 Jun 2015 12:57:05 +0000 (14:57 +0200)]
drm/exynos/hdmi: simplify Hot-Plug detection code

The only place hpd field is read is hdmi_detect and that function already
sets its value. Setting it in other functions makes no sense.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/exynos/decon5433: replace array of TV timings with direct code
Andrzej Hajda [Mon, 8 Jun 2015 07:57:47 +0000 (09:57 +0200)]
drm/exynos/decon5433: replace array of TV timings with direct code

Direct porch calculation seems to be more universal and straightforward
than array of timings.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/exynos/decon5433: iterate only on valid windows
Andrzej Hajda [Tue, 2 Jun 2015 11:28:46 +0000 (13:28 +0200)]
drm/exynos/decon5433: iterate only on valid windows

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/exynos: remove SoC checking code
Andrzej Hajda [Fri, 29 May 2015 11:54:14 +0000 (13:54 +0200)]
drm/exynos: remove SoC checking code

SoC checking code is not necessary anymore, as exynos_drm_match_add and
exynos_drm_platform_probe already properly handles situation when there are
no Exynos DRM components.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/exynos: fix broken component binding in case of multiple pipelines
Andrzej Hajda [Fri, 29 May 2015 11:46:51 +0000 (13:46 +0200)]
drm/exynos: fix broken component binding in case of multiple pipelines

In case there are multiple pipelines and deferred probe occurs, only components
of first pipeline were bound. As a result only one pipeline were available.
The main cause of this issue was dynamic generation of component match table -
every component driver during probe registered itself on helper list, if there
was at least one pipeline present on this list component match table were
created without deferred components.
This patch removes this helper list, instead it creates match table from
existing devices requiring exynos_drm KMS drivers. This way match table do not
depends on probe/deferral order and contains all KMS components.
As a side effect patch makes the code cleaner and significantly smaller.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/exynos: consolidate driver/device initialization code
Andrzej Hajda [Fri, 29 May 2015 09:27:50 +0000 (11:27 +0200)]
drm/exynos: consolidate driver/device initialization code

Code registering different drivers and simple  platform devices were dispersed
across multiple sub-modules. This patch moves it to one place. As a result
initialization code is shorter and cleaner and will simplify further
development.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>