platform/hal/backend/tm1/device-tm1.git
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