platform/kernel/linux-exynos.git
7 years agodrm/exynos: fence: add dma fence support
Inki Dae [Fri, 19 Aug 2016 11:44:54 +0000 (13:44 +0200)]
drm/exynos: fence: add dma fence support

This patch adds DMA fence based DMABUF synchronization feature.
The original codes of this feature is a below repository,
    https://chromium.googlesource.com/chromiumos/third_party/kernel
     chromeos-3.14

Change-Id: I4bcefb1487d6a85530fcd5ea4dde5fba435bb827
Signed-off-by: Inki Dae <inki.dae@samsung.com>
[squashed with bugfixes and ported to v4.1 Tizen kernel]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agodrm: add helpers for fence and reservation based dma-buf sync
Dominik Behr [Fri, 19 Aug 2016 11:44:17 +0000 (13:44 +0200)]
drm: add helpers for fence and reservation based dma-buf sync

BUG=chromium:395901
TEST=emerge-veyron chromeos-kernel-3_14, deploy and boot kernel

Change-Id: I0cdf6d23e9f4924128d4de77c0f3ed7589766bb8
Signed-off-by: Dominik Behr <dbehr@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/218381
[mszyprow: ported to v4.1 kernel]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
7 years agoBluetooth: add to support LE privacy 1.2 & MGMT to load device RPA resolution
h.sandeep [Tue, 15 Nov 2016 11:08:58 +0000 (16:38 +0530)]
Bluetooth: add to support LE privacy 1.2 & MGMT to load device RPA resolution

RPA resolution support of peer device to be checked before starting
directed advertising. This patch load the resolution support info of
device and check before starting directed advertising.

Change-Id: Ia1e7b2ae1ef9d5e12877d96759cb9089b52c20b7
Signed-off-by: paras.kumar <paras.kumar@samsung.com>
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
[Fix coding style and adjust commit-msg]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoBluetooth: Fix IRK distribution issue when Privacy is disabled
h.sandeep [Mon, 21 Nov 2016 11:14:42 +0000 (16:44 +0530)]
Bluetooth: Fix IRK distribution issue when Privacy is disabled

The devices, like Android 6.x, which don't support privacy 1.2
couldn't make BLE connection to the device which doesn't distribute
IRK when pairing because they use use wrong address type.
For compatibility, it needs to distribute IRK even though Privacy
feature is disabled. So setting IRK interface is added and BlueZ
will set IRK if privacy feature is disabled. And when BLE pairing,
IRK will be always distributed.

Change-Id: I6dbcef9663a1a0cb2b7db89cad6e725025e41fa1
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
7 years agoBluetooth: Add MGMT interface for setting IRK
h.sandeep [Tue, 15 Nov 2016 11:18:34 +0000 (16:48 +0530)]
Bluetooth: Add MGMT interface for setting IRK

It is required to set IRK from BlueZ if privacy feature is disabled,
so this patch adds setting IRK interface to MGMT.

Change-Id: I68183b6003c6292e0f7c95b8fe9c0d04890063b5
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoBluetooth: Don't send the sco vendor commands to other vendor chips
DoHyun Pyun [Fri, 21 Oct 2016 00:10:04 +0000 (09:10 +0900)]
Bluetooth: Don't send the sco vendor commands to other vendor chips

There are BCM sco WBC/NBC commands, and they are only for BCM chips.
So this patch fix not to send the sco commands to non BCM vendor
chips which causes sco command timeout and disconnection.

Change-Id: Iae67b6e6de2ecf68b79e47136c2b80aa530a281c
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoBluetooth: Increase supervision timeout to fix issues
Sudha Bheemanna [Tue, 4 Oct 2016 09:16:13 +0000 (14:46 +0530)]
Bluetooth: Increase supervision timeout to fix issues

Too small supervision timeout causes sudden link loss when remote
device has multiple links and it cannot manage those properly. To
protect such a case, it needs to widen supervision timeout.

Change-Id: I6e0cef7d5d5b6f1c3635ee1c1b59c550438dfd9f
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
7 years agoBluetooth: Set le data length command and event
Sudha Bheemanna [Fri, 16 Sep 2016 10:07:22 +0000 (15:37 +0530)]
Bluetooth: Set le data length command and event

Sets the data length for the le data packet with in the
advised limits. MGMT command and event are added to handle
the setting of data length.

Change-Id: I3dbcbba83098e17f0e6da209753f8924ffb67678
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
7 years agoBluetooth: Read host suggested default le data length
Sudha Bheemanna [Fri, 16 Sep 2016 07:24:31 +0000 (12:54 +0530)]
Bluetooth: Read host suggested default le data length

This patch adds MGMT command and code for supporting reading
default le data length value set at the controller.

Change-Id: I2b81982dc26ed5af4a8f8a3d3913db5d64625260
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
7 years agoBluetooth: Write host suggested default le data length
Sudha Bheemanna [Fri, 16 Sep 2016 06:39:57 +0000 (12:09 +0530)]
Bluetooth: Write host suggested default le data length

This patch adds MGMT command and code for supporting write
default le data length command to the controller.

Change-Id: I3d2c8b622b7913a3ed542342e3ba8076c30dc279
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
7 years agoBluetooth: Read LE Max data length command
Sudha Bheemanna [Fri, 16 Sep 2016 05:08:30 +0000 (10:38 +0530)]
Bluetooth: Read LE Max data length command

This patch adds the MGMT command and code to support reading
the maximum data length supported command for LE.

Change-Id: I4dc0041f2070de2ccb6a4164c8823612863c941e
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
7 years agoARM: defconfig: odroid: enable 6LOWPAN and BT_6LOWPAN options
Seung-Woo Kim [Thu, 29 Sep 2016 07:33:28 +0000 (16:33 +0900)]
ARM: defconfig: odroid: enable 6LOWPAN and BT_6LOWPAN options

This patch enables 6Lowpan modules for BT.

