summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2018-07-06Add voltage and temperature in battery_infosubmit/tizen/20180710.030326submit/tizen/20180706.105024accepted/tizen/unified/20180712.092608lokilee731-0/+3
Change-Id: Ia93aecb173b11db66d9c397bf53e048751ccd080 Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
2018-07-05Add omitted gtest caseslokilee732-0/+24
get_frame_rate for LCD and free_gadget for USB Client Change-Id: Ia898bbb31255b015bf8076dcd445c8cc4dcbda02 Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
2018-06-29usb_cfs_client: Enable gadget at reconfigurationPaweł Szewczyk1-0/+5
This workaround was introduced on artik, where gadget need to be enabled before usb connection can be properly monitored. As this does little harm, it's moved here to prevent regression on artik. The side effect of this is starting some functionfs daemons long before they are actually needed, so this should be removed when exton issue is fixed. Change-Id: Ia41c21e3c44d7d3a00d557f181e8c22766c6f31b Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
2018-06-26Move usb_gadget common code from device-manager-pluginssubmit/tizen/20180628.074924Paweł Szewczyk3-1/+430
Change-Id: I19f45a7f858bd09f4e2403e4227a7c2a71aab05a Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
2018-06-26Move container_of macro to common.hPaweł Szewczyk2-6/+8
The container_of macro can be used by many modules. This commit moves it to common header to prevent duplication. Change-Id: I3d87766b561db8f67354d0abe8784ea62d05016d Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
2018-06-26Add HAL for boardPaweł Szewczyk1-0/+42
For now includes only getting serial number of the device Change-Id: I2541fccdb6a3a083b89ce5cf277f482d12b44dfc Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
2018-06-26Add common code from usb_client HALPaweł Szewczyk6-2/+1633
Change-Id: I863b5e9757f943eb6659e939118b9c03e22c8229 Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
2018-06-26Move code from 'shared' files to common packagePaweł Szewczyk3-1/+173
Change-Id: Idd38578a32f5b415d7c2f9f0bcf37e7a71bcf770 Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
2018-06-26Add API for controling systemd unitsPaweł Szewczyk4-2/+217
Change-Id: Ic13a69fbf0008ce37c0774b857e718335c0cf921 Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
2018-06-14Add cpp files for HAL testlokilee7314-394/+815
Change-Id: I374e127cdccecd9d8642c31460cc57cd83eed260 Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
2018-06-04Change rpm name from device-hal-tc to device-haltestssubmit/tizen/20180615.005643submit/tizen/20180614.143144submit/tizen/20180605.005646accepted/tizen/unified/20180615.071956lokilee731-3/+3
Change-Id: If8ef874a6f181bbf36504b3ef9511af4f0792477 Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
2018-04-05gtest: Add gtest for ledpr.jung2-2/+117
Change-Id: I0d3c88dd1131fb4262d54b766002043c4a1ee333 Signed-off-by: pr.jung <pr.jung@samsung.com> Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
2018-04-04gtest: Add gtest for battery, cpu, display, extcon, and touchscreenpr.jung5-0/+664
Change-Id: I733890ff1261e3e45e11129ea82f6e7e12a65a9e Signed-off-by: pr.jung <pr.jung@samsung.com>
2018-03-30gtest: Add gtest for irpr.jung5-3/+169
Change-Id: I26ae1223e63c650c354a3f152fe6669023ac348a Signed-off-by: pr.jung <pr.jung@samsung.com>
2018-03-14remove unused usb_client itemsubmit/tizen/20180315.052738submit/tizen/20180314.081248submit/tizen/20180314.002506accepted/tizen/unified/20180316.062509accepted/tizen/unified/20180314.141513INSUN PYO1-1/+0
Signed-off-by: INSUN PYO <insun.pyo@samsung.com> Change-Id: I500619bd569067dbe7d0c9c33613a141aa756066
2018-03-13usb_device: add usb configfs HALsubmit/tizen/20180314.000517INSUN PYO1-1/+3
Signed-off-by: INSUN PYO <insun.pyo@samsung.com> Change-Id: I532fbf31d95567efb1550293632f97480dc11811
2018-03-02usb: Add service names to suitable USB functionsKrzysztof Opasiak1-4/+4
Both MTP and SDB functions requires userspace service to work. So let's add names of those services to function structure. Change-Id: I544fb4251751c8c98f11197af2898cf5c1a53d33 Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
2016-12-29Merge branch 'tizen_3.0' into tizentizen_4.0.m1_releasesubmit/tizen_unified/20170308.100409submit/tizen_4.0/20170828.110004submit/tizen_4.0/20170828.100004submit/tizen_4.0/20170811.094300submit/tizen/20161229.040631accepted/tizen/wearable/20161229.233148accepted/tizen/unified/20170309.033800accepted/tizen/tv/20161229.233129accepted/tizen/mobile/20161229.233108accepted/tizen/ivi/20161229.233207accepted/tizen/common/20161229.140153accepted/tizen/4.0/unified/20170829.015847accepted/tizen/4.0/unified/20170816.013134accepted/tizen_wearableaccepted/tizen_tvaccepted/tizen_mobileaccepted/tizen_iviaccepted/tizen_commontaeyoung4-10/+188
Signed-off-by: taeyoung <ty317.kim@samsung.com> Change-Id: I4af8a6b19362cb83a5289815977fa87c3127c305
2016-12-16cpu: add cpu HAL interfacessubmit/tizen_3.0/20161222.053422submit/tizen_3.0.m2/20170104.093751accepted/tizen/3.0/wearable/20161222.093456accepted/tizen/3.0/tv/20161222.093434accepted/tizen/3.0/mobile/20161222.093423accepted/tizen/3.0/ivi/20161222.093510accepted/tizen/3.0/common/20161222.181704accepted/tizen/3.0.m2/wearable/20170104.142319accepted/tizen/3.0.m2/tv/20170104.142024accepted/tizen/3.0.m2/mobile/20170104.141446tizen_3.0_tvtizen_3.0.m2accepted/tizen_3.0_wearableaccepted/tizen_3.0_tvaccepted/tizen_3.0_mobileaccepted/tizen_3.0_iviaccepted/tizen_3.0_commonaccepted/tizen_3.0.m2_wearableaccepted/tizen_3.0.m2_tvaccepted/tizen_3.0.m2_mobiletaeyoung1-0/+43
Currently cpu boosting related functions are added. Change-Id: I4f73ea6433711aff6c9b6d95d04ac3af07378b29 Signed-off-by: taeyoung <ty317.kim@samsung.com>
2016-12-06display: add display enhance function for both mode and scenariosubmit/tizen_3.0/20161207.041906accepted/tizen/3.0/wearable/20161207.135002accepted/tizen/3.0/tv/20161207.134827accepted/tizen/3.0/mobile/20161207.134831accepted/tizen/3.0/ivi/20161207.135048accepted/tizen/3.0/common/20161207.195206taeyoung1-0/+5
Change-Id: I8bd596f6ec62dc2239a510151ee091a5023d4090 Signed-off-by: taeyoung <ty317.kim@samsung.com>
2016-12-06device-node : remove unreachable codeKichan Kwon1-10/+0
Change-Id: I590c995f69ab84e54fb7124a9e577673a97c2693 Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
2016-11-30display: add internal interface for display enhancementsubmit/tizen_3.0/20161130.101437accepted/tizen/3.0/wearable/20161201.031504accepted/tizen/3.0/tv/20161201.031441accepted/tizen/3.0/mobile/20161201.031408accepted/tizen/3.0/ivi/20161201.031527accepted/tizen/3.0/common/20161201.135144taeyoung1-0/+74
Change-Id: Ia6e66afdd517f9678c5dd2923c19cf5a7f7e54ee Signed-off-by: taeyoung <ty317.kim@samsung.com>
2016-11-21thermal: add thermal HAL interfacesubmit/tizen_3.0/20161122.133614accepted/tizen/3.0/wearable/20161123.083929accepted/tizen/3.0/tv/20161123.083911accepted/tizen/3.0/mobile/20161123.083856accepted/tizen/3.0/ivi/20161123.083945accepted/tizen/3.0/common/20161123.140943taeyoung1-0/+66
Change-Id: Ic614ce4ec06f710de2d96019360b7ec0b62ece9f Signed-off-by: taeyoung <ty317.kim@samsung.com>
2016-11-02Merge branch 'tizen' into tizen_3.0submit/tizen_3.0_common/20161110.084657submit/tizen_3.0/20161102.073456accepted/tizen/3.0/wearable/20161103.001929accepted/tizen/3.0/tv/20161103.001915accepted/tizen/3.0/mobile/20161103.001859accepted/tizen/3.0/ivi/20161103.001947accepted/tizen/3.0/common/20161114.081245pr.jung4-4/+15
Change-Id: Id510e5e68c6a8fa930948a0abf3be77be86c3e47 Signed-off-by: pr.jung <pr.jung@samsung.com>
2016-10-26display: add display frame rate interfacessubmit/tizen/20161031.024122accepted/tizen/wearable/20161101.004601accepted/tizen/tv/20161101.004545accepted/tizen/mobile/20161101.004531accepted/tizen/ivi/20161101.004619accepted/tizen/common/20161031.121815taeyoung1-0/+6
Display frame rate can be adjusted by the interfaces. Change-Id: I41d0cabb993d72c62a72229418c1e9a891099161 Signed-off-by: taeyoung <ty317.kim@samsung.com>
2016-10-24display: add interface to convert light sensing value to brightnesssubmit/tizen_3.0_common/20161104.104000submit/tizen/20161025.065819submit/tizen/20161024.103433accepted/tizen/wearable/20161028.151022accepted/tizen/tv/20161028.151007accepted/tizen/mobile/20161028.150956accepted/tizen/ivi/20161028.151032accepted/tizen/common/20161025.083538accepted/tizen/common/20161024.135223taeyoung1-0/+3
deviced will use the interface to convert the light sensing value to the brightness value to change. Change-Id: I89d0306d654273850067ee56216dae3ae84c65ef Signed-off-by: taeyoung <ty317.kim@samsung.com>
2016-10-20Clean up library dependencies for hwcommon and device-nodesubmit/tizen/20161020.031059accepted/tizen/common/20161020.043519Kunhoon Baik3-4/+6
Change-Id: I5cee751663dbe0c20909d71586261f9446d88243
2016-09-05Add usb_client HAL APIsubmit/tizen_3.0_wearable/20161015.000003submit/tizen_3.0_tv/20161015.000003submit/tizen_3.0_mobile/20161015.000003submit/tizen_3.0_ivi/20161010.000003submit/tizen/20160920.044232accepted/tizen/wearable/20160920.231835accepted/tizen/tv/20160920.231824accepted/tizen/mobile/20160920.231811accepted/tizen/ivi/20160920.231845accepted/tizen/common/20160920.132114accepted/tizen/3.0/wearable/20161015.083243accepted/tizen/3.0/tv/20161016.005029accepted/tizen/3.0/mobile/20161015.033528accepted/tizen/3.0/ivi/20161011.044351Krzysztof Opasiak1-0/+58
This API allows to apply abstract gadget description received from USB gadget HAL to usb gadget subsystem in Kernel via system infrastructure available on this particular device. Change-Id: Ibf05b3ec7c8abfed357f886eada5864dca514051 Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
2016-09-05USB gadget HAL APIKrzysztof Opasiak1-0/+298
This API provides translation between set of functions which should be available and abstract USB gadget description (reprezented by struct usb_gadget). This HAL can be used bo both define new values for VendorID, ProductID and other stuff, and alse to add some new function available only on this particular device (vendor specific). Change-Id: I63464d9828bfc3fbf06a77d5d9fea82341bddf45 Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
2016-07-07display: add getter for the maximum brightness of displaysubmit/tizen/20160803.081834accepted/tizen/wearable/20160804.081125accepted/tizen/tv/20160804.081107accepted/tizen/mobile/20160804.081212accepted/tizen/ivi/20160804.081141accepted/tizen/common/20160804.174411taeyoung1-1/+2
- The maximum brightness of display varies according to the driver. Thus maximum brightness function is added for platform to adjust all cases. Change-Id: Iab3c2b82372b174d569487b7c85f2024185a89b5 Signed-off-by: taeyoung <ty317.kim@samsung.com>
2016-05-04battery: add battery HAL interfacesubmit/tizen/20160615.115707accepted/tizen/wearable/20160616.003533accepted/tizen/tv/20160616.003418accepted/tizen/mobile/20160616.003551accepted/tizen/ivi/20160616.003440accepted/tizen/common/20160615.193918Taeyoung Kim1-0/+67
- If standard battery interfaces of Mainline kernel is always used, this HAL is no use. But Tizen need to work on other kernel version and thus the battery HAL interfaces are added. Change-Id: I25b0b46f6d3dc1ee640c130b4c0f6ed2b588e606 Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
2016-03-17Remove thread unsafety function usage.submit/tizen/20160318.062127accepted/tizen/wearable/20160318.113816accepted/tizen/tv/20160318.113833accepted/tizen/mobile/20160318.113742accepted/tizen/ivi/20160318.113930accepted/tizen/common/20160318.145924pr.jung1-1/+1
Change-Id: I8d086de719e6942737864eb56e9a054da4a2457d Signed-off-by: pr.jung <pr.jung@samsung.com>
2016-02-22ir: Add HAL interfacesubmit/tizen/20160223.045141submit/tizen/20160223.043930accepted/tizen/wearable/20160223.231433accepted/tizen/tv/20160223.231415accepted/tizen/mobile/20160223.231404accepted/tizen/ivi/20160223.231451pr.jung1-0/+43
- Get information whether ir is available. - Transmit ir pattern. Change-Id: If3196bbbe39452917c76b8f3a74e81d94dec94c7 Signed-off-by: pr.jung <pr.jung@samsung.com>
2015-12-17external connection: add HAL interface for external connectionssubmit/tizen_ivi/20160217.000003submit/tizen_ivi/20160217.000000submit/tizen_common/20151229.154718submit/tizen_common/20151229.144031submit/tizen_common/20151229.142028submit/tizen/20151222.023057submit/tizen/20151221.233245accepted/tizen/wearable/20151222.085800accepted/tizen/tv/20151222.085737accepted/tizen/mobile/20151222.085717accepted/tizen/ivi/20160218.023806Taeyoung Kim1-0/+62
- The hal will exchange extcon interface of kernel Change-Id: I9ef2f9392a676b65140b3ef61d81f502c5e669be Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
2015-12-04touchscreen: add touchscreen hal interfacesubmit/tizen/20151210.084448accepted/tizen/wearable/20151210.230554accepted/tizen/tv/20151210.230536accepted/tizen/mobile/20151210.230516Taeyoung Kim1-0/+48
- If a target has touchscreen, the touchscreen can be enabled or disable by some scenarios. Thus the hal interface for touchscreen is added. Change-Id: I037af46a8dbeff606655e4714fc37bd20a9e3f99 Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
2015-07-01display: remove codes related with vconf keys which are not usedtizen_3.0.m2.a1_tv_releasetizen_3.0.m2.a1_mobile_releasetizen_3.0.m1_tv_releasetizen_3.0.m1_mobile_releasesubmit/tizen_common/20151026.085049submit/tizen_common/20151023.083358submit/tizen_common/20151019.135620submit/tizen_common/20151015.190624submit/tizen/20150701.112052submit/tizen/20150630.051205accepted/tizen/wearable/20150701.123105accepted/tizen/tv/20150701.121613accepted/tizen/mobile/20150701.121247tizen_3.0.m1_tvtizen_3.0.m1_mobileTaeyoung Kim1-14/+0
- The keys are related with display brightness according to the power. But the keys are removed from the vconf list. Thus the codes related with the vconf keys are also removed Change-Id: I8d53a38e7e9eddec3328c75d65f5696989749a2e Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
2015-03-31device-node: add sensors hal interfaceKibak Yoon1-0/+235
this interface is for sensors HAL. Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com> Change-Id: If7ab8f5878228604676f13dd0809c1afce60f70e Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
2015-03-16display: Add image effect and panel mode functionsJiyoung Yun1-1/+29
Image effect and panel mode can be mixed. So I provides each api and enums. It depends on the display hardware, if some mode can't support in your hardware, you can return -ENOTSUP error. Change-Id: Ib59c5f6c79ff1edd05fc09261c303555043d862c Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
2015-03-13display: Change the display hal versionJiyoung Yun1-1/+1
Now it's a draft version, so I modified the version to 0.1. The final version will be v1.0 when Tizen 3.0 is released. Change-Id: Ic7590c763f123ce9d80e6d1b8436a9e957ab79bb Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
2015-03-09device-node: Add display device structuresubmit/tizen/20150312.105238accepted/tizen/wearable/20150313.084633accepted/tizen/tv/20150313.084502accepted/tizen/mobile/20150313.084803accepted/tizen/common/20150313.083718tizen_3.0.2015.q2_commonJiyoung Yun2-27/+17
Backlight structure will replace with display structure. The role and mean of backlight is too restrictive. Display will cover all function of drm, backlight and so on. Change-Id: Icf0a45d2fb522f0f55b7210fabf4a8b5bd77ef3b Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
2015-02-12device-node: Add led structuressubmit/tizen/20150225.080307accepted/tizen/wearable/20150226.095205accepted/tizen/tv/20150226.094255accepted/tizen/mobile/20150226.100152accepted/tizen/common/20150226.084857Jiyoung Yun2-1/+75
Led device support to control the brightness level, color and duty. There is an detail information in Tizen Wiki: https://wiki.tizen.org/wiki/HAL_upgrade_for_Tizen_3.0#Device Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com> Change-Id: I70b0402fb528ba057ec782c4ba1718eb3dbd4225
2015-02-05libdevice-node: Add HARDWARE_MODULE_STRUCTURE definesubmit/tizen/20150213.103227accepted/tizen/wearable/20150215.072952accepted/tizen/tv/20150215.072632accepted/tizen/mobile/20150215.073624accepted/tizen/common/20150213.145211Jiyoung Yun2-6/+20
Change-Id: I3ab9e9455eeba8a6d2cd5ca3a65b2cc069d7b894 Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
2015-02-02libdevice-node: Remove unnecessary cflag optionsJiyoung Yun1-1/+1
Change-Id: Ib7f12d92093b46e05843ef49a820824f67824387 Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
2015-01-28device-node: Add HAL common and backlight structuresJiyoung Yun6-1/+251
Each device shuld be contained struct hw_info_t module as a first variable. It is a common interface among multiple device HAL structures. Backlight HAL structure is for controlling the brightness of backlight. You can set the birhgntess value using it and it also support to sensor mode. It makes backlight display to be changed by light sensor value. Developers can make their own HAL structure. The HAL library should be located in $LIB_INSTALL_DIR/hw/. There is an detail information in Tizen Wiki: https://wiki.tizen.org/wiki/HAL_upgrade_for_Tizen_3.0#Device Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com> Change-Id: Id73f5517e659a652a634cfa86c3137f5aca859c7
2015-01-15device-node: Fix build under 64-bit architecturetizen_3.0_ivi_releasesubmit/tizen_ivi/20150116.111111submit/tizen/20150115.095403accepted/tizen/wearable/20150116.010358accepted/tizen/tv/20150116.010705accepted/tizen/mobile/20150116.011319accepted/tizen/ivi/20150116.082010accepted/tizen/common/20150115.180507tizen_3.0_ivitizen_3.0.2015.q1_commontizen_3.0.2014.q4_commonJiyoung Yun1-0/+4
A problem of int to pointer cast was raising an error when building for 64 bits archs. Change-Id: I5e9aa7b850370440c11e1c5ee3e58c381a1d71fc Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
2015-01-13device-node: Add null check operation of interface functionJiyoung Yun10-79/+89
If there is no interface for something to do, it will return -ENOTSUP error instead of segfault. Bug-Tizen: TC-1932 Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com> Change-Id: If9dfdaecf53c88e14879dc66986e12cdcd1c2355
2014-11-07device-node: Add get_max_brightness and set_irled functionssubmit/tizen/20141112.104554jy910.yun5-2/+16
Support to get the max brightness value of display Support to set command to irled Change-Id: I789e608a56371acc973fff2038eb4efa8ff5cbd1 Signed-off-by: jy910.yun <jy910.yun@samsung.com>
2014-11-07device-node: Enable Werror compiler flagjy910.yun4-11/+11
To remove the warnning messages and latent bugs Signed-off-by: jy910.yun <jy910.yun@samsung.com> Change-Id: I48ef0ea78dbd93bef5ebf44ac9d519822e955681
2014-11-07device-node: Replace system() with the combination of fork/execjy910.yun1-4/+79
As per man page, it cautions against using system() in a program. It can make a problem like a ruin of system intergrity by strange values for some environment variables. Change-Id: I5d77931c3fbb5fd1851219aaf8e8578d8ed9d255 Signed-off-by: jy910.yun <jy910.yun@samsung.com>
2014-11-06device-node: Rename the logging macrosjy910.yun3-21/+23
Change DEVERR/DEVLOG macros to _E/_D macros Signed-off-by: jy910.yun <jy910.yun@samsung.com> Change-Id: Idd4593e6b271addfb2f0ee8a091223b0267161cf