Skip to content

Commit

Permalink
src/soc/intel/baytrail/pcie.c: update hotplug function
Browse files Browse the repository at this point in the history
Signed-off-by: Filip Lewiński <[email protected]>
  • Loading branch information
filipleple committed Aug 19, 2024
1 parent 59d0b38 commit 55ba4b3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/soc/intel/baytrail/pcie.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,8 @@ static void check_device_present(struct device *dev)
{
struct reg_script hotplug_port[] = {
REG_PCI_RMW32(PCIEALC, ~(1 << 26), 0),
/* Configure hot plug, set power to 10W, set slot number. */
REG_PCI_RMW32(SLCAP, ~(HPC | HPS),
(1 << SLS_SHIFT) | (100 << SLV_SHIFT) |
(root_port_offset(dev) << SLN_SHIFT) |
(HPC | HPS)),
/* Configure hot plug */
REG_PCI_OR32(SLCAP, ~(HPC | HPS)),
REG_PCI_RMW32(SLCTL_SLSTS, ~HPE, 0),
REG_PCI_OR32(SLCTL_SLSTS, (ABE | PDE)),
REG_PCI_OR32(UEM, CT),
Expand Down

0 comments on commit 55ba4b3

Please sign in to comment.