Skip to content

Commit

Permalink
ARM: 5597/1: [PCI] reset all internal hardware prior PCI initialization
Browse files Browse the repository at this point in the history
Make software reset to avoid freeze if PCI bus was messed up

Signed-off-by: Yegor Yefremov <[email protected]>
Acked-by: Andrew Victor <[email protected]>
Signed-off-by: Russell King <[email protected]>
  • Loading branch information
yegorich authored and Russell King committed Jul 30, 2009
1 parent 0a52ac8 commit 320145f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/arm/mach-ks8695/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ static int ks8695_pci_fault(unsigned long addr, unsigned int fsr, struct pt_regs

static void __init ks8695_pci_preinit(void)
{
/* make software reset to avoid freeze if PCI bus was messed up */
__raw_writel(0x80000000, KS8695_PCI_VA + KS8695_PBCS);

/* stage 1 initialization, subid, subdevice = 0x0001 */
__raw_writel(0x00010001, KS8695_PCI_VA + KS8695_CRCSID);

Expand Down

0 comments on commit 320145f

Please sign in to comment.