platform/hal/backend/tm1/device-tm1.git
2 years agousb-gadget: remove usb-gadget and add configuration file 03/274603/1 accepted/tizen_6.5_unified tizen_6.5 accepted/tizen/6.5/unified/20220602.131913 submit/tizen_6.5/20220531.085836
Youngjae Cho [Thu, 28 Apr 2022 08:02:38 +0000 (17:02 +0900)]
usb-gadget: remove usb-gadget and add configuration file

The actual operation of usb-gadget is no more hal dependent. Instead,
the deviced is now in charge of running usb-gadget. The hal backend
has changed to provide only target specific usb-gadget configurations.
If there is no target specific configurations, deviced runs usb-gadget
with default configurations.

Change-Id: Iaf124c6413f0de5c4636edea4d936754444654b7
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2 years agobattery: convert ONLINE property value to standard one 59/270459/1 accepted/tizen/6.5/unified/20220215.114255 submit/tizen_6.5/20220214.083718
Youngjae Cho [Thu, 27 Jan 2022 06:02:15 +0000 (15:02 +0900)]
battery: convert ONLINE property value to standard one

Change-Id: I0a98cd552865437cf4b45316e256d75375aeaaa4
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2 years agospec: Add "ExclusiveArch: %{arm} aarch64" 11/268311/1 accepted/tizen/6.5/unified/20211220.133405 submit/tizen_6.5/20211220.071659
INSUN PYO [Mon, 20 Dec 2021 04:38:46 +0000 (13:38 +0900)]
spec: Add "ExclusiveArch: %{arm} aarch64"

Change-Id: Ib1a37acdbc1ae25b6e055f3d7970b53584984ef2

2 years agothermal: rename device_thermal_e to hal_device_thermal_e 46/262046/1 accepted/tizen/6.5/unified/20211028.115607 accepted/tizen/unified/20210804.085730 submit/tizen/20210802.064402 submit/tizen_6.5/20211028.163201 tizen_6.5.m2_release
Youngjae Cho [Mon, 2 Aug 2021 05:31:13 +0000 (14:31 +0900)]
thermal: rename device_thermal_e to hal_device_thermal_e

Change-Id: I1648e5aad2aafcacccf7827863f9f8b02aa84fb3
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2 years agoboard: fix parameter of get_device_serial_number() 49/260049/1 accepted/tizen/unified/20210621.123303 submit/tizen/20210618.075427
Youngjae Cho [Fri, 18 Jun 2021 03:09:07 +0000 (12:09 +0900)]
board: fix parameter of get_device_serial_number()

Change-Id: Ifd9ab60a29485d39e96b8e1d2a8b1ab149133e84
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2 years agoAdd libsyscommon to required package to provide linker flag 68/259968/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 87/259787/1 accepted/tizen/unified/20210615.120420 submit/tizen/20210614.021455
Youngjae Cho [Mon, 14 Jun 2021 08:35:41 +0000 (17:35 +0900)]
board: renaming get_device_serial_number

Change-Id: I5b56097c3ab65162560521233919bd3f6f794be5
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2 years agoInitialization for platform/hal/backend/tm1/device-tm1 51/259351/1 accepted/tizen/unified/20210607.011700 submit/tizen/20210604.124315
Hyotaek Shim [Fri, 4 Jun 2021 12:40:46 +0000 (21:40 +0900)]
Initialization for platform/hal/backend/tm1/device-tm1

Change-Id: If094689ec7c82af3529fb20eed8512a5e996a6f3
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
3 years agomemory: change return value when node is not supported
Yunmi Ha [Fri, 12 Mar 2021 02:22:44 +0000 (11:22 +0900)]
memory: change return value when node is not supported

Change-Id: Ia8cdc4cfc2b6c87d88f2e33079c3ff4a33544c84
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agoFix svace issues
Yunmi Ha [Mon, 22 Feb 2021 02:31:09 +0000 (11:31 +0900)]
Fix svace issues

 - memory: DIVISION_BY_ZERO
 - touchscreen: Resource leaks

Change-Id: I13b2570a61cbeabc236cf0717c9fd056dd17cb19
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agomemory: add new halapi backend
Youngjae Cho [Thu, 21 Jan 2021 06:47:55 +0000 (15:47 +0900)]
memory: add new halapi backend

Change-Id: Ief5e654ee0e161f888cba50e38ee73cf424f29db
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agoMove udev files to device-common
lokilee73 [Tue, 16 Feb 2021 01:15:49 +0000 (10:15 +0900)]
Move udev files to device-common

Change-Id: I16dc74057cf7f83e49f8ef52a0cc0d4a197a0370
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
3 years agoMove common macro to device-common
lokilee73 [Wed, 10 Feb 2021 07:36:51 +0000 (16:36 +0900)]
Move common macro to device-common

Change-Id: Ic4d75bb9a108499193a812202e3987a7fc95bc96
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:12 +0000 (12:26 +0900)]
Apply new hal-backend-common-usb_gadget.h header