Change-Id: Id607cc9ef9cdcee5600ecfe151562752ade82475
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoarm64: defconfig: tm2: enable 6LOWPAN and BT_6LOWPAN options
Seung-Woo Kim [Thu, 29 Sep 2016 07:28:41 +0000 (16:28 +0900)]
arm64: defconfig: tm2: enable 6LOWPAN and BT_6LOWPAN options

This patch enables 6Lowpan modules for BT.

Change-Id: I5181bd4ae1face748049448239cb62e90b341fbf
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoBluetooth: Fix IPSP connection callback event issue.
h.sandeep [Fri, 16 Sep 2016 09:15:24 +0000 (14:45 +0530)]
Bluetooth: Fix IPSP connection callback event issue.

This patch fixes the IPSP connection callback event issue
between kernel and bluez layer.

Change-Id: Ia4d625aa8a6dbc9da89a7d9f12308af9c90d0594
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
7 years agoBluetooth: IPSP Connect/Disconnect apis
Sudha Bheemanna [Thu, 15 Sep 2016 07:23:03 +0000 (12:53 +0530)]
Bluetooth: IPSP Connect/Disconnect apis

This patch adds MGMT code to support IPSP connect and
disconnect apis and handle connection state changed event.

Change-Id: I1c41ec4f38cf9a108e443def3bc23c1b964e2985
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
7 years agoBluetooth: Add support to enable/disable IPSP
Sudha Bheemanna [Thu, 15 Sep 2016 04:42:09 +0000 (10:12 +0530)]
Bluetooth: Add support to enable/disable IPSP

This patch supports MGMT commands and code to enable or disable
IPSP 6LowPan features.

Change-Id: Ia866ecfa517c7d7e4320f17d94d80dfeb9261e59
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
7 years agoBluetooth: Fix issue in the Set LE privacy function.
Sudha Bheemanna [Thu, 8 Sep 2016 10:51:01 +0000 (16:21 +0530)]
Bluetooth: Fix issue in the Set LE privacy function.

This patch fixes not to check the hdev power before setting
LE Privacy.

Change-Id: I344ea13b1d90527e3e7554ec616cdc640b85159c
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoBluetooth: Store the key if auth type is P192
Sudha Bheemanna [Mon, 12 Sep 2016 07:16:44 +0000 (12:46 +0530)]
Bluetooth: Store the key if auth type is P192

This patch allows to store the key after authentication
if auth type is "HCI_LK_AUTH_COMBINATION_P192"

Change-Id: Ie44dbe7dfec361edab61aceaf9b2ca4057b88fa5
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
7 years agoBluetooth: check sock parent before unlink
Sudha Bheemanna [Mon, 12 Sep 2016 06:27:38 +0000 (11:57 +0530)]
Bluetooth: check sock parent before unlink

Add a check for BT socket before using it to unlink
in bt_accept_unlink(). This helps to avoid kernel panic.

Change-Id: Ie8919dedce239a3476c06ad48ebb3a0f731b9856
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
[update patch title]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoBluetooth: Cancel the Sniff timer
Sudha Bheemanna [Thu, 8 Sep 2016 11:31:39 +0000 (17:01 +0530)]
Bluetooth: Cancel the Sniff timer

This patch adds code to cancel the sniff timer.

Change-Id: I756d3b08acf6462044d1fb204064fe12ce1238c1
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
7 years agoBluetooth: Enable sniff mode for incoming connection
Sudha Bheemanna [Thu, 8 Sep 2016 11:10:50 +0000 (16:40 +0530)]
Bluetooth: Enable sniff mode for incoming connection

Add provision to set the link poilicy to enable sniff mode
for incoming connection.

Change-Id: Ifff9e9f0838f26a6c96d81f4cbaae43429aa231f
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
7 years agoBluetooth: Modify fast connectable type.
Sudha Bheemanna [Thu, 8 Sep 2016 10:31:23 +0000 (16:01 +0530)]
Bluetooth: Modify fast connectable type.

This patch modifies the fast connectable function
to just set the type.

Change-Id: I0cce96f85d823f9798ae7f147c4e33ce7b18e0e3
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
7 years agoBluetooth: Send Authentication Request command on pairing failure
Sudha Bheemanna [Thu, 8 Sep 2016 09:41:28 +0000 (15:11 +0530)]
Bluetooth: Send Authentication Request command on pairing failure

This patch allows to send HCI_OP_AUTH_REQUESTED command
to the remote device if pairing failure happens because
of pin or key missing error.

Change-Id: I9c28394dc06b22fd5fe9e58ac0b7d728c086bde4
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
7 years agoBluetooth: Enable inquiry and page scan
Sudha Bheemanna [Thu, 8 Sep 2016 09:24:54 +0000 (14:54 +0530)]
Bluetooth: Enable inquiry and page scan

This patch enables the inquiry and page scan after ACL
disconnection with one device and if there are no other
devices connected.

Change-Id: Ifb28be7d23f237d35112b2e0739ed55169baacf7
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
7 years agoBluetooth: Change authentication requirement.
Sudha Bheemanna [Thu, 8 Sep 2016 07:34:11 +0000 (13:04 +0530)]
Bluetooth: Change authentication requirement.

This patch updates the authentication requirement to general
MITM if local and remote device IO capabilities are not
NO_INPUT_NO_OUTPUT.

Change-Id: Ie3955c3f8287418e74af20d40bdf30d0f1963e31
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
7 years agoBluetooth: Set link Supervision timeout for a connection
Sudha Bheemanna [Thu, 8 Sep 2016 06:54:43 +0000 (12:24 +0530)]
Bluetooth: Set link Supervision timeout for a connection

This patch allows to set the supervision timeout for a connection
if the device role is master.

Change-Id: I7897167ec07803f3059f2ab4d3314b0b7a951533
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
7 years agoBluetooth: Set filter policy for LE connection
Sudha Bheemanna [Thu, 8 Sep 2016 05:51:06 +0000 (11:21 +0530)]
Bluetooth: Set filter policy for LE connection

This patch sets the filter policy to a default value 0x01 during
LE auto connection if the destination address is not set. And it
updates the destination address once the LE connection complete
event is recieved during LE auto connection. And for it checks
valid destination address before cancelling LE connection when
connection timeout occurs.

Change-Id: I9877556c0b0ab4826f5f4934ead4d85b7837036d
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
[squash patches, LE connection policy, set dest address and check dest address before cancelling connection]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoBluetooth: Get Advertising TX power
Sudha Bheemanna [Wed, 7 Sep 2016 09:52:08 +0000 (15:22 +0530)]
Bluetooth: Get Advertising TX power

This patch adds MGMT command to read the advertising TX power.

Change-Id: Ide9e5d332f034928d2eae2cbd68a025a0d42be1b
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
7 years agoBluetooth: Set the link for SCO connection
Sudha Bheemanna [Thu, 8 Sep 2016 07:07:45 +0000 (12:37 +0530)]
Bluetooth: Set the link for SCO connection

This patch sets the link policy for SCO/eSCO connection.

Change-Id: I71caef5a3887f73a10329b6886c8cf52b80e8d37
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
[add link policy setting in sco connection]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoBluetooth: Add MGMT command to set SCO settings
Sudha Bheemanna [Tue, 6 Sep 2016 11:08:36 +0000 (16:38 +0530)]
Bluetooth: Add MGMT command to set SCO settings

Added code to set sco settings.

Change-Id: I37aa572436241b06e00d1e9e75964aac747eeba5
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
[remove sco link policy part]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoBluetooth: Add multiple LE advertise state change event
Sudha Bheemanna [Thu, 8 Sep 2016 05:01:17 +0000 (10:31 +0530)]
Bluetooth: Add multiple LE advertise state change event

This patch adds code for providing multiple LE advertisement state
changed event to upper layer.

Change-Id: I58fb8044e74402376ec30b121081edce7c8709d1
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
[divide hci_vendor_mutli_adv_state_change_evt and remove hci event structure from mgmt]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoBluetooth: Add LE device found MGMT event
Sudha Bheemanna [Thu, 8 Sep 2016 04:40:03 +0000 (10:10 +0530)]
Bluetooth: Add LE device found MGMT event

This patch adds new MGMT event for LE device discovery and allows
the handling of all advertisement packets in platform.

Change-Id: I1927acb75eff0b60a5899898c6d7a000e1a108ef
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
7 years agoBluetooth: Add H/W TX timeout error MGMT event
Sudha Bheemanna [Wed, 7 Sep 2016 11:17:58 +0000 (16:47 +0530)]
Bluetooth: Add H/W TX timeout error MGMT event

This patch sends the H/W TX timeout error MGMT event if HCI command
timeout occurs after sending HCI commands.

Change-Id: I5eb593f2fe4d31c404dd94ef582790e47d03b10a
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
7 years agoBluetooth: Add hardware error MGMT event
Sudha Bheemanna [Wed, 7 Sep 2016 10:12:22 +0000 (15:42 +0530)]
Bluetooth: Add hardware error MGMT event

Add code to handle hardware error MGMT event.

Change-Id: I5875ea2aeae7aba95c1f8e15b456704dc6bcdee4
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
7 years agoBluetooth: fix vendor ext rssi link alert event
Seung-Woo Kim [Wed, 28 Sep 2016 16:59:05 +0000 (01:59 +0900)]
Bluetooth: fix vendor ext rssi link alert event

This patch fixes style for rssi link alert event from vendor
specific group ext.

Change-Id: I0e7003e417c5f5a590cce8264caccad515dd3c10
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoBluetooth: Add LE vendor specific event handler
Sudha Bheemanna [Thu, 8 Sep 2016 05:26:15 +0000 (10:56 +0530)]
Bluetooth: Add LE vendor specific event handler

This patch adds the vendor specific LE meta event handler.
It handles the vendor specific handles like,
LE_MULTI_ADV_STATE_CHANGE_SUB_EVENT, LE_RSSI_LINK_ALERT.

Change-Id: I1f344a31e36f9c7442fe0bd8b598e67d9f5fb9bf
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
[divide hci vendor speicif group event function]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoBluetooth: Add set LE scan parameter feature
Sudha Bheemanna [Thu, 25 Aug 2016 07:16:07 +0000 (12:46 +0530)]
Bluetooth: Add set LE scan parameter feature

Added new MGMT command to set LE scan parameters

Change-Id: I5ea660f97e93dfcc72273971ad0250e7f582f718
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
7 years agoBluetooth: Set Manufacturer data feature
Sudha Bheemanna [Thu, 25 Aug 2016 06:43:09 +0000 (12:13 +0530)]
Bluetooth: Set Manufacturer data feature

Added new MGMT command to set the manufacturer data
in the BR/EDR packet.

Change-Id: Ie08062f4cad0c676deab94fd95fdc1a8c5602135
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
7 years agoBluetooth: Add LE connection parameter update procedure
Sudha Bheemanna [Thu, 25 Aug 2016 06:28:22 +0000 (11:58 +0530)]
Bluetooth: Add LE connection parameter update procedure

Added new MGMT command to update LE connection parameters

Change-Id: I6ae16513437cd42d40e75958aa8415baa1cbedbb
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
7 years agoBluetooth: Add stop LE auto connection feature
Sudha Bheemanna [Thu, 25 Aug 2016 06:11:34 +0000 (11:41 +0530)]
Bluetooth: Add stop LE auto connection feature

Added new MGMT command to disable LE auto connection.

Change-Id: I1f5f61b83227501ad54019008b405fd47fd722a3
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
7 years agoBluetooth: Add BT LE discovery feature
Sudha Bheemanna [Thu, 25 Aug 2016 05:53:02 +0000 (11:23 +0530)]
Bluetooth: Add BT LE discovery feature

This patch adds new MGMT commands to start LE discovery separately
and handles LE discovery state.

Change-Id: I85958b8c2b5c7e28f57c69e86037ab1e61a75db0
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoBluetooth: Update device name on remote_name_event
Sudha Bheemanna [Thu, 25 Aug 2016 04:47:19 +0000 (10:17 +0530)]
Bluetooth: Update device name on remote_name_event

This patch updates the device name on receiving the HCI event
remote_name_event during connection establishment.

Change-Id: I9a217e6760b1803a70af201a3f6903e722079749
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoBluetooth: Add RSSI Monitor feature
Sudha Bheemanna [Wed, 24 Aug 2016 11:51:15 +0000 (17:21 +0530)]
Bluetooth: Add RSSI Monitor feature

Added feature support for monitoring the RSSI value.
Commands and events for enabling, disabling and setting
rssi threshold values are added.

Change-Id: I850643a9228afc017e54217a11826b9c6a68a96b
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoBluetooth: Functions to modify WhiteList
Sudha Bheemanna [Wed, 24 Aug 2016 09:32:56 +0000 (15:02 +0530)]
Bluetooth: Functions to modify WhiteList

This patch provides MGMT commands to manage the white
list which includes, adding, removing and clearing the
devices from white list.

Change-Id: If71107129d3a090ae81448a8122b76accd4f5522
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoBluetooth: Add Advertising Packet Configuration
Sudha Bheemanna [Wed, 24 Aug 2016 06:47:16 +0000 (12:17 +0530)]
Bluetooth: Add Advertising Packet Configuration

This patch provides new MGMT commands to configure
the advertising data and scan response data packets for
LE peripheral devices.

Change-Id: I914d13795f4fb58e5f2e1cadb55086f4bcbc82df
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoBluetooth: Add MGMT tizen_handlers and TIZEN_OP_BASE_CODE.
h.sandeep [Thu, 1 Sep 2016 06:30:57 +0000 (12:00 +0530)]
Bluetooth: Add MGMT tizen_handlers and TIZEN_OP_BASE_CODE.

Added the basic skeleton code for tizen_mgmt_handlers and
mgmt_tizen.h header file.

Change-Id: I8f3100aa79e6673840ba561f0a9c50238ca0880b
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
7 years agoBluetooth: Add "TIZEN_BT" flag
Sudha Bheemanna [Tue, 23 Aug 2016 11:37:10 +0000 (17:07 +0530)]
Bluetooth: Add "TIZEN_BT" flag

Added the tizen specific flag for use in adding tizen patches.

Change-Id: Ia391644fddbe600c8d845e0bf0808f587aa73e0c
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agodrm/exynos/hdmi: remove unused hdmiphy_poweron()
Seung-Woo Kim [Wed, 5 Oct 2016 07:26:11 +0000 (16:26 +0900)]
drm/exynos/hdmi: remove unused hdmiphy_poweron()

The function hdmiphy_poweron() is not used anymore, so this patch
removes it. This patch fixes following build warning.

   drivers/gpu/drm/exynos/exynos_hdmi.c:1897:13: warning: 'hdmiphy_poweron' defined but not used [-Wunused-function]
    static void hdmiphy_poweron(struct hdmi_context *hdata)
                ^

Change-Id: I4c51b45becf8f52ef85020c7e1628d7baad90670
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agodrm/exynos: fix types for compilation on 64bit architectures
Marek Szyprowski [Wed, 3 Feb 2016 12:42:47 +0000 (13:42 +0100)]
drm/exynos: fix types for compilation on 64bit architectures

This patch fixes compilation warnings (on 64bit architectures) and bugs
related to casting pointers through 32bit integers.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
[backport from mainline to remove remaining build warnings]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I21826b01286c6152be873d2234e14eb1950f3ca9

7 years agotrace: ramdump: comment out not used functions
Seung-Woo Kim [Wed, 28 Sep 2016 15:39:28 +0000 (00:39 +0900)]
trace: ramdump: comment out not used functions

This patch comments out not used functions to remove following
warnings.

   drivers/trace/exynos-ss.c:593:21: warning: 'exynos_ss_get_core_panic_stat' defined but not used [-Wunused-function]
    static unsigned int exynos_ss_get_core_panic_stat(unsigned cpu)
                        ^
   drivers/trace/exynos-ss.c:1047:13: warning: 'exynos_ss_dump_task_info' defined but not used [-Wunused-function]
    static void exynos_ss_dump_task_info(void)
                ^

Change-Id: I267ad6128ea33ceb4cc476c0aa5aa0a6c4da6f95
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agosched: hmp: fix wrong initialization of hmp_data
Seung-Woo Kim [Wed, 28 Sep 2016 15:25:48 +0000 (00:25 +0900)]
sched: hmp: fix wrong initialization of hmp_data

There was wrong memset for hmp_data, so this patch fixes it. This also
fixes following build warning.

   kernel/sched/fair.c: In function 'hmp_attr_init':
   kernel/sched/fair.c:5642:2: warning: 'memset' used with constant zero length parameter; this could be due to transposed parameters [-Wmemset-transposed-args]
     memset(&hmp_data, sizeof(hmp_data), 0);
     ^

Change-Id: I2d1b49b2591015fab011a150278f6688324411f6
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agommc: dw_mmc: fix the spamming log message
Jaehoon Chung [Thu, 22 Sep 2016 05:12:00 +0000 (14:12 +0900)]
mmc: dw_mmc: fix the spamming log message

When there is no Card which is set to "broken-cd", it's displayed a clock
information continuously. Because it's polling for detecting card.
This patch is fixed this problem.

Change-Id: I035dd0ecf5857f0639d6d1091e958a0552ffba47
Fixes: 65257a0deed5 ("mmc: dw_mmc: remove UBSAN warning in dw_mci_setup_bus()")
Reported-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
7 years agoASoC: max98504A: fix build warning
Inki Dae [Mon, 26 Sep 2016 01:58:22 +0000 (10:58 +0900)]
ASoC: max98504A: fix build warning

This patch fixes below build warnings,
     sound/soc/codecs/max98504a.c:271:1: warning: label 'err_access'
defined but not used [-Wunused-label]
     sound/soc/codecs/max98504a.c:173:15: warning: unused variable
'value' [-Wunused-variable]

Change-Id: I74bbe99e44591052daa05eadcbfaa795fb0e99d4
Signed-off-by: Inki Dae <inki.dae@samsung.com>
7 years agoiommu: exynos-iommu: fix build warning
Inki Dae [Mon, 26 Sep 2016 01:47:37 +0000 (10:47 +0900)]
iommu: exynos-iommu: fix build warning

This fixes below build warning,
drivers/iommu/exynos-iommu.c:389:16: warning: unused variable 'addr'
[-Wunused-variable]

Change-Id: I154ed6bbc79dc75c7de0579141019a2ce441e9a1
Signed-off-by: Inki Dae <inki.dae@samsung.com>
7 years agodrm/panel/s6e3ha2: store nit array pointers in context
Andrzej Hajda [Tue, 13 Sep 2016 06:54:45 +0000 (08:54 +0200)]
drm/panel/s6e3ha2: store nit array pointers in context

Nit arrays are often used by the driver, storing their pointers in
the context simplifies code.

Change-Id: I88700800367112002b57dec2cc066b38a84a7511
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/panel/s6e3ha2: merge brightness setting for normal and HMT mode
Andrzej Hajda [Mon, 12 Sep 2016 10:21:57 +0000 (12:21 +0200)]
drm/panel/s6e3ha2: merge brightness setting for normal and HMT mode

Both functions do the same thing, the only difference is the order
of operations, which is incorrect in case of normal mode.

Change-Id: I2f6850d3b6ae9c0afeafda74756ee2a78166da36
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/panel/s6e3ha2: fix VINT settings
Andrzej Hajda [Mon, 12 Sep 2016 10:18:25 +0000 (12:18 +0200)]
drm/panel/s6e3ha2: fix VINT settings

VINT should be set only for s6e3ha2 panel and should depend linearly on
nit value. The patch merges also VINT setting for normal and HMT mode.

Change-Id: I86383ea6fd1ac84812771c8923483e433698bc18
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/panel/s6e3ha2: merge POC setting commands
Andrzej Hajda [Mon, 12 Sep 2016 09:23:07 +0000 (11:23 +0200)]
drm/panel/s6e3ha2: merge POC setting commands

The patch merges POC setting commands into one function.

Change-Id: Ifbcc0921e9c4cc6da015460e700607e2cdba561a
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/panel/s6e3ha2: merge interface setting commands
Andrzej Hajda [Mon, 12 Sep 2016 09:04:19 +0000 (11:04 +0200)]
drm/panel/s6e3ha2: merge interface setting commands

The patch merges interface setting commands into one function.

Change-Id: Iedb8592413a9f2b1cf47ed1be9576e5afd694336
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/panel/s6e3ha2: merge panel update code into one function
Andrzej Hajda [Mon, 12 Sep 2016 08:55:42 +0000 (10:55 +0200)]
drm/panel/s6e3ha2: merge panel update code into one function

The patch merges panel update sequence into one function and adds
necessary delay.

Change-Id: I056c0288a1200ab43dea5c0184c99601f8d5d625
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/panel/s6e3ha2: implement dynamic ELVSS setting
Andrzej Hajda [Mon, 12 Sep 2016 08:10:07 +0000 (10:10 +0200)]
drm/panel/s6e3ha2: implement dynamic ELVSS setting

ELVSS settings should depend on actual brightness.

Change-Id: Id18fbdfdd8a3e2ddd577add4322aba617af1348b
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/panel/s6e3ha2: refactor temperature setting function
Andrzej Hajda [Fri, 9 Sep 2016 13:12:42 +0000 (15:12 +0200)]
drm/panel/s6e3ha2: refactor temperature setting function

Function setting temperature was named incorrectly and split into two
functions. The patch fixes it and makes the code more readable.

Change-Id: If3588d56b4c5a9aaae833ff84b96ee47171f2bb4
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/panel/s6e3ha2: replace DCS/MCS command codes with macros
Andrzej Hajda [Fri, 9 Sep 2016 10:50:35 +0000 (12:50 +0200)]
drm/panel/s6e3ha2: replace DCS/MCS command codes with macros

Available documentation provides command names or at least command
descriptions for DCS/MCS commands.

Change-Id: I84e5881f18c1a8f6d7cdba2c74f35659b0149139
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/panel/s6e3ha2: implement dynamic AID off ratio setting
Andrzej Hajda [Thu, 8 Sep 2016 13:43:22 +0000 (15:43 +0200)]
drm/panel/s6e3ha2: implement dynamic AID off ratio setting

AID off ratio should be set according to current brightness.

Change-Id: I37094998479aa3fbe88c77767e1779c09b40cf84
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/panel/s6e3ha2: handle max brightness specially
Andrzej Hajda [Thu, 8 Sep 2016 13:39:04 +0000 (15:39 +0200)]
drm/panel/s6e3ha2: handle max brightness specially

The last nit should be treated specially and should be selected
iff max brightness is set.

Change-Id: Ifa58b0f6ced9859485ee727eb296415fa50e4cd0
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/panel/s6e3ha2: store nit index in context
Andrzej Hajda [Thu, 8 Sep 2016 10:59:12 +0000 (12:59 +0200)]
drm/panel/s6e3ha2: store nit index in context

NIT index will be used by other functions, so instead evaluating it
multiple times we will store it in context.

Change-Id: I9e32ce8a8a23b43857a6285790aead27920ba693
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/panel/s6e3ha2: add brightness setting to HMT modes
Andrzej Hajda [Thu, 8 Sep 2016 08:27:49 +0000 (10:27 +0200)]
drm/panel/s6e3ha2: add brightness setting to HMT modes

In HMT mode gamma tables should be calculated differently.
The patch adds code to calculate them in both variants.

Change-Id: I5f3f493bae96113b6195676c443b733c5a0221a1
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/panel/s6e3ha2: move all attributes to backlight device
Andrzej Hajda [Thu, 8 Sep 2016 07:32:27 +0000 (09:32 +0200)]
drm/panel/s6e3ha2: move all attributes to backlight device

It simplifies access attributes from user space.

Change-Id: I83e9359bbd86e82bf386bb1d7040886891009054
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/panel/s6e3ha2: fix brightness to nits mapping
Andrzej Hajda [Wed, 7 Sep 2016 13:15:05 +0000 (15:15 +0200)]
drm/panel/s6e3ha2: fix brightness to nits mapping

Brightness should be linearly mapped to nit values instead of nit indices.
Panel should use gamma index which has corresponding nit value nearest
to expected brightness after re-scaling.

Change-Id: I9bfa6385651b292881a10f8e2972551bdd0008de
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/panel/s6e3ha2: use different tables for s6e3hf2 model
Andrzej Hajda [Wed, 7 Sep 2016 09:50:51 +0000 (11:50 +0200)]
drm/panel/s6e3ha2: use different tables for s6e3hf2 model

s6e3hf2 model differs from s6e3ha2. To provide proper gamma tables
different configuration tables should be used.

Change-Id: I9e1f4637ceae13bfc2b229d7319184fe4cbc0b35
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/panel/s6e3ha2: use Dynamic AID tables
Andrzej Hajda [Tue, 6 Sep 2016 13:45:08 +0000 (15:45 +0200)]
drm/panel/s6e3ha2: use Dynamic AID tables

The patch adds support for dynamically generated gamma tables using
dynamic_aid helpers.

Change-Id: I2124abdda78169f3662f0658b5477e2e8f04ed33
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/panel: add Samsung Dynamic AID helpers
Andrzej Hajda [Tue, 6 Sep 2016 09:35:03 +0000 (11:35 +0200)]
drm/panel: add Samsung Dynamic AID helpers

Dynamic AMOLED Impulse Driving helpers allow to calculate gamma tables
for different brightness levels based on tables specific for given
model of display panel and values written in MTP memory of the panel.

Change-Id: I98de87d78b481f3369ea9952df058126ec513e9b
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/panel/s6e3ha2: remove redundant definition of VINT_STATUS_MAX
Andrzej Hajda [Tue, 6 Sep 2016 09:20:32 +0000 (11:20 +0200)]
drm/panel/s6e3ha2: remove redundant definition of VINT_STATUS_MAX

VINT_STATUS_MAX is equal to size of VINT_TABLE, so it can be replaced
be ARRAY_SIZE macro.

Change-Id: I5c6ee3ec4a9827e844f89d0d85ccb18f785378aa
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/panel/s6e3ha2: fix includes
Andrzej Hajda [Tue, 6 Sep 2016 08:48:22 +0000 (10:48 +0200)]
drm/panel/s6e3ha2: fix includes

The patch removes unnecessary includes an sorts the rest.

Change-Id: I1a021a8cbfdff3009e90f6bfaa14525a584006e7
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/exynos/hdmi: workaround to check invalid modes with attached drm bridge
Seung-Woo Kim [Wed, 7 Sep 2016 01:09:29 +0000 (10:09 +0900)]
drm/exynos/hdmi: workaround to check invalid modes with attached drm bridge

Currently, there is no way to check valid modes for bridge from
user and if the attached drm bridge, mhl adapter, does not support
a mode with fixup, then it is not possible to be set on exynos-hdmi.
So this patch adds workaround to check invalid modes with attached
drm bridge during mode_valid from exynos-hdmi.

Change-Id: I4dcd7edaa1261c1c3ed349c2dcddec226efcc6ec
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoARM: defconfig: odroid: enable CPUFREQ_DT config option
Seung-Woo Kim [Mon, 19 Sep 2016 13:17:54 +0000 (22:17 +0900)]
ARM: defconfig: odroid: enable CPUFREQ_DT config option

To support cpufreq from non big.little arm socs, CPUFREQ_DT shuold
be enabled. So, this patch enables CPUFREQ_DT config option.

Change-Id: Ic964ce630b6e0eeb4480d5f87b9ec32f375ffc0f
Suggested-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoEnable dummy_hcd and FunctionFS in tm2 config.
Krzysztof Opasiak [Mon, 5 Sep 2016 15:24:48 +0000 (17:24 +0200)]
Enable dummy_hcd and FunctionFS in tm2 config.

This is required to run usb host API test suit.

Change-Id: I203ef286bef030ddd359e6e18145b612a7d8dc05
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
7 years agodrm: bridge: sii8620: retry hw reset with i2c failure
Joonyoung Shim [Wed, 31 Aug 2016 09:17:48 +0000 (18:17 +0900)]
drm: bridge: sii8620: retry hw reset with i2c failure

With specific targets, sometimes(almost) i2c read is failed when hdmi
cable is plugged.

[  341.285875] sii8620 7-0039: I2C read of [0x0000] failed with code -6.
[  341.286149] sii8620 7-0039: Error accessing I2C bus, -6.

Retry hw reset operation of sii8620 mhl if i2c read is failed then can
do normal i2c operation. This solution came from android kernel.

Change-Id: Icf9f54eb941e3ac5a8728fb9552b51928578d508
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
7 years agousb: gadget: change the class of MTP interface descriptor
Dongwoo Lee [Mon, 29 Aug 2016 04:30:13 +0000 (13:30 +0900)]
usb: gadget: change the class of MTP interface descriptor

The host fails to recognize tm2(e) as gadget mode when VID is changed, even
though the matching is performed without comparing VID. This patch fixes
this issue by changing the class of MTP interface descriptor.

