Enable USB gadget for RPI4 01/224101/7 accepted/tizen/unified/20200224.081522 submit/tizen/20200221.073452
authorINSUN PYO <insun.pyo@samsung.com>
Thu, 6 Feb 2020 07:38:03 +0000 (16:38 +0900)
committerINSUN PYO <insun.pyo@samsung.com>
Fri, 21 Feb 2020 06:14:45 +0000 (15:14 +0900)
commit2b4d1ac644f634687defc56636ca06ab57ee7259
tree6a51ba3f0a60522863791f323c4ca1de6969c3ee
parent3b8b7fc1206bd1ed14b6453f179d65422ed0257f
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>
CMakeLists.txt
hw/usb_cfs_client/CMakeLists.txt [new file with mode: 0644]
hw/usb_cfs_client/usb_cfs_client.c [new file with mode: 0644]
hw/usb_gadget/CMakeLists.txt [new file with mode: 0644]
hw/usb_gadget/usb_gadget.c [new file with mode: 0644]