Change-Id: I74ee9472b8b12dcd8cd70d2767f8ceafbd595d59

3 years agoRemove unused pkgconfig(libudev) build dependency on thermal
INSUN PYO [Wed, 3 Feb 2021 06:44:58 +0000 (15:44 +0900)]
Remove unused pkgconfig(libudev) build dependency on thermal

Change-Id: I40663584da912bf9c7ea0cef671a7db5edc0fc28

3 years agohaptic: apply rpm macro of hal install path
Yunmi Ha [Tue, 26 Jan 2021 08:02:09 +0000 (17:02 +0900)]
haptic: apply rpm macro of hal install path

Change-Id: If1e452d978f506eb0b701dceb822091d35e0179b
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agoApply rpm macro of hal install path
lokilee73 [Tue, 26 Jan 2021 04:26:20 +0000 (13:26 +0900)]
Apply rpm macro of hal install path

Change-Id: I172ed017a72f4f7e73711e1b641a24e5678c5fc3
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
3 years agousb_gadget: apply next HAL architecture (hal api + backend)
INSUN PYO [Tue, 19 Jan 2021 04:53:47 +0000 (13:53 +0900)]
usb_gadget: apply next HAL architecture (hal api + backend)

Change-Id: I47188c554266da93459fd805293d6955ae151aa5

3 years agoUse file library of libsyscommon
Yunmi Ha [Tue, 19 Jan 2021 04:32:25 +0000 (13:32 +0900)]
Use file library of libsyscommon

Change-Id: I13de8f2ef701cc559708d65cfce0105beec39239
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agoRemove cpu
lokilee73 [Mon, 18 Jan 2021 10:05:00 +0000 (19:05 +0900)]
Remove cpu

Change-Id: Ie762ac7347869ce9cb0f9ab0032db112b24d5512
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
3 years agoRework led hal
lokilee73 [Fri, 15 Jan 2021 10:55:13 +0000 (19:55 +0900)]
Rework led hal

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

Change-Id: Ied9d765909ba6d409550b14088012524913b9f63
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
3 years agoAdd info.name in battery_current_state
lokilee73 [Wed, 13 Jan 2021 11:33:14 +0000 (20:33 +0900)]
Add info.name in battery_current_state

Change-Id: I1024acbf1b506ddfbd51be35ad3f8abe78b87da9
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
3 years agoApply next HAL architecture (hal api + backend)
lokilee73 [Wed, 13 Jan 2021 03:30:57 +0000 (12:30 +0900)]
Apply next HAL architecture (hal api + backend)

Change-Id: I636fca58e89ed90a40ffe7ff769ab2b137628403
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
3 years agohaptic: apply next HAL architecture (hal api + backend)
Yunmi Ha [Tue, 12 Jan 2021 06:38:22 +0000 (15:38 +0900)]
haptic: apply next HAL architecture (hal api + backend)

Change-Id: Ibd3071ed1bb2b0d825718898404db01bdabe9d02
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agoFix dbus_get_battery_info for info.temperature / 10
lokilee73 [Tue, 23 Jun 2020 01:31:33 +0000 (10:31 +0900)]
Fix dbus_get_battery_info for info.temperature / 10

(Before)
device_battery_get_property(DEVICE_BATTERY_PROPERTY_TEMPERATURE=286
device_thermal_get_temperature(DEVICE_THERMAL_BATTERY=28

(After)
device_battery_get_property(DEVICE_BATTERY_PROPERTY_TEMPERATURE=28
device_thermal_get_temperature(DEVICE_THERMAL_BATTERY=28

Change-Id: I95ad361a0193f635ae57f93ba4d07c18f730afbd
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
4 years agoRemove unnecessary #ifdef
INSUN PYO [Tue, 7 Apr 2020 01:08:02 +0000 (10:08 +0900)]
Remove unnecessary #ifdef

Change-Id: I54d2d0db249181882c8633fec7e829a2c3a741e5

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

Change-Id: I3739b8dcfbd9d80eb4976bb21b26a6de4368e4ae
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoRemove compile warning for GCC-9
Youngjae Cho [Mon, 30 Dec 2019 01:54:57 +0000 (10:54 +0900)]
Remove compile warning for GCC-9

- format-truncation
- stringop-overflow

Change-Id: Id680e0649eee93846c041988967aff1bde84ba5f
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoSupport access control for privacy-privilege nodes based on dummy mount
Hyotaek Shim [Tue, 19 Nov 2019 08:02:21 +0000 (17:02 +0900)]
Support access control for privacy-privilege nodes based on dummy mount

TM1 provides privacy-privilege access control for sprd_image, isp, and sensor with dummy mount

Change-Id: I8a9cdef8d326f101be2984139619ef228120391c
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoFix svace issue
Yunmi Ha [Tue, 27 Aug 2019 07:17:41 +0000 (16:17 +0900)]
Fix svace issue

- change strcpy function to strncpy

Change-Id: Icadf6b2717d1093d8514b16e01fd03ceb44ea728
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
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

7 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>
7 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