diff options
| author | GuEe-GUI <[email protected]> | 2024-10-24 11:56:31 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2024-11-18 15:03:23 +0800 |
| commit | cefe6d63805b89fb96aea69eb8e14fa12260192a (patch) | |
| tree | c7ff3705ce4f35683f7b493314bdbbfed500b9d3 /components/drivers/include | |
| parent | 1bef42c64c2db3608814207a580e27e2673a4148 (diff) | |
[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 <[email protected]>
Diffstat (limited to 'components/drivers/include')
| -rw-r--r-- | components/drivers/include/drivers/ofw.h | 1 | ||||
| -rw-r--r-- | components/drivers/include/drivers/platform.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/ofw.h b/components/drivers/include/drivers/ofw.h index aec5ba451a..3f23017b57 100644 --- a/components/drivers/include/drivers/ofw.h +++ b/components/drivers/include/drivers/ofw.h @@ -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; diff --git a/components/drivers/include/drivers/platform.h b/components/drivers/include/drivers/platform.h index ba927fee7d..c4a497d0a1 100644 --- a/components/drivers/include/drivers/platform.h +++ b/components/drivers/include/drivers/platform.h @@ -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) |
