Sample source code or links to platform driver development

Dave Hylands dhylands at gmail.com
Mon May 19 12:10:31 EDT 2014


Hi Raghavendra,


On Mon, May 19, 2014 at 8:06 AM, Raghavendra Kakarla <
raghavendra_kakarla at yahoo.com> wrote:
>
> Dear All,
>
> I am new to this platform driver development, but, I have developed some
character based drivers in the past.
>
>
> Could you please anyone can forward me the links to sample source code /
guidelines for developing the platform driver? I am looking for developing
on x86 platform.

There is a good overview here:
https://www.kernel.org/doc/Documentation/driver-model/platform.txt

For examples, many of the ARM boards use platform devices and drivers. For
exampe:
http://lxr.linux.no/#linux+v3.14.4/arch/arm/mach-omap2/board-omap3beagle.c

Here's a platform device:
http://lxr.linux.no/#linux+v3.14.4/arch/arm/mach-omap2/board-omap3beagle.c#L80

And the corresponding platform_driver:
http://lxr.linux.no/#linux+v3.14.4/drivers/leds/leds-pwm.c

--
Dave Hylands
Shuswap, BC, Canada
http://www.davehylands.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140519/f31c14b7/attachment.html 


More information about the Kernelnewbies mailing list