platform/hal/backend/rpi/device-rpi.git
6 months agoled: Remove unused get_state() initialization 32/315832/1 accepted/tizen_9.0_unified tizen_9.0 accepted/tizen/9.0/unified/20241210.162004
Yunhee Seo [Thu, 5 Dec 2024 04:57:21 +0000 (13:57 +0900)]
led: Remove unused get_state() initialization

Before apply HAL ACR process, unused and unmanaged function will be removed.
This because there is no usage case and implementation of this function.
As removed from hal-api interface, it is also removed from hal-backend.

Change-Id: I645bb6d540bf2305b4f51d808abae743d6f8a7d9
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
10 months agoutil: Add handling code to safely read and write arrays 13/314913/3 accepted/tizen_unified_dev accepted/tizen_unified_toolchain accepted/tizen/9.0/unified/20241031.000036 accepted/tizen/unified/20240725.155024 accepted/tizen/unified/dev/20240729.000858 accepted/tizen/unified/toolchain/20240812.132145 accepted/tizen/unified/x/20240726.013207 accepted/tizen/unified/x/asan/20240813.230430 tizen_9.0_m2_release
Yunhee Seo [Tue, 16 Jul 2024 07:21:32 +0000 (16:21 +0900)]
util: Add handling code to safely read and write arrays

There was a missing code for handling the null character
so that it doesn't exceed the array size when reading and storing strings.
The code has been modified to handle the array safely.
To avoid overflow issue, this is necessary.

Change-Id: Ib75301a07906391c57fb739ef3399ff211cd1503
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
11 months agoAdd upgrade type feature 47/313647/3 accepted/tizen/unified/20240708.173201 accepted/tizen/unified/dev/20240709.043434 accepted/tizen/unified/x/20240708.014820
Mateusz Moscicki [Fri, 28 Jun 2024 10:01:31 +0000 (12:01 +0200)]
Add upgrade type feature

Use set_upgrade_type to select the type of upgrade:
* online
* offline

After reboot fota, u-boot will run online or offline upgrade based on
the selected  type.

Change-Id: I33c86c91d6f7e13db7a29dde10d3c360b977dd37

11 months agoUse only hal-rootstrap package to build 16/313816/3 accepted/tizen/unified/20240704.075638 accepted/tizen/unified/dev/20240708.001623 accepted/tizen/unified/x/20240705.012359
Yunhee Seo [Tue, 2 Jul 2024 05:25:20 +0000 (14:25 +0900)]
Use only hal-rootstrap package to build

As support hal-abi-versioning, the hal-backend package should be built
using only the hal-rootstrap.
Other packages not included in the hal-roostrap have been deleted to remove dependencies.
util is added to replace functions of dlog and libsyscommon package.

Change-Id: I828813ef12dc695ddf66885269df5aabf2cd8717
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
11 months agoModify to trim string in get_upgrade_state() 43/313243/1 accepted/tizen/unified/20240624.104727 accepted/tizen/unified/dev/20240701.073030 accepted/tizen/unified/x/20240625.014038
SangYoun Kwak [Thu, 20 Jun 2024 08:56:02 +0000 (17:56 +0900)]
Modify to trim string in get_upgrade_state()

To make upgrade state getter work even if there are whitespaces before
and after the upgrade state string.

Change-Id: I5aa08651110891a0dce3b5fbdaf72cfe427c7d3a
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
12 months agoAdd upgrade state feature 69/312269/2 accepted/tizen/unified/20240614.084953 accepted/tizen/unified/dev/20240620.010518 accepted/tizen/unified/toolchain/20240624.121337 accepted/tizen/unified/x/20240614.160347 accepted/tizen/unified/x/asan/20240625.092115
SangYoun Kwak [Tue, 4 Jun 2024 10:23:59 +0000 (19:23 +0900)]
Add upgrade state feature

To clarify the states of upgrade process, "upgrade state" feature is
added.
It is different from the "upgrade status", which looks similar but only
shows the progress(-1 and 0~100) of RO and RW upgrades.
The "upgrade state" shows the upgrade processes by multiple steps.
(Steps follow the definition of the platform)

Since the names "upgrade status" and "upgrade state" are similar,
to distinguish them, "upgrade status" is renamed as
"upgrade progress status".

Change-Id: I7881ade876fa733f1c74ac1017df63d3c0ab31e8
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
13 months agoRemove free data section when the module exits 34/310234/1
Yunhee Seo [Wed, 24 Apr 2024 07:47:34 +0000 (16:47 +0900)]
Remove free data section when the module exits

In the hal backend module, when the moudle exits, the hal_backend_[module]_funcs was
handled from [module]_exit function.
The data parameter is handed over from hal-api-common put_backend function.
And data is pointing to hal_backend_[module]_funcs, and free by hal-backend module.
As memory release operation moves to the hal-api-device side,
also double free operation is useless, thus it is deleted from hal-backend.

Change-Id: I8b80ce3180e722fbfe0025c509f3228994a20637
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agomemory: Apply HAL ABI versioning 61/310061/1
Yunhee Seo [Mon, 22 Apr 2024 01:42:49 +0000 (10:42 +0900)]
memory: Apply HAL ABI versioning

While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-memory side.
Also, wrong module name is fixed and hal interface inclusion path is changed.
"memory" -> "device-memory"

Change-Id: Ibc48399e2ead7ffcd8aa5f2e1169ba699682eb16
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agotouchscreen: Apply HAL ABI versioning 20/310020/1
Yunhee Seo [Fri, 19 Apr 2024 07:35:59 +0000 (16:35 +0900)]
touchscreen: Apply HAL ABI versioning

While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-touchscreen side.
Also, wrong module name is fixed and hal interface inclusion path is changed.
"touchscreen" -> "device-touchscreen"

Change-Id: I6776398dcfa8c36c5749e284ba673e0da08b70d9
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agoled: Apply HAL ABI versioning 10/310010/1
Yunhee Seo [Fri, 19 Apr 2024 04:13:08 +0000 (13:13 +0900)]
led: Apply HAL ABI versioning

While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-led side and there is no need to be free
hal_backend_module_funcs in backend side.
So, hal_backend_module_funcs free code is removed.
Also, wrong module name is fixed and hal interface inclusion path is changed.
"led" -> "device-led"

Change-Id: Id15deeb9ae80d85c8d9606e7ace8f2815d08cc1e
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agothermal: Apply HAL ABI versioning 97/309997/2
Yunhee Seo [Fri, 19 Apr 2024 04:12:57 +0000 (13:12 +0900)]
thermal: Apply HAL ABI versioning

While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-thermal side.
Also, wrong module name is fixed and hal interface inclusion path is changed.
"thermal" -> "device-thermal"

Change-Id: I89caa12d62873b1fcd7d478699cb201d0f44db21
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
13 months agoWork in advance to apply HAL ABI versioning 75/309675/1
Yunhee Seo [Mon, 15 Apr 2024 08:18:47 +0000 (17:18 +0900)]
Work in advance to apply HAL ABI versioning

To apply HAL ABI versioning, major/minor_version is added.
Also, as removed abi_version policy, abi_version variable is removed.

Change-Id: Ic665ad4881276ca4e0e87a8f352c884773133de9
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agohaptic: Apply HAL ABI versioning 63/309363/1
Yunhee Seo [Tue, 9 Apr 2024 02:35:55 +0000 (11:35 +0900)]
haptic: Apply HAL ABI versioning

To support OS upgrade feature, hal-backend and hal-api module needs HAL ABI versioning.
So, major/minor version is added to hal_backend structure.
While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-haptic side.

Change-Id: Iac7f8f2b96b4bcd31c3fcbf7bb493580bf1b4fbf
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agohaptic: Fix incorrect module naming 62/309362/1
Yunhee Seo [Tue, 9 Apr 2024 02:24:45 +0000 (11:24 +0900)]
haptic: Fix incorrect module naming

According to HAL API Prototype rule,
hal module funcs structure naming should be hal_backend_[module]_funcs.
However, the hal module name was being used incorrectly.
Actual module name is not "haptic" but "device-haptic".

Change-Id: I7123f7905e36dda623bf5e3f1b5afbd94162b91e
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agoboard: Apply HAL ABI versioning 23/309323/2
Yunhee Seo [Mon, 8 Apr 2024 12:59:58 +0000 (21:59 +0900)]
board: Apply HAL ABI versioning

To support OS upgrade feature, hal-backend and hal-api module needs HAL ABI versioning.
So, major/minor version is added to hal_backend structure.
While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-board side.

