<div dir="ltr"><div><div><div>Hi Raghavendra,<br><br><br>On Mon, May 19, 2014 at 8:06 AM, Raghavendra Kakarla <<a href="mailto:raghavendra_kakarla@yahoo.com">raghavendra_kakarla@yahoo.com</a>> wrote:<br>><br>> Dear All,<br>
><br>> I am new to this platform driver development, but, I have developed some character based drivers in the past.<br>><br>><br>> 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.<br>
<br></div>There is a good overview here:<br><a href="https://www.kernel.org/doc/Documentation/driver-model/platform.txt">https://www.kernel.org/doc/Documentation/driver-model/platform.txt</a><br><br></div>For examples, many of the ARM boards use platform devices and drivers. For exampe:<br>
<a href="http://lxr.linux.no/#linux+v3.14.4/arch/arm/mach-omap2/board-omap3beagle.c">http://lxr.linux.no/#linux+v3.14.4/arch/arm/mach-omap2/board-omap3beagle.c</a><br><br>Here's a platform device:<br><a href="http://lxr.linux.no/#linux+v3.14.4/arch/arm/mach-omap2/board-omap3beagle.c#L80">http://lxr.linux.no/#linux+v3.14.4/arch/arm/mach-omap2/board-omap3beagle.c#L80</a><br>
<br></div>And the corresponding platform_driver:<br><a href="http://lxr.linux.no/#linux+v3.14.4/drivers/leds/leds-pwm.c">http://lxr.linux.no/#linux+v3.14.4/drivers/leds/leds-pwm.c</a><br><div><div><div><br>--<br>Dave Hylands<br>
Shuswap, BC, Canada<br><a href="http://www.davehylands.com">http://www.davehylands.com</a></div></div></div></div>