mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
usb: dwc3: pci: Intel Merrifield can be host
On Intel Edison board the OTG function is enabled, thus, USB can switch to the host mode. Allow that by changing dr_mode property to "otg" for Intel Merrifield. Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
This commit is contained in:
parent
1a7b12f69a
commit
c31d983bea
1 changed files with 7 additions and 1 deletions
|
|
@ -107,6 +107,12 @@ static const struct property_entry dwc3_pci_intel_properties[] = {
|
|||
{}
|
||||
};
|
||||
|
||||
static const struct property_entry dwc3_pci_mrfld_properties[] = {
|
||||
PROPERTY_ENTRY_STRING("dr_mode", "otg"),
|
||||
PROPERTY_ENTRY_BOOL("linux,sysdev_is_parent"),
|
||||
{}
|
||||
};
|
||||
|
||||
static const struct property_entry dwc3_pci_amd_properties[] = {
|
||||
PROPERTY_ENTRY_BOOL("snps,has-lpm-erratum"),
|
||||
PROPERTY_ENTRY_U8("snps,lpm-nyet-threshold", 0xf),
|
||||
|
|
@ -295,7 +301,7 @@ static const struct pci_device_id dwc3_pci_id_table[] = {
|
|||
(kernel_ulong_t) &dwc3_pci_intel_properties, },
|
||||
|
||||
{ PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_MRFLD),
|
||||
(kernel_ulong_t) &dwc3_pci_intel_properties, },
|
||||
(kernel_ulong_t) &dwc3_pci_mrfld_properties, },
|
||||
|
||||
{ PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_SPTLP),
|
||||
(kernel_ulong_t) &dwc3_pci_intel_properties, },
|
||||
|
|
|
|||
Loading…
Reference in a new issue