Change-Id: I2e26248546fec1622a46b7cb653ea238790f3737
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agoboard: Fix incorrect module naming 22/309322/2
Yunhee Seo [Mon, 8 Apr 2024 12:49:38 +0000 (21:49 +0900)]
board: Fix incorrect module naming

According to HAL API Prototype rule,
hal module funcs structure naming should be hal_backend_[module]_funcs.
However, the hal module name was being used incorrectly.
Actual module name is not "board" but "device-board".

Change-Id: I2e9e39f6e6c03b9e1b0c06b83e086930f7c7e9e4
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agoChange header file inclusion path 62/309262/3
Yunhee Seo [Mon, 8 Apr 2024 04:57:20 +0000 (13:57 +0900)]
Change header file inclusion path

As the header files installation path below hal-api-device module is changed,
the inclusion path is also changed.

Change-Id: I7a747f930df63bc65ebf467851ad228c2558cf43
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
14 months agodisplay: Apply HAL ABI versioning 28/308128/3
Yunhee Seo [Mon, 18 Mar 2024 09:07:27 +0000 (18:07 +0900)]
display: Apply HAL ABI versioning

To support OS upgrade feature, hal-backend and hal-api module needs HAL ABI versioning.
So, major/minor version is added to hal_backend structure.
While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-display side.

Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
Change-Id: I6c77e6cee028ea987f9fa43c2869913b464b1e9a

14 months agodisplay: Fix incorrect module naming 27/308127/1
Yunhee Seo [Mon, 18 Mar 2024 07:57:09 +0000 (16:57 +0900)]
display: Fix incorrect module naming

According to HAL API Prototype rule,
hal module funcs structure naming should be hal_backend_[module]_funcs.
However, the hal module name was being used incorrectly.
Actual module name is not "display" but "device-display".

Change-Id: I6fc128c1e305dca0f4b2e1137b21f9fffb8f1347
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
22 months agoboard: Replace prefix 'libsys' with 'syscommon' 17/296317/1 accepted/tizen_unified_riscv accepted/tizen/8.0/unified/20231005.094501 accepted/tizen/unified/20230726.163537 accepted/tizen/unified/riscv/20231220.095310 tizen_8.0_m2_release
Youngjae Cho [Tue, 25 Jul 2023 10:57:59 +0000 (19:57 +0900)]
board: Replace prefix 'libsys' with 'syscommon'

Change-Id: I0499579065a19d287c10055e7170b755180049b7
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2 years agoinput: add information for touchcreen input type 91/287891/1 accepted/tizen/unified/20230209.111301
Yunhee Seo [Tue, 7 Feb 2023 09:39:54 +0000 (18:39 +0900)]
input: add information for touchcreen input type

Add available input device type for touchscreen.

Change-Id: I9c604f001162e68338c5a04c5add0c163690074f
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
2 years agoinput: add input.conf file 72/286872/1 accepted/tizen/unified/20230118.172022
Yunhee Seo [Mon, 16 Jan 2023 05:54:25 +0000 (14:54 +0900)]
input: add input.conf file

Add input.conf example file to control input device event
Input device event can be handled by device id number.
With this config file, user can set the input devices to use
Detailed descriptions are exist in this example file.

[InputDeivce] format which is in input.conf
InputDeviceType -> input device type
InputDeviceId -> id number which exist under the /sys/class/input/input(id) path
InputDeviceName -> device name
InputDeviceDefault -> yes/no

Change-Id: I06330bde9b4044cde96a6a0d5eac651af306950b
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
2 years agoMap bootmode ramdisk to normal for cloning partitions 70/282570/1
SangYoun Kwak [Thu, 6 Oct 2022 05:29:34 +0000 (14:29 +0900)]
Map bootmode ramdisk to normal for cloning partitions

The service "clone_partitions" performs cloning partitions only when the
bootmode is "normal".
"ramdisk" was mapped to "normal" because cloning partitions should be
performed on both modes.

Change-Id: Idc265bc1c6b96683bd619372ba0d327971ddc616
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2 years agoUse strtok_r instead of strtok for thread safety 72/281572/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.063505 accepted/tizen/7.0/unified/hotfix/20221116.110413 accepted/tizen/unified/20220922.114010 tizen_7.0_m2_release
Dongwoo Lee [Tue, 20 Sep 2022 03:38:37 +0000 (12:38 +0900)]
Use strtok_r instead of strtok for thread safety

