Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4c6aa4e0 authored by Manu Gautam's avatar Manu Gautam
Browse files

usb_bam: restructure and cleanup code to handle multi instances



Driver supports all the USB bam2bam connections that are
available for all USB cores -  DWC3, CI or HSIC. But, current
design requires single devicetree node to specify all the
information which affects readability and adds few DT attributes
with redundant information.
Cleanup all this mess by restructuring the driver to allow
each USB controller specify/register DT node corresponding to
its own BAM core only. Few DT related  modifications as part of
this patch include changing attribute e.g. bam_type, reset-on-connect
and reset-on-disconnect from per connection to per BAM instance,
and replacing src-bam-physical-address and dst-bam-physical-address
with peer-bam-physical-address as it is now straight forward to
pick USB BAM's physical address (src or dst depends on PIPE's DIR)
from the DT node's reg property.

Change-Id: I427f88c736fda3ae0a71f3641334cf4f2231756c
Signed-off-by: default avatarManu Gautam <mgautam@codeaurora.org>
parent eaa23eb8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment