Moving platform_data contents to device tree
From: Thomas Abraham <hidden>
Date: 2011-02-11 03:29:25
From: Thomas Abraham <hidden>
Date: 2011-02-11 03:29:25
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.