Change-Id: I07104009925a0501872ba1ade389704fda1cc305
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
2 years agoFix typo (partition status path) 84/280684/1 accepted/tizen/unified/20220915.173211 accepted/tizen/unified/20220916.022100 accepted/tizen/unified/20220916.022138
SangYoun Kwak [Fri, 2 Sep 2022 07:08:52 +0000 (16:08 +0900)]
Fix typo (partition status path)

Change-Id: I7de7e713c6a448a833baaaee7d90f6e0e801dcc4
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2 years agoFix hal APIs according to documentations 82/280682/1
SangYoun Kwak [Fri, 2 Sep 2022 06:35:04 +0000 (15:35 +0900)]
Fix hal APIs according to documentations

Documents of hal APIs can be found here: hal-api-device/include/hal-board.h

Change-Id: I3c0dff62ba8ca8360c417b8c032bbdd880c80f48
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2 years agoadd API functions get_upgrade_status(), set_partition_status(), 62/280462/15
Marek Szulc [Tue, 30 Aug 2022 08:16:48 +0000 (10:16 +0200)]
add API functions get_upgrade_status(), set_partition_status(),
get_partition_status(), clear_boot_mode()

Change-Id: Ifc9c32d3c7c27d42cb907aabf769daa95fa2cefe
Signed-off-by: Marek Szulc <m.szulc3@samsung.com>
2 years agoAdd hal api (get_boot_mode) 34/279734/1
SangYoun Kwak [Wed, 17 Aug 2022 05:47:16 +0000 (14:47 +0900)]
Add hal api (get_boot_mode)

Change-Id: I7b4e338cd86e339dccc26319711b5be09c5d8a09
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2 years agoAdd hal board functions to manipulate partition/upgrade parameters 34/277834/2 accepted/tizen/unified/20220715.141308 submit/tizen/20220714.055817
SangYoun Kwak [Thu, 14 Jul 2022 04:47:20 +0000 (13:47 +0900)]
Add hal board functions to manipulate partition/upgrade parameters

Change-Id: Ie3946532dbb0c93026fe94156b32504bf3b45fe0
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2 years agoAdd list of PARTLABEL and LABEL of a/b partitions 26/277826/2
SangYoun Kwak [Thu, 14 Jul 2022 01:46:05 +0000 (10:46 +0900)]
Add list of PARTLABEL and LABEL of a/b partitions

Change-Id: I50226ee8a39fef130201c1ea42b32897e13bce98
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2 years agoAdd hal board function to get/switch partition_ab 65/277765/2
SangYoun Kwak [Wed, 13 Jul 2022 04:46:46 +0000 (13:46 +0900)]
Add hal board function to get/switch partition_ab

