platform/hal/backend/artik/device-artik.git
2 years agothermal: rename device_thermal_e to hal_device_thermal_e 45/262045/1 accepted/tizen_unified tizen accepted/tizen/6.5/unified/20211028.115258 accepted/tizen/unified/20210804.085633 submit/tizen/20210802.064402 submit/tizen_6.5/20211028.163201 submit/tizen_6.5/20220504.075813 submit/tizen_6.5/20220504.080738 tizen_6.5.m2_release
Youngjae Cho [Mon, 2 Aug 2021 05:29:57 +0000 (14:29 +0900)]
thermal: rename device_thermal_e to hal_device_thermal_e

Change-Id: I02d8d4f3a1f43a9b15e1b6e96aec09895b3a0b54
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2 years agoboard: fix parameter of get_device_serial_number() 47/260047/1 accepted/tizen/unified/20210621.123219 submit/tizen/20210618.075427
Youngjae Cho [Fri, 18 Jun 2021 02:52:45 +0000 (11:52 +0900)]
board: fix parameter of get_device_serial_number()

Change-Id: I33b2e37cc1b7b48c6cac7145d87e3077d46e7009
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2 years agoAdd libsyscommon to required package to provide linker flag 72/259972/1
Youngjae Cho [Thu, 17 Jun 2021 05:22:25 +0000 (14:22 +0900)]
Add libsyscommon to required package to provide linker flag

For haltest, it cannot run by itself because it is not able to resolve
sys_get_int() symbol of libsyscommon. Therefore, provide ldflag to
locate libsyscommon.so

Change-Id: Ic9b4cedce88c888a9925264cfd22ff3504ee5193
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2 years agoboard: renaming get_device_serial_number 85/259785/1 accepted/tizen/unified/20210615.120354 submit/tizen/20210614.021455
Youngjae Cho [Mon, 14 Jun 2021 08:34:53 +0000 (17:34 +0900)]
board: renaming get_device_serial_number

Change-Id: I0ca0e340484a563541283501b87d80456c0ecdb7
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2 years agoInitialization for platform/hal/backend/artik/device-artik 79/259379/1 accepted/tizen/unified/20210607.124302 submit/tizen/20210607.051609
Hyotaek Shim [Mon, 7 Jun 2021 05:05:40 +0000 (14:05 +0900)]
Initialization for platform/hal/backend/artik/device-artik

Change-Id: Ie68905de84fbcd1068059cbd07b0e8764349f229
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
3 years agoFix coverity issue submit/tizen/20210607.045000
Youngjae Cho [Wed, 24 Mar 2021 06:35:39 +0000 (15:35 +0900)]
Fix coverity issue

Change-Id: Ifaca1fa283a5afaada79945e012fae8a11ce3d1f
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agomemory: change return value when node is not supported
Yunmi Ha [Fri, 12 Mar 2021 02:37:18 +0000 (11:37 +0900)]
memory: change return value when node is not supported

Change-Id: I4f4c4acc1b19c9b74f211c96205b24c1ddda129e
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agomemory: add new halapi backend
Yunmi Ha [Thu, 18 Feb 2021 06:19:32 +0000 (15:19 +0900)]
memory: add new halapi backend

Change-Id: I56283c733ed215637fc64416f0de03f6e269d92b
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agoMove common macro to device-common
lokilee73 [Mon, 15 Feb 2021 02:14:30 +0000 (11:14 +0900)]
Move common macro to device-common

Change-Id: I43143884efe740b42e9b04e0f9f682c17de2f6f6
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
3 years agoApply new hal-backend-common-usb_gadget.h header
INSUN PYO [Wed, 10 Feb 2021 03:26:37 +0000 (12:26 +0900)]
Apply new hal-backend-common-usb_gadget.h header

Change-Id: I522e916033c9bb7865ece58641d199a53fe48827

3 years agospec: remove unused pkgconfig(libudev) build dependency
INSUN PYO [Wed, 3 Feb 2021 06:35:28 +0000 (15:35 +0900)]
spec: remove unused pkgconfig(libudev) build dependency

Change-Id: I5059b296de19ba403b16bf46541da1cc35f631ea

3 years agoApply rpm macro of hal install path
Yunmi Ha [Tue, 26 Jan 2021 05:50:08 +0000 (14:50 +0900)]
Apply rpm macro of hal install path

Change-Id: I8f3b380e545446751d43074e53a3f02ef7d797ce
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agousb_gadget: apply next HAL architecture (hal api + backend)
INSUN PYO [Tue, 19 Jan 2021 05:35:05 +0000 (14:35 +0900)]
usb_gadget: apply next HAL architecture (hal api + backend)

Change-Id: I839eb4fd883facb066ab5730fda063f6032b3c0a

3 years agoUse file library of libsyscommon
Yunmi Ha [Tue, 19 Jan 2021 06:11:15 +0000 (15:11 +0900)]
Use file library of libsyscommon

Change-Id: I48c998553b56c8ee70886b40c88afa7c26850aeb
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agoRework led hal
lokilee73 [Mon, 18 Jan 2021 01:52:48 +0000 (10:52 +0900)]
Rework led hal

Change-Id: Iacc7d4aeb99039c47b05a5fee1d37d1eeab392e8
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
3 years agoAdd FEATURE_DLOG and change LOG_TAG
lokilee73 [Thu, 14 Jan 2021 07:35:20 +0000 (16:35 +0900)]
Add FEATURE_DLOG and change LOG_TAG

Change-Id: Ia9dbb0510d59d0c96bf66bbc9970d7a1040daa9e
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
3 years agohaptic: apply next HAL architecture (hal api + backend)
Yunmi Ha [Thu, 14 Jan 2021 04:23:21 +0000 (13:23 +0900)]
haptic: apply next HAL architecture (hal api + backend)

Change-Id: Ideaad92b19eec1b417f3c2a73146b0cfb1dbd2dc
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agoApply next HAL architecture (hal api + backend)
lokilee73 [Wed, 13 Jan 2021 05:50:32 +0000 (14:50 +0900)]
Apply next HAL architecture (hal api + backend)

Change-Id: Ib2a0884986e20d4ef5a65651e5bd0a872c666f13
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
4 years agoRemove unnecessary #ifdef
INSUN PYO [Mon, 6 Apr 2020 22:17:25 +0000 (07:17 +0900)]
Remove unnecessary #ifdef

Change-Id: I7cdb2d29af1080623a3f9af4aa5df0fdd82951f3

4 years agoRevert "Fix coverity issue"
Hyotaek Shim [Mon, 17 Feb 2020 06:28:39 +0000 (06:28 +0000)]
Revert "Fix coverity issue"

This reverts commit 74fcdd2aa28ea28cd6c91a26673d859fcbad7ebf.

Change-Id: I1f0d89cedddb2f67be79b63117a972bb04fd9c77

4 years agoFix coverity issue
Youngjae Cho [Thu, 13 Feb 2020 08:34:57 +0000 (17:34 +0900)]
Fix coverity issue

CID 1095159 (#1 of 1): Resource leak (RESOURCE_LEAK)

Change-Id: I185433f9079dbffa69f8b2673fdbe380f1a60804
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoRemove unused module
INSUN PYO [Fri, 7 Feb 2020 07:17:19 +0000 (16:17 +0900)]
Remove unused module

Change-Id: Ibdb713172b157e8063de24484a8b276522e40a7d

4 years agoAdd build option -Wall -Werror
Youngjae Cho [Wed, 5 Feb 2020 08:01:23 +0000 (17:01 +0900)]
Add build option -Wall -Werror

Change-Id: I40035cde88b5549f0300ed61661982718cf9c047
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
5 years agoAdd thermal module for device_thermal_get_temperature
lokilee73 [Tue, 8 Jan 2019 08:26:00 +0000 (17:26 +0900)]
Add thermal module for device_thermal_get_temperature

Change-Id: Idaec06e25703d32f773a6f0f7a984ccea8731d61
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoRemove executable flag from non-executable files
lokilee73 [Thu, 27 Dec 2018 02:06:44 +0000 (11:06 +0900)]
Remove executable flag from non-executable files

Change-Id: Idee810863ae5750b64617b091dcb9d8e2964ddfa
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agousb_client: Move common code to hwcommon library
Paweł Szewczyk [Thu, 28 Jun 2018 11:09:48 +0000 (13:09 +0200)]
usb_client: Move common code to hwcommon library

Change-Id: I42d5f0f48f1fc0a2600c3532464e8b1f792b3c26
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
5 years agoMove shared files to hwcommon package
Paweł Szewczyk [Thu, 28 Jun 2018 10:58:23 +0000 (12:58 +0200)]
Move shared files to hwcommon package

Change-Id: Ieafe89155a1a4b54bb5368fae9b8aef24f96a248
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
5 years agoMove systemd-related code to common library
Paweł Szewczyk [Thu, 28 Jun 2018 10:20:28 +0000 (12:20 +0200)]
Move systemd-related code to common library

Change-Id: I3de92bdc9ec5308cff875f30c22d70d307e00002
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
5 years agoAdd board HAL
Paweł Szewczyk [Thu, 28 Jun 2018 10:58:30 +0000 (12:58 +0200)]
Add board HAL

Change-Id: Ifcc9256bb722b32f8c3db3bdb873a4e6c88c8ef8
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
5 years agousb_gadget: Move common code to hwcommon
Paweł Szewczyk [Thu, 28 Jun 2018 10:27:53 +0000 (12:27 +0200)]
usb_gadget: Move common code to hwcommon

Change-Id: Icc1e965e889d9d73667198120667bd55fbea0df7
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
5 years agoModify blinkm_led_stop_script
lokilee73 [Wed, 27 Jun 2018 02:34:22 +0000 (11:34 +0900)]
Modify blinkm_led_stop_script

peripherial_i2c_byte_write() was removed, So replaced it with peripherial_i2c_write().

Change-Id: I4fa3388489e23fdedc7e2c95c23272e65c6a949a
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoAdd display_get_state to remove dependency with enlightenment
lokilee73 [Tue, 19 Jun 2018 08:17:10 +0000 (17:17 +0900)]
Add display_get_state to remove dependency with enlightenment

Change-Id: I826e14589707f1a2e58c6105b7658ddbb4d8a108
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agousb_gadget: Retrieve device serial number
Paweł Szewczyk [Tue, 15 May 2018 15:10:05 +0000 (17:10 +0200)]
usb_gadget: Retrieve device serial number

Serial number is retrieved from
/sys/firmware/devicetree/base/serial-number file.

Change-Id: I3e8251bd1ce916b72d45102017b3533420ef9f54
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
6 years agoChange sdb+acm configuration's idProduct
Paweł Szewczyk [Thu, 19 Apr 2018 12:34:09 +0000 (14:34 +0200)]
Change sdb+acm configuration's idProduct

Change-Id: I8b8381c910da9d7ce4641515389ca2b1c0b8fb3b
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
6 years agoAdd .gitignore
Hyotaek Shim [Thu, 19 Apr 2018 06:52:20 +0000 (15:52 +0900)]
Add .gitignore

Change-Id: Ic21080f08ae17cc5983c3b79708d72067d7ad136
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoAdd sdb+acm configuration
Paweł Szewczyk [Wed, 18 Apr 2018 11:48:45 +0000 (13:48 +0200)]
Add sdb+acm configuration

Change-Id: I59e70efcf7c6126dce60efeadbb7b75940332fdb
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
6 years agousb_cfs_client: Enable gadget at reconfiguration
Paweł Szewczyk [Tue, 10 Apr 2018 14:56:20 +0000 (16:56 +0200)]
usb_cfs_client: Enable gadget at reconfiguration

Extcon support for artik is bound to the gadget, so we need to need to
enable it to start monitoring usb connection. This does not do much
harm, but can cause some functionfs daemons to run long before they are
actually needed.

Change-Id: I7a5eaacaa476539a7cf1c237f811163be4d9b7d5
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
6 years agoAdd error logs
Paweł Szewczyk [Mon, 9 Apr 2018 09:44:18 +0000 (11:44 +0200)]
Add error logs

Change-Id: Ibadac25cdec2972a172e8bb893e3a010c4659eb6
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
6 years agousb: Assign new functions to legacy gadget
Paweł Szewczyk [Thu, 15 Mar 2018 17:51:51 +0000 (18:51 +0100)]
usb: Assign new functions to legacy gadget

Change-Id: I86df0d0db29813781c8b49dc111f726b24b82041
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
6 years agousb: patches to selectively support both slp and functionfs
INSUN PYO [Wed, 14 Mar 2018 01:23:57 +0000 (10:23 +0900)]
usb: patches to selectively support both slp and functionfs

If /sys/class/usb_mode/usb0/enable exists, it is slp usb_hal.
Otherwise it is configfs usb_hal.

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I8e6b74ffbc6287fe7b5f0a7ab475edff16b2fd88

6 years agoFix minor issues
Paweł Szewczyk [Wed, 21 Mar 2018 16:59:01 +0000 (17:59 +0100)]
Fix minor issues

Change-Id: I78dd77f031b4cda871a758687d4518a5ac22dc43
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
6 years agousb_client: fix bug
INSUN PYO [Wed, 14 Mar 2018 04:45:36 +0000 (13:45 +0900)]
usb_client: fix bug

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I70670d18ae5ae128ef0785ac79f220e3aa5c42b0
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
6 years agoAdd support for FunctionFS-based function
Krzysztof Opasiak [Fri, 2 Mar 2018 20:40:56 +0000 (21:40 +0100)]
Add support for FunctionFS-based function

Both mtp-responder and sdbd have FunctionFS backend now what
allows to use them in ConfigFS implementation of HAL.
We use systemd socke activation with special socket type
which starts the service when needed. There is an assumption
that each of those services provides a suitable .socket file.

Change-Id: Ib073ac10f6d12bb75f20e4b9f3961bcdbd21520c
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
6 years agoFix getting ints from sysfs
Paweł Szewczyk [Wed, 28 Feb 2018 15:08:21 +0000 (16:08 +0100)]
Fix getting ints from sysfs

Some integers are represented in hex, without leading 0x.

Change-Id: If6b950a24496eae52a34623b2fa9735390e26795
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
6 years agoStart services for legacy functions
Paweł Szewczyk [Fri, 6 Apr 2018 13:53:22 +0000 (15:53 +0200)]
Start services for legacy functions

Change-Id: Ie5913698b135e45f3e55267d6830f2aa996e96a4
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
6 years agoAdd implementation of usb_client HAL using libusbgx
Krzysztof Opasiak [Thu, 24 Nov 2016 16:12:38 +0000 (17:12 +0100)]
Add implementation of usb_client HAL using libusbgx

Currently this implementation doesn't support FFS based functions
so it is disabled by default to not casue sdb connection failures.

Change-Id: Ie7e9a3c1a8e3e430d625ffb24df3d16aa7074682
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
6 years agousb gadget: Fix default value of bcdDevice
Krzysztof Opasiak [Wed, 24 Jan 2018 11:57:01 +0000 (12:57 +0100)]
usb gadget: Fix default value of bcdDevice

0xffff is not a correct BCD value thus let's replace it with 0x0100.

Change-Id: I6312575da80a2670fcbb62db79d2ed4d040ae367
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
6 years agoRemove unnecessary HAL module
INSUN PYO [Thu, 19 Oct 2017 09:51:14 +0000 (09:51 +0000)]
Remove unnecessary HAL module

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I469cf83da514c2f55916f41506bba7787853ba9d

6 years agoudev: Increase udev monitor buffer size
INSUN PYO [Wed, 27 Sep 2017 04:55:02 +0000 (13:55 +0900)]
udev: Increase udev monitor buffer size

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I0388c075d8a22639100b3b0a41b9bf1d9581ecba

6 years agoMerge "Common: initialize and modify exception for n_configs" into tizen
lokilee73 [Tue, 26 Sep 2017 04:03:29 +0000 (04:03 +0000)]
Merge "Common: initialize and modify exception for n_configs" into tizen

6 years agoCommon: initialize and modify exception for n_configs
lokilee73 [Tue, 26 Sep 2017 03:58:58 +0000 (12:58 +0900)]
Common: initialize and modify exception for n_configs

Change-Id: I230d273c5ca65874f67164a7063964577b53e498
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoModification of coding rule violation
INSUN PYO [Tue, 12 Sep 2017 01:53:29 +0000 (10:53 +0900)]
Modification of coding rule violation

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I21e21fb7444722f7559b3dc8de7b2540e00e7ef8
(cherry picked from commit b688a4a641f3d0582cd9a9ffd0bf66254fbf3294)

6 years agoremove build warning
INSUN PYO [Mon, 11 Sep 2017 04:21:42 +0000 (13:21 +0900)]
remove build warning

Touchscreen_init calls the open function of hal at the beginning of the boot with the call stack below.
So the open function of hal is never called at the same time in multi-thread.

Therefore, we can use safely readdir in deviced.

0  touchscreen_init
1  0x2a00b02c in devices_init (data=0x0) at /usr/src/debug/deviced-2.0.0/src/core/devices.c:102
2  0x2a00e424 in deviced_main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/deviced-2.0.0/src/core/main.c:93
3  0x2a0078f4 in main (argc=1, argv=0xbefffe64) at /usr/src/debug/deviced-2.0.0/src/core/main.c:123

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Ieb4ded94379c01592cabd85a5ed6eb525042bc97
(cherry picked from commit 4a8b1ec8da47eb05d58d1b67fcb678cc7755d27e)

6 years agoled: Add LED HAL interface for ARTIK blinkm led device
scott park [Wed, 26 Jul 2017 12:04:57 +0000 (21:04 +0900)]
led: Add LED HAL interface for ARTIK blinkm led device

This is the initial implementation of LED HAL using PIO interface.
The implemeted API is set_state.

Change-Id: I7d9fbaf6b990ea886fe736046686e070d761adcd
Signed-off-by: scott park <scott.park@dignsys.com>
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
7 years agousb client: do not set serial
taeyoung [Thu, 29 Sep 2016 10:09:38 +0000 (19:09 +0900)]
usb client: do not set serial

The serial is used to distinguish devices for testing.
Thus the serial is not set.

Change-Id: I49b139878c68ac8769eb7d7f5d1424145eb78dd7
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoAdd USB config HAL implementation for slp-gadget
taeyoung [Fri, 9 Sep 2016 11:30:02 +0000 (20:30 +0900)]
Add USB config HAL implementation for slp-gadget

This implementation of USB config HAL allows to apply
abstract gadget description received from USB gadget HAL
to USB gadget subsystem in Kernel via slp-gadget sysfs
interface.

Change-Id: I3a621c9af78339b582bb46a5c3939bd52ab3e6d2
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
7 years agoAdd USB gadget HAL implementation
taeyoung [Fri, 9 Sep 2016 11:27:41 +0000 (20:27 +0900)]
Add USB gadget HAL implementation

USB gadget HAL is an abstraction layer which translates
set of functions into full USB gadget description specific
for this particular device.

Change-Id: I41d38c3d6dfd0c732b3c3a22b71713069618c309
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
7 years agocommon: add libudev dependency
taeyoung [Mon, 5 Sep 2016 02:38:11 +0000 (11:38 +0900)]
common: add libudev dependency

- Add libudev dependency explicitly

Change-Id: I89ebd7a66e800d1a66224143620d440cc3991129
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agodisplay: return raw brightness value
taeyoung [Thu, 7 Jul 2016 01:42:02 +0000 (10:42 +0900)]
display: return raw brightness value

- The brightness value from driver is returned to device daemon.
  device daemon will calculate it for users

Change-Id: I8823352e0b3f85c3b563c75725e0e8b46aea7841
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agobattery: change sysfw nodes according to the artik driver
taeyoung [Thu, 7 Jul 2016 08:33:23 +0000 (17:33 +0900)]
battery: change sysfw nodes according to the artik driver

- Artik driver is little bit different with other devices.
  Thus HAL needs to be changed according to the artik driver.

Change-Id: I9252da1658a9bbfec60f954e384adc2aac688a2f
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoInitial update for artik device-manager-plugin
wansu.yoo [Fri, 17 Jun 2016 09:07:51 +0000 (18:07 +0900)]
Initial update for artik device-manager-plugin

Change-Id: I42640d91a5509f755cdd99a1ab4f5ad55cc22573
Signed-off-by: wansu.yoo <wansu.yoo@samsung.com>
7 years agoInitial empty repository
Jinkun Jang [Fri, 17 Jun 2016 07:36:58 +0000 (00:36 -0700)]
Initial empty repository