Change-Id: I75c1ff710c28bb7c911963bce6c8cdb328424b95
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
7 years agobuild: add support for x86_64 host
Seung-Woo Kim [Tue, 30 Aug 2016 04:31:03 +0000 (13:31 +0900)]
build: add support for x86_64 host

For x86_64 host local build, this patch adds prebuilt mkimage from
u-boot and local build script files uses the prebuilt mkimage as
host architecture. The mkimage requires dtc also, but it is already
in scripts/dtc and built as host tool during kernel build,so dtc is
not required prebuilt files.

Change-Id: Id3f734ee39cc1e639bcaff2a7e49ad6d6c66665a
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoarm64: defconfig: tm2: enable SMACK and AUDIT options for NETFILTER
Seung-Woo Kim [Thu, 25 Aug 2016 08:16:03 +0000 (17:16 +0900)]
arm64: defconfig: tm2: enable SMACK and AUDIT options for NETFILTER

To support security check of network packet from Tizen platform,
it is required to enable the configs for SMACK_NETFILTER dependent
on NETWORK_SECMARK and AUDIT of NETFILTER.

Change-Id: I684ce5771dbd6e52ee529ede647d36c6561e549e
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agoARM: defconfig: odroid: enable SMACK and AUDIT options for NETFILTER
Seung-Woo Kim [Thu, 25 Aug 2016 08:02:54 +0000 (17:02 +0900)]
ARM: defconfig: odroid: enable SMACK and AUDIT options for NETFILTER

To support security check of network packet from Tizen platform,
it is required to enable the configs for SMACK_NETFILTER dependent
on NETWORK_SECMARK and AUDIT of NETFILTER.

Change-Id: I9176fcad446ea87f503165c4cf2f3aff3c60ec4f
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agosensors: brcm: bbdpl2: fix log messages to info level with new line
Seung-Woo Kim [Mon, 24 Oct 2016 05:53:59 +0000 (14:53 +0900)]
sensors: brcm: bbdpl2: fix log messages to info level with new line

This patch fixes log messages to info level and adds new line
character to log messages.

Change-Id: I71fe0a46f6b1d5e1c2cd590e8681bcda29004b39
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agosensors: brcm: fix not to send commands to not initialized mcu
Hoegeun Kwon [Tue, 4 Oct 2016 07:49:16 +0000 (16:49 +0900)]
sensors: brcm: fix not to send commands to not initialized mcu

The suspend and resume errors happen when sensorhub mcu was not
initialized. So it needs to check the sensorhub mcu state.

Change-Id: I7d738d2316bbe20922df39c6ddfdf3573bc8984d
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
7 years agoarm64: dts: exynos5433: add sleep state for BCM4773 sensorhub gpios
Hoegeun Kwon [Fri, 2 Sep 2016 02:30:10 +0000 (11:30 +0900)]
arm64: dts: exynos5433: add sleep state for BCM4773 sensorhub gpios

The BCM4773 power pins need to be alive during sleep mode,
because the MCU needs to respond to the external sensors events.

Add a sleep alive state for pins.

 - gpd2-0 (GPS_HUB_EN)
 - gpf2-2 (MCU_AP_INT_2_1.8V)
 - gpf2-3 (AP_MCU_INT_1.8V)

While pins:

 - gpd8-0 (SHUB_SPI_SCK)
 - gpd8-1 (SHUB_SPI_SSN)
 - gpd6-0 (SHUB_SPI_MISO)
 - gpd6-1 (SHUB_SPI_MOSI)

need to be managed when the device goes and resumes from
sleep mode.

Change-Id: If508f5b4526e5de665f76b0adb96ae64779b6eb7
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
7 years agosensors: sensorhub_brcm: fix for compatibility
Seung-Woo Kim [Fri, 26 Aug 2016 07:04:31 +0000 (16:04 +0900)]
sensors: sensorhub_brcm: fix for compatibility

For 32bit compatibility, compat_ioctl should be registered. Also,
32bit built IOCTL value is different from 64bit, then it should be
considered. So this fixes for compatibility with compat_ioctl.

Change-Id: I11c353d4cd39a8ef5014f2b9b2d1f504fda86182
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
7 years agosensors: brcm: use non atomic sleeps instead of atomic delays
Hoegeun Kwon [Wed, 17 Aug 2016 07:19:50 +0000 (16:19 +0900)]
sensors: brcm: use non atomic sleeps instead of atomic delays

Do not use mdelay in non atomic contexts, use the appropriate
*sleep functions instead.

mdelay should be used only in atomic contexts, out from atomic it
keeps looping over the CPU wasting unnecessary resources.

Replace the mdelay's with:

 - usleep_range for 10us - 20ms delays,
 - msleep for over 20ms

Change-Id: Id03238f3918f43cb42c31ef258a12c3e7f4506a5
Reported-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
7 years agoarm64: tizen_tm2_defconfig: enable BCM4773 version 2 sensorhub for tm2(e)
Hoegeun Kwon [Wed, 17 Aug 2016 07:17:38 +0000 (16:17 +0900)]
arm64: tizen_tm2_defconfig: enable BCM4773 version 2 sensorhub for tm2(e)

The CONFIG_SENSORS_SSP_BBD_VER2 flag enables the version 2 of the
sensorhub in the config file.

Change-Id: I21984f496e063f3cb727a8f76f6e189cafc2bd71
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
7 years agosensors: brcm: bbdpl2: add new version (v2) of the BCM4773 sensorhub
Hoegeun Kwon [Thu, 18 Aug 2016 08:46:19 +0000 (17:46 +0900)]
sensors: brcm: bbdpl2: add new version (v2) of the BCM4773 sensorhub

Commit, "sensors: add support for the BCM 4773 sensorhub" has
added support for the BCM4773. Since then the firmware interface
has been updated to a new version: version 2.

Add the second version of the BCM4773 sensorhub and rename the
previous version configuration flags to VER1.

