1 Bugzilla 1647. This patch resets PCI which fixes the USB problem on mcf5475.
3 Set PCI registers MCF_PCIGSCR and MCF_PCITCR to their reset defaults.
4 This fixes the USB problem and enables other PCI cards, such as PCI
5 network to function properly.
7 Original work of Matt Waddel
8 Signed-off-by: Ross Wille
10 --- a/arch/m68k/coldfire/mcf548x-pci.c
11 +++ b/arch/m68k/coldfire/mcf548x-pci.c
14 * ColdFire 547x/548x PCI Host Controller functions
16 + * Copyright (c) 2005-2008 Freescale Semiconductor, Inc.
18 + * This code is based on the 2.6.10 version of pci.c
20 + * This program is free software; you can redistribute it and/or modify
21 + * it under the terms of the GNU General Public License as published by
22 + * the Free Software Foundation; either version 2 of the License, or
23 + * (at your option) any later version.
25 + * This program is distributed in the hope that it will be useful,
26 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 + * GNU General Public License for more details.
30 + * You should have received a copy of the GNU General Public License
31 + * along with this program; if not, write to the Free Software
32 + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
34 #include <linux/kernel.h>
35 #include <linux/types.h>
36 @@ -815,6 +833,13 @@ struct pci_bus_info *__init init_coldfir
40 + /* Must Reset!!! If bootloader has PCI enabled, it will cause
41 + * problem in linux when it tries to configure/find resources
42 + * for the pci devices. Both registers need to be reset.
45 + MCF_PCITCR = 0x00000000;
47 /* Set up the arbiter */
48 MCF_PCIARB_PACR = 0 /*MCF_PCIARB_PACR_PKMD*/
49 | MCF_PCIARB_PACR_INTMPRI