# linux.ftgmac100 **Repository Path**: logic_2050/linux.ftgmac100 ## Basic Information - **Project Name**: linux.ftgmac100 - **Description**: Faraday FTGMAC100 Ethernet Linux driver which supports kernel version >= 2.6.32 - **Primary Language**: Unknown - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-03-30 - **Last Updated**: 2021-11-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README This package includes: * FTGMAC100 driver which supports kernel version >= 2.6.32 Usage: * put the following code in your platform-dpendent initialization sequence. ------------------------>8-------------------------->8------------------------ static struct resource ftgmac100_resources[] = { { .start = A369_FTGMAC100_0_PA_BASE, .end = A369_FTGMAC100_0_PA_BASE + SZ_4K - 1, .flags = IORESOURCE_MEM, }, { .start = IRQ_A369_FTGMAC100_0_IRQ, .flags = IORESOURCE_IRQ, }, }; static struct platform_device ftgmac100_device = { .name = "ftgmac100", .id = 0, .dev = { .coherent_dma_mask = DMA_BIT_MASK(32), }, .num_resources = ARRAY_SIZE(ftgmac100_resources), .resource = ftgmac100_resources, }; platform_device_register(&ftgmac100_device); ------------------------>8-------------------------->8------------------------ * make sure the following config options are set CONFIG_NETDEVICES=y CONFIG_NET_ETHERNET=y CONFIG_HAS_DMA=y CONFIG_PHYLIB=y and maybe choose a PHY