Change-Id: Ie40d4b41fe4c3491567246392d2fee1d7c9cad48
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
7 years agoarm64: tizen_tm2_defconfig: Enables BCM4773 sensorhub for tm2 board
Hoegeun Kwon [Wed, 17 Aug 2016 06:59:42 +0000 (15:59 +0900)]
arm64: tizen_tm2_defconfig: Enables BCM4773 sensorhub for tm2 board

Add support for the BCM4773 in the exynos5433 tm2 and tm2e
boards as spi_0 nodes.

Change-Id: I765f87ee868dfe8d4155a42bf895b09c35cbb85b
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
7 years agoarm64: dts: exynos5433: add BCM4773 sensorhub dt node for tm2(e)
Hoegeun Kwon [Wed, 17 Aug 2016 06:58:31 +0000 (15:58 +0900)]
arm64: dts: exynos5433: add BCM4773 sensorhub dt node for tm2(e)

Add support for the BCM4773 in the exynos5433 tm2 and tm2e
boards as spi_0 nodes.

Move the GPIO initialization pins in the board section.

Change-Id: Ia4567598527d5169c6669c791fcf40e5d7693b70
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
7 years agosensors: add support for the BCM 4773 sensorhub
Hoegeun Kwon [Wed, 17 Aug 2016 06:57:23 +0000 (15:57 +0900)]
sensors: add support for the BCM 4773 sensorhub

The Broadcom BCM4773 is a microcontroller that works as a
sensorhub. It's placed in between sensors and AP.

It's connected to the AP through SPI bus and has support for
a range of sensors:

 - icm20610
 - yas532
 - bmp182
 - tmg399x
 - mobeam

The config file provides a "choice" option in order to choose
between different targets, S333 and TM2(e).

The BCM4773 it can handle GPS and the gps driver is the main
entry point to the sensorhub driver as an SPI device.

Change-Id: I07f676459cf53cbb88d75cac0459b5e374f353a5
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
7 years agosensors: Kconfig: move the ssp and ssp_sensorhub in upper directory
Hoegeun Kwon [Wed, 17 Aug 2016 08:31:22 +0000 (17:31 +0900)]
sensors: Kconfig: move the ssp and ssp_sensorhub in upper directory

The CONFIG_SSP and SENSORS_SSP_SENSORHUB are flags not strictly
related to the STM sensorhub. Put them outside from the
stm_rinato directory to an upper level to be ready to relate to
other sensorhubs.

Change-Id: I0334080c699136659842746fd06dcbbdeeccc0c0
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
7 years agosensors: stm_rinato: Kconfig: remove unused SHTC1 driver configuration
Hoegeun Kwon [Wed, 24 Aug 2016 01:03:04 +0000 (10:03 +0900)]
sensors: stm_rinato: Kconfig: remove unused SHTC1 driver configuration

The STM sensorhub doesn't have the shtc1 compass sensor driver.
Remove it from the related configuration file.

Change-Id: Ie37da88344b975d61a379b40d8175e944f5a6b71
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
7 years agodrm/panel/s6e3ha2: add panel id read code
Andrzej Hajda [Fri, 19 Aug 2016 11:46:57 +0000 (13:46 +0200)]
drm/panel/s6e3ha2: add panel id read code

The patch adds helper to DCS read commands and reporting Display ID.

Change-Id: I9924bfd1ef18130fd36b6120cec0cd6c9dcfc279
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/panel/s6e3ha2: remove spare underscore
Andrzej Hajda [Thu, 18 Aug 2016 15:41:48 +0000 (17:41 +0200)]
drm/panel/s6e3ha2: remove spare underscore

Coding style fix.

Change-Id: I9924bfd1ef18130fd36b6120cec0cd6c9dcfc278
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/panel/s6e3ha2: use internal helper instead of mipi_dsi_dcs_write_buffer
Andrzej Hajda [Thu, 18 Aug 2016 15:34:27 +0000 (17:34 +0200)]
drm/panel/s6e3ha2: use internal helper instead of mipi_dsi_dcs_write_buffer

Since driver have its own helper to write dcs commands there is no need
to call mipi-dsi helpers.

Change-Id: I9924bfd1ef18130fd36b6120cec0cd6c9dcfc277
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agodrm/panel/s6e3ha2: switch to mipi_dsi_dcs_write_buffer helper
Andrzej Hajda [Thu, 18 Aug 2016 15:05:32 +0000 (17:05 +0200)]
drm/panel/s6e3ha2: switch to mipi_dsi_dcs_write_buffer helper

mipi_dsi_dcs_write_buffer is more suitable helper than mipi_dsi_dcs_write.
It does not replicate buffers and is less prone to off-by-one errors.

Change-Id: I9924bfd1ef18130fd36b6120cec0cd6c9dcfc276
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
7 years agosensors: stm_rinato: Kconfig: remove unused YAS532 driver configuration
Hoegeun Kwon [Wed, 17 Aug 2016 08:23:24 +0000 (17:23 +0900)]
sensors: stm_rinato: Kconfig: remove unused YAS532 driver configuration

The STM sensorhub doesn't have the yas532 compass sensor driver.
Remove it from the related configuration file.

Change-Id: Id5334412ec6c7db53cb016ce7c0ba4367ca1d8a5
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
7 years agoclk: samsung: set SPI0 ioclk and slck as ignore unused
Hoegeun Kwon [Wed, 17 Aug 2016 06:54:51 +0000 (15:54 +0900)]
clk: samsung: set SPI0 ioclk and slck as ignore unused

There is no one who handles the ioclk and sclk for the SPI0 bus,
in order to be able to use the SPI 0 bus, set them as ignore
unused by using the CLK_IGNORE_UNUSED flag in the gate
declaration.

The Exynos5433 SoC needs to have all the clocks enabled, they get
all disabled even if one of them is disabled.

Change-Id: I57a625f20c40b4d76046da1a8caf5976454dda1b
Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>