Skip to content

pychuang/linux.ftgmac100

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Faraday FTGMAC100 Ethernet Linux driver which supports kernel version >= 2.6.32

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published