usbdebug: Remove duplicate port claim
This claim is useless when done before EHCI controller reset. Code in usbdebug_init_() already sets this properly after reset, see use of DBGP_OWNER. Change-Id: Ic17493fe4edbbbed6ebcbef35a264fbf188f1fba Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/4709 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@google.com>
This commit is contained in:
parent
0108bf5157
commit
089b88c165
|
@ -64,8 +64,6 @@ void pci_ehci_dbg_set_port(pci_devfn_t dev, unsigned int port)
|
||||||
|
|
||||||
void pci_ehci_dbg_enable(pci_devfn_t dev, unsigned long base)
|
void pci_ehci_dbg_enable(pci_devfn_t dev, unsigned long base)
|
||||||
{
|
{
|
||||||
u32 dbgctl;
|
|
||||||
|
|
||||||
/* Bail out. No console to complain in. */
|
/* Bail out. No console to complain in. */
|
||||||
if (!dev)
|
if (!dev)
|
||||||
return;
|
return;
|
||||||
|
@ -75,9 +73,4 @@ void pci_ehci_dbg_enable(pci_devfn_t dev, unsigned long base)
|
||||||
|
|
||||||
/* Enable access to the EHCI memory space registers. */
|
/* Enable access to the EHCI memory space registers. */
|
||||||
pci_write_config8(dev, PCI_COMMAND, PCI_COMMAND_MEMORY);
|
pci_write_config8(dev, PCI_COMMAND, PCI_COMMAND_MEMORY);
|
||||||
|
|
||||||
/* Force ownership of the Debug Port to the EHCI controller. */
|
|
||||||
dbgctl = read32(base + CONFIG_EHCI_DEBUG_OFFSET);
|
|
||||||
dbgctl |= (1 << 30);
|
|
||||||
write32(base + CONFIG_EHCI_DEBUG_OFFSET, dbgctl);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue