Changeset 10509


Ignore:
Timestamp:
2008-02-20T18:56:24+01:00 (8 years ago)
Author:
mb
Message:

bcm47xx: Add driver for the SSB Gigabit Ethernet core.
It doesn't work, yet, but let's commit what we have.

Location:
trunk
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/kernel/modules/network.mk

    r10162 r10509  
    716716 
    717717$(eval $(call KernelPackage,3c59x)) 
     718 
     719define KernelPackage/tg3 
     720  TITLE:=Broadcom Tigon3 Gigabit Ethernet 
     721  FILES:=$(LINUX_DIR)/drivers/net/tg3.$(LINUX_KMOD_SUFFIX) 
     722  KCONFIG:=CONFIG_TIGON3 
     723  DEPENDS:=@LINUX_2_6 
     724  SUBMENU:=$(NETWORK_DEVICES_MENU) 
     725  AUTOLOAD:=$(call AutoLoad,50,tg3) 
     726endef 
     727 
     728define KernelPackage/tg3/description 
     729 Kernel modules for Broadcom Tigon3 Gigabit Ethernet adapters. 
     730endef 
     731$(eval $(call KernelPackage,tg3)) 
     732 
     733define KernelPackage/ssb-gige 
     734  TITLE:=Broadcom SSB Gigabit Ethernet 
     735  KCONFIG:=CONFIG_SSB_DRIVER_GIGE=y 
     736  DEPENDS:=@TARGET_brcm47xx +kmod-tg3 
     737  SUBMENU:=$(NETWORK_DEVICES_MENU) 
     738endef 
     739 
     740define KernelPackage/ssb-gige/description 
     741 Kernel modules for Broadcom SSB Gigabit Ethernet adapters. 
     742endef 
     743$(eval $(call KernelPackage,ssb-gige)) 
  • trunk/target/linux/brcm47xx/config-2.6.23

    r9699 r10509  
    9090# CONFIG_IP_ROUTE_VERBOSE is not set 
    9191CONFIG_IRQ_CPU=y 
     92# CONFIG_LEDS_ALIX is not set 
    9293# CONFIG_LEDS_GPIO is not set 
    9394# CONFIG_LEMOTE_FULONG is not set 
     
    197198CONFIG_SSB_DEBUG=y 
    198199CONFIG_SSB_DRIVER_EXTIF=y 
     200# CONFIG_SSB_DRIVER_GIGE is not set 
    199201CONFIG_SSB_DRIVER_MIPS=y 
    200202CONFIG_SSB_DRIVER_PCICORE=y 
    201203CONFIG_SSB_DRIVER_PCICORE_POSSIBLE=y 
     204CONFIG_SSB_EMBEDDED=y 
    202205CONFIG_SSB_PCICORE_HOSTMODE=y 
    203206CONFIG_SSB_PCIHOST=y 
  • trunk/target/linux/brcm47xx/files/arch/mips/bcm947xx/irq.c

    r7339 r10509  
    11/* 
    22 *  Copyright (C) 2004 Florian Schirmer (jolt@tuxbox.org) 
     3 *  Copyright (C) 2008 Michael Buesch <mb@bu3sch.de> 
    34 * 
    45 *  This program is free software; you can redistribute  it and/or modify it 
     
    3031#include <linux/smp.h> 
    3132#include <linux/types.h> 
     33#include <linux/pci.h> 
     34#include <linux/ssb/ssb.h> 
    3235 
    3336#include <asm/cpu.h> 
     
    3538#include <asm/irq.h> 
    3639#include <asm/irq_cpu.h> 
     40 
     41 
     42extern struct ssb_bus ssb; 
     43 
    3744 
    3845void plat_irq_dispatch(void) 
     
    6269        mips_cpu_irq_init(); 
    6370} 
     71 
     72int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 
     73{ 
     74        int res; 
     75 
     76        res = ssb_pcibios_map_irq(dev, slot, pin); 
     77        if (res < 0) { 
     78                printk(KERN_ALERT "PCI: Failed to map IRQ of device %s\n", 
     79                       pci_name((struct pci_dev *)dev)); 
     80                return 0; 
     81        } 
     82        /* IRQ-0 and IRQ-1 are software interrupts. */ 
     83        WARN_ON((res == 0) || (res == 1)); 
     84 
     85        return res; 
     86} 
  • trunk/target/linux/brcm47xx/files/arch/mips/bcm947xx/setup.c

    r10497 r10509  
    4747 
    4848struct ssb_bus ssb; 
     49 
     50 
     51int pcibios_plat_dev_init(struct pci_dev *dev) 
     52{ 
     53        int err; 
     54 
     55        err = ssb_pcibios_plat_dev_init(dev); 
     56        if (err) { 
     57                printk(KERN_ALERT "PCI: Failed to init device %s\n", 
     58                       pci_name(dev)); 
     59        } 
     60 
     61        return err; 
     62} 
    4963 
    5064static void bcm47xx_machine_restart(char *command) 
Note: See TracChangeset for help on using the changeset viewer.