]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sh: pci: Kill off unused SH4_PCIC_NO_RESET code.
authorPaul Mundt <lethal@linux-sh.org>
Thu, 16 Apr 2009 09:01:31 +0000 (18:01 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 16 Apr 2009 09:01:31 +0000 (18:01 +0900)
Nothing ended up using this anymore, so just kill it off.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
12 files changed:
arch/sh/drivers/pci/ops-landisk.c
arch/sh/drivers/pci/ops-lboxre2.c
arch/sh/drivers/pci/ops-r7780rp.c
arch/sh/drivers/pci/ops-rts7751r2d.c
arch/sh/drivers/pci/ops-sdk7780.c
arch/sh/drivers/pci/ops-se7780.c
arch/sh/drivers/pci/ops-sh7785lcr.c
arch/sh/drivers/pci/ops-snapgear.c
arch/sh/drivers/pci/ops-titan.c
arch/sh/drivers/pci/pci-sh4.h
arch/sh/drivers/pci/pci-sh7751.c
arch/sh/drivers/pci/pci-sh7780.c

index c46911d95eca53ac4f3051d6b61848fba3ebd5e8..178b77828aa98475813e733242fbb03801797f52 100644 (file)
@@ -39,8 +39,6 @@ static struct sh4_pci_address_map sh7751_pci_map = {
                .base   = SH7751_CS3_BASE_ADDR,
                .size   = (64 << 20),   /* 64MB */
        },
-
-       .flags = SH4_PCIC_NO_RESET,
 };
 
 int __init pcibios_init_platform(void)
index 781496bfb1f91da91c1369af35541819ff0b82a7..91cabd84f028e3cdfd35ec0588601708074a6174 100644 (file)
@@ -48,11 +48,6 @@ static struct sh4_pci_address_map sh7751_pci_map = {
                .base   = SH7751_CS3_BASE_ADDR,
                .size   = 0x04000000,
        },
-       .window1        = {
-               .base   = 0x00000000,   /* Unused */
-               .size   = 0x00000000,   /* Unused */
-       },
-       .flags  = SH4_PCIC_NO_RESET,
 };
 
 int __init pcibios_init_platform(void)
index c58f1cff9fbacddcd580761ff62a079fec0488b8..8ec6d225ef9d556db520e158093a6b4425b6e203 100644 (file)
@@ -57,8 +57,6 @@ static struct sh4_pci_address_map sh7780_pci_map = {
                .base   = SH7780_CS3_BASE_ADDR,
                .size   = 0x04000000,
        },
-
-       .flags  = SH4_PCIC_NO_RESET,
 };
 
 int __init pcibios_init_platform(void)
index d374cd37f455a4e24840684b6caaccc878492c53..96b916c0d6c5b0d70565f85c160942b8d66519c1 100644 (file)
@@ -56,13 +56,6 @@ static struct sh4_pci_address_map sh7751_pci_map = {
                .base   = SH7751_CS3_BASE_ADDR,
                .size   = 0x04000000,
        },
-
-       .window1        = {
-               .base   = 0x00000000,   /* Unused */
-               .size   = 0x00000000,   /* Unused */
-       },
-
-       .flags  = SH4_PCIC_NO_RESET,
 };
 
 int __init pcibios_init_platform(void)
index b34fbc54a7c670da165f84a3a4746e13343c3174..6a0b7c067831f11192ac5ee1215ccc9a0f97e79e 100644 (file)
@@ -62,7 +62,6 @@ static struct sh4_pci_address_map sdk7780_pci_map = {
                .base   = SH7780_CS3_BASE_ADDR,
                .size   = 0x04000000,
        },
-       .flags  = SH4_PCIC_NO_RESET,
 };
 
 int __init pcibios_init_platform(void)
index 47302077a0c81f9f4623d96c0e0c7b92cbd26c93..583b8e82ff994da2f95220b64219780122a9cbad 100644 (file)
@@ -67,7 +67,6 @@ static struct sh4_pci_address_map se7780_pci_map = {
                .base   = SH7780_CS2_BASE_ADDR,
                .size   = 0x04000000,
        },
-       .flags  = SH4_PCIC_NO_RESET,
 };
 
 int __init pcibios_init_platform(void)
index afbb9bd47513c1f503c12aac908728ad2266cd26..ab0d1decf2df812aa85a5d2afa7df98c2626f877 100644 (file)
@@ -55,8 +55,6 @@ static struct sh4_pci_address_map sh7785_pci_map = {
                .size   = 0x20000000,
 #endif
        },
-
-       .flags  = SH4_PCIC_NO_RESET,
 };
 
 int __init pcibios_init_platform(void)
index 2e254c6cf6c1aa51f9a8813a83f4b9cd47eca77e..dd2c5df283079b0f6bbbacd2c581774afb892534 100644 (file)
@@ -54,8 +54,6 @@ static struct sh4_pci_address_map sh7751_pci_map = {
                .base   = SH7751_CS2_BASE_ADDR,
                .size   = SNAPGEAR_LSR1_SIZE,
        },
-
-       .flags  = SH4_PCIC_NO_RESET,
 };
 
 /*
index 31ed03716a2c8e9fee77cba9729c906371f652b1..e45bb62bf8ce08aa539e79b135ee61e95f9f1588 100644 (file)
@@ -66,8 +66,6 @@ static struct sh4_pci_address_map sh7751_pci_map = {
                .base   = SH7751_CS2_BASE_ADDR,
                .size   = SH7751_MEM_REGION_SIZE*2,
        },
-
-       .flags  = SH4_PCIC_NO_RESET,
 };
 
 int __init pcibios_init_platform(void)
index 90abfe3d39bb509cbad9cc8943870dd24e9d6a99..3d5296cde622d2ccd27af59ec75dd73650b9388d 100644 (file)
   #define SH4_PCIPDTR_PB0        0x000000001   /* Port 0 Enable */
 #define SH4_PCIPDR             0x220           /* Port IO Data Register */
 
-/* Flags */
-#define SH4_PCIC_NO_RESET      0x0001
-
 /* arch/sh/kernel/drivers/pci/ops-sh4.c */
 extern struct pci_ops sh4_pci_ops;
 int sh4_pci_check_direct(struct pci_channel *chan);
@@ -165,7 +162,6 @@ struct sh4_pci_address_space {
 struct sh4_pci_address_map {
        struct sh4_pci_address_space window0;
        struct sh4_pci_address_space window1;
-       unsigned long flags;
 };
 
 static inline void pci_write_reg(struct pci_channel *chan,
index 2a6c7aab2d754567fb796e5652b2aaa4bbec8c97..af8874436d2f94acf9cfea634c5e690d158a07ad 100644 (file)
@@ -99,21 +99,6 @@ int __init sh7751_pcic_init(struct pci_channel *chan,
        word = SH4_PCIPINT_D3 | SH4_PCIPINT_D0;
        pci_write_reg(chan, word, SH4_PCIPINT);
 
-       /*
-        * This code is unused for some boards as it is done in the
-        * bootloader and doing it here means the MAC addresses loaded
-        * by the bootloader get lost.
-        */
-       if (!(map->flags & SH4_PCIC_NO_RESET)) {
-               /* toggle PCI reset pin */
-               word = SH4_PCICR_PREFIX | SH4_PCICR_PRST;
-               pci_write_reg(chan, word, SH4_PCICR);
-               /* Wait for a long time... not 1 sec. but long enough */
-               mdelay(100);
-               word = SH4_PCICR_PREFIX;
-               pci_write_reg(chan, word, SH4_PCICR);
-       }
-
        /* set the command/status bits to:
         * Wait Cycle Control + Parity Enable + Bus Master +
         * Mem space enable
index 87a7f3b7a38f692e74145bb3de02fc0059c7bc66..282cabe15e3694979a8af616feb4ffebdf5e0629 100644 (file)
@@ -96,21 +96,6 @@ int __init sh7780_pcic_init(struct pci_channel *chan,
 {
        u32 word;
 
-       /*
-        * This code is unused for some boards as it is done in the
-        * bootloader and doing it here means the MAC addresses loaded
-        * by the bootloader get lost.
-        */
-       if (!(map->flags & SH4_PCIC_NO_RESET)) {
-               /* toggle PCI reset pin */
-               word = SH4_PCICR_PREFIX | SH4_PCICR_PRST;
-               pci_write_reg(chan, word, SH4_PCICR);
-               /* Wait for a long time... not 1 sec. but long enough */
-               mdelay(100);
-               word = SH4_PCICR_PREFIX;
-               pci_write_reg(chan, word, SH4_PCICR);
-       }
-
        /* set the command/status bits to:
         * Wait Cycle Control + Parity Enable + Bus Master +
         * Mem space enable