Moving platform_data contents to device tree

Thomas Abraham thomas.abraham at linaro.org
Fri Feb 11 14:29:25 EST 2011


Hi,

I am currently adding device tree support for Samsung's S5PV310
processor. I have a question about handling platform_data when adding
device tree support in drivers, specifically about the sdhci-s3c
driver.

The platform data that is passed to the sdhci-s3c driver is defined in
file arch/arm/plat-samsung/plat/sdhci.h, struct s3c_sdhci_platdata. In
this structure, there are some function pointers that are passed to
the driver. These function pointers are setup by the platform code in
arch/arm/plat-samsung. But when platform devices are created from the
device tree, how would such function pointers be passed to the driver?

Any suggestions on the approach to handle the platform_data
information when moving to device tree would be very helpful.

Thanks,
Thomas.


More information about the devicetree-discuss mailing list