mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 03:09:16 +08:00
[DM/FEATURE] Support driver depends fix auto
We need a API to fix the driver load auto when a second driver get it in probe process that we can not be careful of the driver-to-driver's depends in different SoC. Signed-off-by: GuEe-GUI <2991707448@qq.com>
This commit is contained in:
@@ -37,6 +37,7 @@ struct rt_ofw_node
|
||||
/* phandles range from 1 to 2^32-2 (0xfffffffe) */
|
||||
rt_phandle phandle;
|
||||
|
||||
struct rt_device *dev;
|
||||
struct rt_ofw_prop *props;
|
||||
struct rt_ofw_node *parent;
|
||||
struct rt_ofw_node *child;
|
||||
|
||||
@@ -45,6 +45,7 @@ rt_err_t rt_platform_driver_register(struct rt_platform_driver *pdrv);
|
||||
rt_err_t rt_platform_device_register(struct rt_platform_device *pdev);
|
||||
|
||||
rt_err_t rt_platform_ofw_device_probe_child(struct rt_ofw_node *np);
|
||||
rt_err_t rt_platform_ofw_request(struct rt_ofw_node *np);
|
||||
rt_err_t rt_platform_ofw_free(struct rt_platform_device *pdev);
|
||||
|
||||
#define RT_PLATFORM_DRIVER_EXPORT(driver) RT_DRIVER_EXPORT(driver, platform, BUILIN)
|
||||
|
||||
Reference in New Issue
Block a user