platform/hal/backend/tm1/device-tm1.git
4 years agoDelete duplicate code
Youngjae Cho [Thu, 1 Aug 2019 08:02:34 +0000 (17:02 +0900)]
Delete duplicate code

Change-Id: I1d97f95b9f0256e01ec24c3c1c68323931d8a46b
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoAdd functions that fetch serial, revision information
Youngjae Cho [Tue, 30 Jul 2019 08:39:54 +0000 (17:39 +0900)]
Add functions that fetch serial, revision information

Change-Id: If15ec537993dc8a909faf21793251dc7f301fc1c
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
5 years agoFix build error
Hyotaek Shim [Wed, 27 Mar 2019 12:05:08 +0000 (21:05 +0900)]
Fix build error

Change-Id: Ic07cd952e37de96da16752fbd49f0caca7af86dd
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
5 years agoRename LICENSE to LICENSE.Apache-2.0
Hyotaek Shim [Wed, 27 Mar 2019 11:43:42 +0000 (20:43 +0900)]
Rename LICENSE to LICENSE.Apache-2.0

Change-Id: I60da21886954edf80aace16825726cc1958a045b
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
5 years agoRename 61-tizen-video-device.rules to 61-video.rules
Hyotaek Shim [Tue, 26 Mar 2019 09:02:46 +0000 (18:02 +0900)]
Rename 61-tizen-video-device.rules to 61-video.rules

Change-Id: Ieb5a9d4003284ae5d554a5db5dcda3ce6541709c
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
5 years agoChange camera node permission to priv_camera
Seung-Woo Kim [Tue, 19 Mar 2019 06:32:12 +0000 (15:32 +0900)]
Change camera node permission to priv_camera

From security-config, camera needs to be set with priv_camera. So
change camera node permission.

Change-Id: I383517c41dce64b4817ad22d1751a17e5ba05502
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agoAdd thermal path for AP and Battery
lokilee73 [Fri, 4 Jan 2019 12:53:56 +0000 (21:53 +0900)]
Add thermal path for AP and Battery

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

Change-Id: I035690c54c4383b6b5bb41c1e0fc9a77818b57ff
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoChange thermal_get_state to thermal_get_info
lokilee73 [Wed, 26 Dec 2018 11:16:31 +0000 (20:16 +0900)]
Change thermal_get_state to thermal_get_info

Change-Id: I06f91170f755365294a49c52f7e3758a33437613
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoAdd missing dependency for udev
Paweł Szewczyk [Fri, 17 Aug 2018 10:42:37 +0000 (12:42 +0200)]
Add missing dependency for udev

Change-Id: I57921a3ba89424c77d1daadc76e823fb217ba7b0
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
5 years agoAdd board API
Monika Zielinska [Wed, 4 Jul 2018 09:41:10 +0000 (11:41 +0200)]
Add board API

Change-Id: I4fb066365f42db11e72d74dd879e2969c45878a6
Signed-off-by: Monika Zielinska <m.zielinska3@samsung.com>
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agousb_client: Move common code to hwcommon library
Paweł Szewczyk [Thu, 28 Jun 2018 12:06:41 +0000 (14:06 +0200)]
usb_client: Move common code to hwcommon library

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

Change-Id: I110a8ccd4241b84f7d14889770958cb704534c5f
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:30:32 +0000 (12:30 +0200)]
usb_gadget: Move common code to hwcommon

Change-Id: Ib08fc32a7f0ab7e41c8fa0b0036d7c35bcde3616
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
5 years agoAdd voltage and temperature data in uevent
lokilee73 [Tue, 15 May 2018 02:34:32 +0000 (11:34 +0900)]
Add voltage and temperature data in uevent

Change-Id: I5238c313804d2cda6ebd1ca30b6eba32d1fdfedb
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoFix default bcdDevice to valid value
Paweł Szewczyk [Thu, 7 Jun 2018 10:19:08 +0000 (12:19 +0200)]
Fix default bcdDevice to valid value

The bcdDevice field should be in format 0xJJMN, where JJ is major
version number, M is the minor version number and N is the stub minor
version number. The numbers are binary-coded decimals (as bcd name
suggests) and 0xffff is not a valid value.

Change-Id: Ia4adcd1cdeee232aa4c32e31231d7fd66f61a1e7
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
5 years agoAdd .gitignore
Hyotaek Shim [Tue, 12 Jun 2018 08:04:26 +0000 (17:04 +0900)]
Add .gitignore

Change-Id: I9d33820b10db4db0b496b8d15dfeb15bf9ced927
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
5 years agoAdd display_get_state to remove dependency with enlightenment
lokilee73 [Tue, 12 Jun 2018 02:02:28 +0000 (11:02 +0900)]
Add display_get_state to remove dependency with enlightenment

Change-Id: Icd681534b54ceda927c8563d7622bade37047755
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoudev: Increase udev monitor buffer size
INSUN PYO [Wed, 27 Sep 2017 05:20:59 +0000 (14:20 +0900)]
udev: Increase udev monitor buffer size

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

6 years agoremove build warning
lokilee73 [Fri, 8 Sep 2017 07:03:04 +0000 (16:03 +0900)]
remove build warning

Touchscreen_init calls the open function of hal at the begining 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

Change-Id: Iee6fcde249df15a73723d7ae1ffce7c68c93b9ad
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
(cherry picked from commit 042bfd00d4596e55e59ff8d7d1ab1896b07ee91a)

7 years agobattery: remove meaningless logs
taeyoung [Thu, 29 Dec 2016 07:16:01 +0000 (16:16 +0900)]
battery: remove meaningless logs

Change-Id: Icd4656a9cafcfafbb0f1e569bdd6b2e1f96c666d
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoMerge branch 'tizen_3.0' into tizen
taeyoung [Thu, 29 Dec 2016 02:04:50 +0000 (11:04 +0900)]
Merge branch 'tizen_3.0' into tizen

Signed-off-by: taeyoung <ty317.kim@samsung.com>
Change-Id: I427628bdbc596c6dd5af731f3f75654bb25087a4

7 years agocommon: turn off the cmake verbose option
taeyoung [Thu, 22 Dec 2016 07:00:09 +0000 (16:00 +0900)]
common: turn off the cmake verbose option

Change-Id: I0f7d56da69b9a9b9f41fff899699dbb987e510b7
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agothermal: remove unused variable
taeyoung [Thu, 22 Dec 2016 06:58:02 +0000 (15:58 +0900)]
thermal: remove unused variable

Change-Id: I6fe077f437a40cb0d592a8da215d76db0fb83b43
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agocpu: add cpu boosting operation
taeyoung [Fri, 16 Dec 2016 07:00:29 +0000 (16:00 +0900)]
cpu: add cpu boosting operation

Currently, the code is experimental. The HAL sends information
via socket, and TRM runs cpu boosting

Change-Id: Ida44cede55252e1e82a543f990cf8d2c4eb01ae0
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoexternal connection: add usb otg event
taeyoung [Mon, 28 Nov 2016 13:46:10 +0000 (22:46 +0900)]
external connection: add usb otg event

usb otg event is related with otg connector.

Change-Id: Ic6ba3cdad611427eb8e64ee6338bff7bab5c9d97
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agothermal: adjust temparature for thermal notification
taeyoung [Tue, 29 Nov 2016 04:21:41 +0000 (13:21 +0900)]
thermal: adjust temparature for thermal notification

- Warning temparature is 75. If the temparature is
  changed to 85 or more, that is the critical status.

Change-Id: I4a99b332c23db2be4c0532603ff166d778fecca2
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agothermal: fix to read and parse the contents of the sysfs
taeyoung [Wed, 23 Nov 2016 08:20:37 +0000 (17:20 +0900)]
thermal: fix to read and parse the contents of the sysfs

Change-Id: Ic884fb7d48bc64dc02d9e009fb5887a5c8aa9905
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agothermal: add thermal HAL
taeyoung [Mon, 21 Nov 2016 10:28:22 +0000 (19:28 +0900)]
thermal: add thermal HAL

Thermal HAL is newly added.

Change-Id: I8fe3937422360df0edbb793c7f44c5002552e9f0
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agochecking unsupported usb function combination.
Kunhoon Baik [Tue, 11 Oct 2016 04:14:51 +0000 (13:14 +0900)]
checking unsupported usb function combination.

Change-Id: Iaa88182ddc6e4b7de7fee606fb6deb86252932ea

7 years agousb client: do not set serial
taeyoung [Thu, 29 Sep 2016 10:12:16 +0000 (19:12 +0900)]
usb client: do not set serial

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

Change-Id: I1338e0d08eb504709ea38a64ed4e2664d06beac0
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: Ia201fc660607ab703da46049da562c3fb46364fe
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: I8119ffadaf8887b159e842c6545cf9aadba22c1f
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
7 years agocommon: add libudev dependency
taeyoung [Mon, 5 Sep 2016 02:34:39 +0000 (11:34 +0900)]
common: add libudev dependency

- Add libudev dependency explicitly

Change-Id: I0373f7b54c24a3838912ef65299717092ddfe502
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agocommon: apply Tizen coding rule
taeyoung [Thu, 11 Aug 2016 23:54:34 +0000 (08:54 +0900)]
common: apply Tizen coding rule

- Space is required before "("

Change-Id: Iad26aaa7a9c1db98b6a3d3d6bbcaa246398ad825
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoMerge "display: return raw brightness value" into tizen
taeyoung [Wed, 3 Aug 2016 05:15:27 +0000 (22:15 -0700)]
Merge "display: return raw brightness value" into tizen

7 years agolegacy: remove legacy codes
taeyoung [Thu, 21 Jul 2016 06:31:35 +0000 (15:31 +0900)]
legacy: remove legacy codes

- The legacy codes were used with Tizen 2.4.
  However, Tizen 3.0 uses HAL, and thus the codes
  are useless.

Change-Id: I0a83ee16cac7d9e145f04dbafe613dd64cb36669
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agodisplay: return raw brightness value
taeyoung [Thu, 7 Jul 2016 01:18:22 +0000 (10:18 +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: I2b08ae36fdb9c96e07089e74e2a4a6e4bcb4972c
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoMerge "battery: battery HAL is added" into tizen
Taeyoung Kim [Wed, 15 Jun 2016 11:54:25 +0000 (04:54 -0700)]
Merge "battery: battery HAL is added" into tizen

8 years agocommon: Apply Tizen coding rule
sunm.lee [Thu, 19 May 2016 05:18:08 +0000 (14:18 +0900)]
common: Apply Tizen coding rule

Apply Tizen coding rule.

Change-Id: I2d535f4973a5c573e2c3e96e5a7a631f74ac5365
Signed-off-by: sunm.lee <sunm.lee@samsung.com>
8 years agobattery: battery HAL is added
Taeyoung Kim [Wed, 4 May 2016 07:57:04 +0000 (16:57 +0900)]
battery: battery HAL is added

- Battery HAL is used for kernels which do not use
  standard interfaces of Mainline kernel.

Change-Id: If6b6fbbfd881b8d47f5843a1f6d54253037ae7c9
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agotouchscreen: fix invalid return value
Taeyoung Kim [Sun, 17 Apr 2016 23:58:30 +0000 (08:58 +0900)]
touchscreen: fix invalid return value

Change-Id: Ib8ed2eae31293181b6be2aa6161944f919a48be4
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoRemove thread unsafety usage and Add checking index of list
pr.jung [Wed, 23 Mar 2016 10:43:10 +0000 (19:43 +0900)]
Remove thread unsafety usage and Add checking index of list

Change-Id: I7165afa2b4b540dda16e3d4a88f220708c081f71
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agoir: Implement ir HAL
pr.jung [Wed, 17 Feb 2016 06:26:59 +0000 (15:26 +0900)]
ir: Implement ir HAL

Change-Id: Ie4c0b0b82f4c85cf197a6348ce04e1d112583f83
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agoled: implement led HAL
Taeyoung Kim [Wed, 13 Jan 2016 05:31:50 +0000 (14:31 +0900)]
led: implement led HAL

- Just camera led (flash) located at the back of the target
  is handled currently.

Change-Id: I43aef2c3757be5a02d27d1fecccc2cf50623e044
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoudev: insert rule file to package
Taeyoung Kim [Thu, 24 Dec 2015 02:26:54 +0000 (11:26 +0900)]
udev: insert rule file to package

- udev rule file was skipped for packaging. Thus the rule
  is inserted to package.

Change-Id: I790edf35693d5c8ed7ceed0a80136d333781b934
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoudev rules: change smack label and DAC for video devices
Taeyoung Kim [Tue, 22 Dec 2015 10:46:56 +0000 (19:46 +0900)]
udev rules: change smack label and DAC for video devices

- smack label is changed to "*", and DAC is changed to 0660

Change-Id: I7338eafa0822522febf96343e8866e86da8556de
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoexternal connection: add HAL for external connection
Taeyoung Kim [Thu, 17 Dec 2015 11:38:20 +0000 (20:38 +0900)]
external connection: add HAL for external connection

- The HAL will exchange extcon operation of kernel.
- Currently, USB, earjack, and Dock are available.
- For TM1 target, external connections are handled by switch subsystem,
  thus the HAL should work well.

Change-Id: I5ae3b90b3089a66890fe9b381db072b3cd58fc7e
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agotouchscreen: add touchscreen hal library
Taeyoung Kim [Fri, 4 Dec 2015 12:18:39 +0000 (21:18 +0900)]
touchscreen: add touchscreen hal library

- touchscreen device can be changed and thus
  touchscreen hal is required to manage it.

Change-Id: Ic62d57001a846a6aa0d6bb4f3300afc00755a809
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoUpdate from product codes
Joonyoung Shim [Mon, 16 Nov 2015 08:18:10 +0000 (17:18 +0900)]
Update from product codes

Until commit aba2aa12985eef4765caa09dcfee6efd0f93fa33

Change-Id: I7c2230b51d05d959ee16b83b913c95cd0cd891fd
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
8 years agodisplay: add get/set brightness operations
taeyoung [Thu, 12 Nov 2015 08:32:56 +0000 (17:32 +0900)]
display: add get/set brightness operations

- Brightness can be changed according to the sysfs interface.

Change-Id: I8be91c79e57ab58cdb328022995d158a597fb6d5
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agoHAL: change HAL module to use hwcommon library
taeyoung [Thu, 12 Nov 2015 04:42:35 +0000 (13:42 +0900)]
HAL: change HAL module to use hwcommon library

- Previous implementation is from Tizen 2.4, and it was not
  use the new HAL structure.
- To support New HAL of Tizen 3.0, it uses hwcommon library
  which defines the interfaces between kernel and platform.

Change-Id: I8340dbbdd7516a206ecc311dd91c1ab617dcfe63
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agotizen 2.4 release
jk7744.park [Sat, 24 Oct 2015 06:28:45 +0000 (15:28 +0900)]
tizen 2.4 release

8 years agoInitial empty repository
Jeonghoon Jeon [Fri, 23 Oct 2015 08:32:43 +0000 (01:32 -0700)]
Initial empty repository