fs_enet: support
PATCH 3/3 fs_enet: support
Hi
This is a snapshot of the work in progress of the new fs_enet driver. It's aim is to replace all the various SCC/FCC/FEC drivers for the Freescale PQs.
Don't expect it to work on your board just yet, just take a look and comment.
This part contains the support files for it to work (platform devices & the rest).
Regards
Pantelis
arch/ppc/platforms/Makefile +2 -0
@@ -46,6 +46,8 @@ obj-$(CONFIG_SANDPOINT) += sandpoint.o obj-$(CONFIG_SBC82xx) += sbc82xx.o obj-$(CONFIG_SPRUCE) += spruce.o obj-$(CONFIG_LITE5200) += lite5200.o +obj-$(CONFIG_MPC86XADS) += mpc866ads_setup.o +obj-$(CONFIG_MPC885ADS) += mpc885ads_setup.o ifeq ($(CONFIG_SMP),y) obj-$(CONFIG_PPC_PMAC) += pmac_smp.o
arch/ppc/platforms/mpc866ads_setup.c new file +378 -0
378 lines not on this page · raw message
arch/ppc/platforms/mpc885ads.h +2 -0
@@ -88,5 +88,7 @@#define SICR_ENET_MASK ((uint)0x00ff0000)#define SICR_ENET_CLKRT ((uint)0x002c0000) +#define BOARD_NAME "MPC885" +#endif /* __ASM_MPC885ADS_H__ */ #endif /* __KERNEL__ */
arch/ppc/platforms/mpc885ads_setup.c new file +399 -0
399 lines not on this page · raw message
arch/ppc/syslib/Makefile +2 -1
@@ -34,7 +34,8 @@ ifeq ($(CONFIG_40x),y) obj-$(CONFIG_PCI) += indirect_pci.o pci_auto.o ppc405_pci.o endif endif -obj-$(CONFIG_8xx) += m8xx_setup.o ppc8xx_pic.o $(wdt-mpc8xx-y) +obj-$(CONFIG_8xx) += m8xx_setup.o ppc8xx_pic.o $(wdt-mpc8xx-y) \ + ppc_sys.o mpc8xx_devices.o mpc8xx_sys.o ifeq ($(CONFIG_8xx),y) obj-$(CONFIG_PCI) += qspan_pci.o i8259.o endif
arch/ppc/syslib/mpc8xx_devices.c new file +274 -0
274 lines not on this page · raw message
arch/ppc/syslib/mpc8xx_sys.c new file +51 -0
51 lines not on this page · raw message
arch/ppc/syslib/ppc_sys.c +50 -1
66 lines not on this page · raw message
drivers/net/Kconfig +0 -0
drivers/net/Makefile +0 -0
drivers/net/fs_enet/Kconfig new file +0 -0
drivers/net/fs_enet/Makefile new file +0 -0
drivers/net/fs_enet/fs_enet-main.c new file +0 -0
drivers/net/fs_enet/fs_enet-mii.c new file +0 -0
drivers/net/fs_enet/fs_enet.h new file +0 -0
drivers/net/fs_enet/mac-fcc.c new file +0 -0
drivers/net/fs_enet/mac-fec.c new file +0 -0
drivers/net/fs_enet/mac-scc.c new file +0 -0
drivers/net/fs_enet/mii-bitbang.c new file +0 -0
drivers/net/fs_enet/mii-fixed.c new file +0 -0
include/asm-ppc/mpc8xx.h +20 -0
@@ -20,6 +20,10 @@#include <platforms/fads.h> #endif +#ifdef CONFIG_MPC86XADS +#include <platforms/8xx/mpc86xads.h> +#endif +#ifdef CONFIG_RPXLITE #include <platforms/rpxlite.h> #endif
@@ -101,6 +105,22 @@ extern unsigned char __res[];struct pt_regs ; +enum ppc_sys_devices { + MPC8xx_CPM_FEC1, + MPC8xx_CPM_FEC2, + MPC8xx_CPM_I2C, + MPC8xx_CPM_SCC1, + MPC8xx_CPM_SCC2, + MPC8xx_CPM_SCC3, + MPC8xx_CPM_SCC4, + MPC8xx_CPM_SPI, + MPC8xx_CPM_MCC1, + MPC8xx_CPM_MCC2, + MPC8xx_CPM_SMC1, + MPC8xx_CPM_SMC2, + MPC8xx_CPM_USB, +}; +#endif /* !__ASSEMBLY__ */ #endif /* CONFIG_8xx */ #endif /* __CONFIG_8xx_DEFS */
include/asm-ppc/ppc_sys.h +4 -1
@@ -25,6 +25,8 @@#include <asm/mpc83xx.h> #elif defined(CONFIG_85xx)#include <asm/mpc85xx.h> +#elif defined(CONFIG_8xx) +#include <asm/mpc8xx.h> #elif defined(CONFIG_PPC_MPC52xx)#include <asm/mpc52xx.h> #elif defined(CONFIG_MPC10X_BRIDGE )
@@ -49,7 +51,8 @@ extern struct ppc_sys_spec *cur_ppc_sys_/* determine which specific SOC we are */ extern void identify_ppc_sys_by_id (u32 id)__init ; -extern void identify_ppc_sys_by_name (char *name)__init ; +extern void identify_ppc_sys_by_name (char * name)__init ; +extern void identify_ppc_sys_by_name_and_id (char *name,u32 id)__init ;/* describes all devices that may exist in a given family of processors */ extern struct platform_device ppc_sys_platform_devices[];
include/linux/fs_enet_pd.h new file +0 -0