[kernel] add more missing configuration symbols
[openwrt.git] / target / linux / coldfire / patches / 089-m547x_8x_pci_reset_usb_fix.patch
1 Bugzilla 1647. This patch resets PCI which fixes the USB problem on mcf5475.
2
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.
6
7 Original work of Matt Waddel
8 Signed-off-by: Ross Wille
9
10 --- a/arch/m68k/coldfire/mcf548x-pci.c
11 +++ b/arch/m68k/coldfire/mcf548x-pci.c
12 @@ -1,5 +1,23 @@
13 /*
14 * ColdFire 547x/548x PCI Host Controller functions
15 + *
16 + * Copyright (c) 2005-2008 Freescale Semiconductor, Inc.
17 + *
18 + * This code is based on the 2.6.10 version of pci.c
19 + *
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.
24 + *
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.
29 + *
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.
33 */
34 #include <linux/kernel.h>
35 #include <linux/types.h>
36 @@ -815,6 +833,13 @@ struct pci_bus_info *__init init_coldfir
37 return NULL;
38 }
39
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.
43 + */
44 + MCF_PCIGSCR = 0x1;
45 + MCF_PCITCR = 0x00000000;
46 +
47 /* Set up the arbiter */
48 MCF_PCIARB_PACR = 0 /*MCF_PCIARB_PACR_PKMD*/
49 | MCF_PCIARB_PACR_INTMPRI
This page took 0.048305 seconds and 5 git commands to generate.