Change-Id: Ic217a5077414e9f51c79c6394cff2429cc806e55
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
3 years agousb-gadget: remove usb-gadget and add configuration file 47/274547/1 accepted/tizen/unified/20220526.144121 submit/tizen/20220525.001052
Youngjae Cho [Mon, 2 May 2022 07:16:13 +0000 (16:16 +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: Idb2ccbb9e4b19651fd2674ec932baac1f82f63e8
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agodisplay: separate rpi3/rpi4 nodepath 11/271911/2 accepted/tizen/unified/20220310.120950 submit/tizen/20220308.032646
Youngjae Cho [Thu, 3 Mar 2022 05:45:06 +0000 (14:45 +0900)]
display: separate rpi3/rpi4 nodepath

It creates two libraries that are exactly same except for brightness
nodepath. Each library is packaged into corresponding rpi3/rpi4 rpm.

Change-Id: I3c6498211d3e75eb7541ee1595aa25df070ab051
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agoUpdate ABI version 73/271073/1 submit/tizen/20220222.024249
Youngjae Cho [Tue, 15 Feb 2022 06:24:55 +0000 (15:24 +0900)]
Update ABI version

Change-Id: If12534d556b067b2869085fe96c989bfad74e2b2
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agomemory: consider changed rpi4 dri node for gem_info 29/270929/2 accepted/tizen/unified/20220212.064808 submit/tizen/20220210.111655 submit/tizen/20220211.080709 submit/tizen/20220211.102515
Seung-Woo Kim [Fri, 11 Feb 2022 04:58:12 +0000 (13:58 +0900)]
memory: consider changed rpi4 dri node for gem_info

From rpi4 new vendor kernel release, dri nodes are changed between
v3d and vc4, so gem_info can be in card 1. Consider also the
changed sysfs node.

Change-Id: I33cf4f3a0fc515a04f7fb180309610b3db49b7b7
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
3 years agodisplay: return -ENOTSUP if there is no brightness node 48/270748/2 submit/tizen/20220208.075544
Youngjae Cho [Mon, 7 Feb 2022 04:11:34 +0000 (13:11 +0900)]
display: return -ENOTSUP if there is no brightness node

Change-Id: Ic42e6ca43297dc8a7e7c9ad8547b0397039e7dd5
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agospec: add "ExclusiveArch: %{arm} aarch64" 93/268293/1 accepted/tizen/unified/20211220.133626 submit/tizen/20211220.071509
INSUN PYO [Mon, 20 Dec 2021 04:41:16 +0000 (13:41 +0900)]
spec: add "ExclusiveArch: %{arm} aarch64"

Change-Id: I02c8ae54c35a4f39b21f40659c314ef2f347bd29

3 years agotouchscreen: disable get/set state by kerenl version 98/264598/1 accepted/tizen/6.5/unified/20211028.115524 accepted/tizen/unified/20210927.120907 submit/tizen/20210927.071602 submit/tizen_6.5/20211028.163201 tizen_6.5.m2_release
Youngjae Cho [Mon, 27 Sep 2021 05:51:49 +0000 (14:51 +0900)]
touchscreen: disable get/set state by kerenl version

Change-Id: I5fc2df8336470fb9e24efbebe819706ae9020031
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agoIntroduce separate package and config for RPi3/RPi4 50/261850/10 accepted/tizen/unified/20210810.065637 submit/tizen/20210810.054703
Mateusz Majewski [Tue, 27 Jul 2021 07:45:02 +0000 (09:45 +0200)]
Introduce separate package and config for RPi3/RPi4

Change-Id: Ibc6a1574ad4d872e21bd87ca4c4aa2fe92e10f46

3 years agothermal: rename device_thermal_e to hal_device_thermal_e 50/262050/1 accepted/tizen/unified/20210804.085740 submit/tizen/20210802.064402
Youngjae Cho [Mon, 2 Aug 2021 05:34:20 +0000 (14:34 +0900)]
thermal: rename device_thermal_e to hal_device_thermal_e

Change-Id: I57433638117491dfe64d4a2078ccc486697ebec8
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agoperipheral-io: add spaces to uart config 55/261755/1
Adrian Szyndela [Fri, 23 Jul 2021 12:01:35 +0000 (14:01 +0200)]
peripheral-io: add spaces to uart config

For better readability and aesthetics.

Change-Id: I3899f5449eba0f3d8d5bb03e20af1fb0409c1504

3 years agoperipheral-io: add config file for GPIO 81/261581/1
Adrian Szyndela [Wed, 21 Jul 2021 12:18:04 +0000 (14:18 +0200)]
peripheral-io: add config file for GPIO

Change-Id: I970d4c3488f57379e489e63954502a35dda390cf
Signed-off-by: Adrian Szyndela <adrian.s@samsung.com>
3 years agoperipheral-io: add uart port-devpath mapping file 45/260745/3 accepted/tizen/unified/20210705.125141 submit/tizen/20210705.023617
Youngjae Cho [Fri, 2 Jul 2021 05:01:58 +0000 (14:01 +0900)]
peripheral-io: add uart port-devpath mapping file

Change-Id: If115206aaa3d5ea46c0c02d2469cb298f68cbb92
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agoboard: fix parameter of get_device_serial_number() 48/260048/1 accepted/tizen/unified/20210621.123310 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>
3 years agoAdd libsyscommon to required package to provide linker flag 75/259975/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>
4 years agoMerge "board: renaming get_device_serial_number" into tizen accepted/tizen/unified/20210615.120433 submit/tizen/20210614.021455
Hyotaek Shim [Mon, 14 Jun 2021 02:10:44 +0000 (02:10 +0000)]
Merge "board: renaming get_device_serial_number" into tizen

4 years agoboard: renaming get_device_serial_number 67/259767/1
Youngjae Cho [Mon, 14 Jun 2021 01:53:57 +0000 (10:53 +0900)]
board: renaming get_device_serial_number

Change-Id: I79a94dc5418c83994bd39fedf1504c6c59f32325
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoreboot: support storage partition for delivering reboot parameters 09/259409/6 accepted/tizen/unified/20210609.082341 submit/tizen/20210609.021843
INSUN PYO [Mon, 7 Jun 2021 09:20:22 +0000 (18:20 +0900)]
reboot: support storage partition for delivering reboot parameters

In rpi, there is no way for the kernel and bootloader to pass the boot reason.
So, platform provides /mnt/inform (/dev/disk/by-label/inform) storage to kernel.
The kernel passes the reboot reason to the bootloader throught this.

Change-Id: I5f33b54ef653aff08d8e79d71b05f916f695fba7
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoInitialization for platform/hal/backend/rpi/device-rpi 21/259321/3 accepted/tizen/unified/20210604.120629 submit/tizen/20210604.091051
Hyotaek Shim [Fri, 4 Jun 2021 08:55:57 +0000 (17:55 +0900)]
Initialization for platform/hal/backend/rpi/device-rpi

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

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

 - memory: DIVISION_BY_ZERO

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

Change-Id: Ib72bb4098024c5024e3c2bbeb3363ba9ea8282ff
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
4 years agoMove common macro to device-common
lokilee73 [Mon, 15 Feb 2021 01:37:01 +0000 (10:37 +0900)]
Move common macro to device-common

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

Change-Id: I9e5fc51c5ffbd07e6f3fae269d26de50c7b46943

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

Change-Id: I0f054ccd8b2d2fad46605c5aac361be5a1a77528

4 years agoBoard : apply rpm macro of hal install path
lokilee73 [Tue, 26 Jan 2021 06:21:19 +0000 (15:21 +0900)]
Board : apply rpm macro of hal install path

Change-Id: Id7c08ce11073be919ce4efa58d812b2635669708
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
4 years agoApply rpm macro of hal install path
lokilee73 [Tue, 26 Jan 2021 05:43:38 +0000 (14:43 +0900)]
Apply rpm macro of hal install path

Change-Id: I852d4997ba918fd02205764825ef1af8c08fb585
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
4 years agousb_gadget: apply next HAL architecture (hal api + backend)
INSUN PYO [Fri, 15 Jan 2021 11:34:17 +0000 (20:34 +0900)]
usb_gadget: apply next HAL architecture (hal api + backend)

Change-Id: Ibb580c5b4a59db583dd2986616eb7c79b5070dfa

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

Change-Id: Ie718cb852a6a6583a6fbcde1cf30f63ef4b73c87
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
4 years agoRework led hal
lokilee73 [Mon, 18 Jan 2021 03:22:23 +0000 (12:22 +0900)]
Rework led hal

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

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

Change-Id: I2fdf1c8a5c244d40836df1962c82cf467dd7dc83
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
4 years agoChange vender name
lokilee73 [Wed, 13 Jan 2021 04:43:17 +0000 (13:43 +0900)]
Change vender name

Change-Id: I211f45b164f1dde5a4c29fd0138d9e6c316a7482

4 years agoApply next HAL architecture (hal api + backend)
lokilee73 [Tue, 12 Jan 2021 08:26:22 +0000 (17:26 +0900)]
Apply next HAL architecture (hal api + backend)

Change-Id: Ifec0a7e4acf0b296ca7b18814a94deaaf25e4b7a
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoAdd board module
Hyotaek Shim [Tue, 25 Feb 2020 02:45:35 +0000 (11:45 +0900)]
Add board module

Change-Id: I32465c971caf578d11e6de94a12c8d5601d839f9
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
5 years agoEnable USB gadget for RPI4
INSUN PYO [Thu, 6 Feb 2020 07:38:03 +0000 (16:38 +0900)]
Enable USB gadget for RPI4

You can use this usb hal with both RPI3 and RPI4.
////////////////////////////////////////////////////////////////////////////////////////////////////
RPI3 does not have /sys/kernel/config and usb initialization faiied.
So, usb is not enabled in RPI3.
Therefore, a single usb hal can be used in both RPI3 and RPI4.

Deviced internal design for extcon providing incomplete functionality
////////////////////////////////////////////////////////////////////////////////////////////////////
Excon does not work perfectly in RPI4
So I asked the kernel team to fix the extcon value to 1.
If extcon is always 1, deviecd will not recognize when usb is disconnected, but it will work normally.

Conclusion: For targets where extcon does not work perfectly, deviced do not support usb connect/disconnect.

Change-Id: Iea3ae481b3120432197a849956fc5332748957ad
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
5 years agoRevert "Workaround for RPi4 bring-up"
Hyotaek Shim [Fri, 7 Feb 2020 10:25:18 +0000 (10:25 +0000)]
Revert "Workaround for RPi4 bring-up"

This reverts commit 81c57d47fda09f53336023696fbd71098afa1d13.

Change-Id: If4e25f864efda2925d4c46b1d03369fdadcaef72

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

Change-Id: Ic4cfc6347d38e0e7a59c8eb5f7fc2f12fecdc7a4
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
5 years agoWorkaround for RPi4 bring-up
Hyotaek Shim [Mon, 3 Feb 2020 05:29:58 +0000 (14:29 +0900)]
Workaround for RPi4 bring-up

Change-Id: Id772a00e3dee566643b2323143d2eb40e59a3488
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
5 years agoFix logging location
Youngjae Cho [Wed, 20 Nov 2019 05:51:27 +0000 (14:51 +0900)]
Fix logging location

Change-Id: I4646d7e6dd0706e90f68bfc6108a2159cf9ff36c
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
6 years agoAdd thermal module for device_thermal_get_temperature
lokilee73 [Fri, 11 Jan 2019 12:21:48 +0000 (21:21 +0900)]
Add thermal module for device_thermal_get_temperature

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

Change-Id: I1001d32a54715d05d4189d3c407c20aa2482454b
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoMove shared files to hwcommon package
lokilee73 [Tue, 10 Jul 2018 06:28:18 +0000 (15:28 +0900)]
Move shared files to hwcommon package

Change-Id: I6e14eb3b3b765ba7e66bd433a575a24df1f004e7
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoModify blinkm_led_stop_script
lokilee73 [Wed, 27 Jun 2018 02:30:36 +0000 (11:30 +0900)]
Modify blinkm_led_stop_script

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

Change-Id: If67f2b0fc03effbfd4e87d8c5a0737a581e1dfa6
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
7 years agoMerge "udev: Increase udev monitor buffer size" into tizen
INSUN PYO [Wed, 27 Sep 2017 06:45:02 +0000 (06:45 +0000)]
Merge "udev: Increase udev monitor buffer size" into tizen

7 years agoudev: Increase udev monitor buffer size
INSUN PYO [Wed, 27 Sep 2017 05:13:06 +0000 (14:13 +0900)]
udev: Increase udev monitor buffer size

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

7 years agotouchscreen: control interface change to sysfs
KwangCheol Lee [Wed, 13 Sep 2017 10:53:04 +0000 (19:53 +0900)]
touchscreen: control interface change to sysfs

The control interface of touchscreen is changed from
the kernel module loading/unloading to sysfs enable interface.

Version changed to 0.0.2

Change-Id: Ifab000c27b17638ba1cf69583ab2fe79f49a1f4e
Signed-off-by: KwangCheol Lee <kclee@dignsys.com>
(cherry picked from commit 8d690c714b2544c11410ab7b41c10fe150a28821)

7 years agoled: Add LED HAL interface for RPI3 blinkm led device
scott park [Wed, 19 Jul 2017 11:07:44 +0000 (20:07 +0900)]
led: Add LED HAL interface for RPI3 blinkm led device

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

Change-Id: Ie8438a3133498b9726130363c6491930dbefdf92
Signed-off-by: scott park <scott.park@dignsys.com>
7 years agoAdd Display HAL and Touchscreen HAL
KwangCheol Lee [Tue, 27 Jun 2017 03:20:55 +0000 (12:20 +0900)]
Add Display HAL and Touchscreen HAL

 - Removed unused files:
     battery, external_connection, usb_client and usb_gadget
 - Removed unnecessary lines.
 - Removed whitespaces.
 - Remove redundant lines in CMakeLists.txt file.
 - Remove unnecessary line in spec file.

Change-Id: I2074a4b1916110480b3d0ae272077b2380053d74

8 years agoInitial empty repository
Tizen Infrastructure [Mon, 29 May 2017 23:12:58 +0000 (23:12 +0000)]
Initial empty repository