-
Notifications
You must be signed in to change notification settings - Fork 0
pychuang/linux.ftiic010
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This package includes: * FTIIC010 I2C bus driver Usage: * put the following code in your platform-dpendent initialization sequence. ------------------------>8-------------------------->8------------------------ static struct resource ftiic010_0_resources[] = { { .start = A369_FTIIC010_0_PA_BASE, .end = A369_FTIIC010_0_PA_BASE + SZ_4K - 1, .flags = IORESOURCE_MEM, }, { .start = IRQ_A369_FTIIC010_0, .flags = IORESOURCE_IRQ, }, }; static struct platform_device ftiic010_0_device = { .name = "ftiic010", .id = 0, .num_resources = ARRAY_SIZE(ftiic010_0_resources), .resource = ftiic010_0_resources, }; static struct resource ftiic010_1_resources[] = { { .start = A369_FTIIC010_1_PA_BASE, .end = A369_FTIIC010_1_PA_BASE + SZ_4K - 1, .flags = IORESOURCE_MEM, }, { .start = IRQ_A369_FTIIC010_1, .flags = IORESOURCE_IRQ, }, }; static struct platform_device ftiic010_1_device = { .name = "ftiic010", .id = 1, .num_resources = ARRAY_SIZE(ftiic010_1_resources), .resource = ftiic010_1_resources, }; platform_device_register(&ftiic010_0_device); platform_device_register(&ftiic010_1_device); ------------------------>8-------------------------->8------------------------ * make sure the following config options are set CONFIG_I2C=y
About
Faraday FTIIC010 I2C bus Linux driver
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published