diff options
Diffstat (limited to 'documentation/6.components/device-driver/platform/platform.md')
| -rwxr-xr-x | documentation/6.components/device-driver/platform/platform.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/documentation/6.components/device-driver/platform/platform.md b/documentation/6.components/device-driver/platform/platform.md index d89c08eb12..4df335cf76 100755 --- a/documentation/6.components/device-driver/platform/platform.md +++ b/documentation/6.components/device-driver/platform/platform.md @@ -53,7 +53,7 @@ INIT_PLATFORM → DT nodes → platform devices on bus → match + probe if INIT_DEVICE → RT_PLATFORM_DRIVER_EXPORT → register driver → probe every unmatched device ``` -**Takeaway**: DT devices appear at **`INIT_PLATFORM`**. Drivers using **`RT_PLATFORM_DRIVER_EXPORT`** register later and then bind via **`rt_bus_add_driver` → rt_bus_for_each_dev`**. Drivers that must run before the bulk DT scan use **`INIT_SUBSYS_EXPORT`** + manual **`rt_platform_driver_register`**. +**Takeaway**: DT devices appear at **`INIT_PLATFORM`**. Drivers using **`RT_PLATFORM_DRIVER_EXPORT`** register later and then bind via **`rt_bus_add_driver` -> `rt_bus_for_each_dev`**. Drivers that must run before the bulk DT scan use **`INIT_SUBSYS_EXPORT`** + manual **`rt_platform_driver_register`**. --- |
