~ubuntu-branches/ubuntu/vivid/linux-fsl-imx51/vivid

« back to all changes in this revision

Viewing changes to drivers/net/cs89x0.c

  • Committer: Bazaar Package Importer
  • Author(s): Andy Whitcroft, Amit Kucheria, Andy Whitcroft, Bryan Wu, Upstream Kernel Changes
  • Date: 2010-01-11 16:26:27 UTC
  • Revision ID: james.westby@ubuntu.com-20100111162627-1q2fl9tcuwcywt1e
Tags: 2.6.31-602.4
[ Amit Kucheria ]

* Update to official 2.6.31 BSP release from Freescale

[ Andy Whitcroft ]

* drop a number of modules no longer built

[ Bryan Wu ]

* [Config] Update configs after applying .31 patchset from Freescale
* [Config] Sync with imx51_defconfig from Freescale BSP

[ Upstream Kernel Changes ]

* Update to official 2.6.31 BSP release from Freescale.

Show diffs side-by-side

added added

removed removed

Lines of Context:
189
189
#define CIRRUS_DEFAULT_IRQ      VH_INTC_INT_NUM_CASCADED_INTERRUPT_1 /* Event inputs bank 1 - ID 35/bit 3 */
190
190
static unsigned int netcard_portlist[] __used __initdata = {CIRRUS_DEFAULT_BASE, 0};
191
191
static unsigned int cs8900_irq_map[] = {CIRRUS_DEFAULT_IRQ, 0, 0, 0};
192
 
#elif defined(CONFIG_MACH_MX31ADS)
193
 
#include <mach/board-mx31ads.h>
194
 
static unsigned int netcard_portlist[] __used __initdata = {
195
 
        PBC_BASE_ADDRESS + PBC_CS8900A_IOBASE + 0x300, 0
196
 
};
197
 
static unsigned cs8900_irq_map[] = {EXPIO_INT_ENET_INT, 0, 0, 0};
 
192
#elif defined(CONFIG_ARCH_MXC)
 
193
/*! Null terminated portlist used to probe for the CS8900A device on ISA Bus
 
194
 * Add 3 to reset the page window before probing (fixes eth probe when deployed
 
195
 * using nand_boot)
 
196
 */
 
197
extern unsigned int netcard_portlist[2];
 
198
/*!
 
199
 * The CS8900A has 4 IRQ pins, which is software selectable, CS8900A interrupt
 
200
 * pin 0 is used for interrupt generation.
 
201
 */
 
202
extern unsigned int cs8900_irq_map[4];
198
203
#else
199
204
static unsigned int netcard_portlist[] __used __initdata =
200
205
   { 0x300, 0x320, 0x340, 0x360, 0x200, 0x220, 0x240, 0x260, 0x280, 0x2a0, 0x2c0, 0x2e0, 0};
1034
1039
 
1035
1040
static void __init reset_chip(struct net_device *dev)
1036
1041
{
1037
 
#if !defined(CONFIG_MACH_MX31ADS)
 
1042
#if !defined(CONFIG_ARCH_MXC)
1038
1043
#if !defined(CONFIG_MACH_IXDP2351) && !defined(CONFIG_ARCH_IXDP2X01)
1039
1044
        struct net_local *lp = netdev_priv(dev);
1040
1045
        int ioaddr = dev->base_addr;
1063
1068
        reset_start_time = jiffies;
1064
1069
        while( (readreg(dev, PP_SelfST) & INIT_DONE) == 0 && jiffies - reset_start_time < 2)
1065
1070
                ;
1066
 
#endif /* !CONFIG_MACH_MX31ADS */
 
1071
#endif  /* !CONFIG_ARCH_MXC */
1067
1072
}
1068
1073
 
1069
1074