Re: Sample source code or links to platform driver development

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Raghavendra,


On Mon, May 19, 2014 at 8:06 AM, Raghavendra Kakarla <raghavendra_kakarla@xxxxxxxxx> 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
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux