Re: drivers that require headers in mach-omap

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

 



On Tue, 28 Jul 2009, Mike Chan wrote:

> Omap folks, how are drivers that require access to prm and cm
> registers via cm_read_mod_reg() etc... suppose to access these?
> 
> For example if drivers/usb/host/ohci-omap.c wanted to call:
> cm_read_mod_reg(OMAP3430ES2_USBHOST_MOD, CM_IDLEST);
> 
> It seems some of the headers in mach-omap2 should be in
> plat-omap/include/mach, or is there a more elegant way? The other
> alternatives are to register calls in all the board files, or #include
> ../../.. both do not seem very elegant to me.

Generally, if a device driver requires platform-specific functions, those 
functions should go into a separate file in plat-omap/ or mach-omap*/, and 
should be called via platform_data function pointers.  

For the specific case you mention, no device driver should need direct 
PRCM access.  These details change frequently between chip versions and 
are generally chip integration-specific rather than device IP-specific.


- Paul
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux