diff options
author | Simon Glass <sjg@chromium.org> | 2017-06-13 21:10:06 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-07-11 10:08:19 -0600 |
commit | 2cce586651bbeb0489c6cc6f04489f65bd039b9e (patch) | |
tree | b83684261b3ad2ecebc49ae37010e98a145c45af /doc/driver-model | |
parent | 564cf25d5b1b90ae790e2b7619292935f40b13e6 (diff) | |
download | u-boot-2cce586651bbeb0489c6cc6f04489f65bd039b9e.tar.gz u-boot-2cce586651bbeb0489c6cc6f04489f65bd039b9e.tar.xz u-boot-2cce586651bbeb0489c6cc6f04489f65bd039b9e.zip |
dtoc: Support multiple compatible strings in a node
Sometimes a node will have multiple compatible strings. Drivers may use
one or the other so the best approach seems to be to #define them to be
equivalent.
Update dtoc to support this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'doc/driver-model')
-rw-r--r-- | doc/driver-model/of-plat.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/driver-model/of-plat.txt b/doc/driver-model/of-plat.txt index 0063bfe510..3ed8c759d6 100644 --- a/doc/driver-model/of-plat.txt +++ b/doc/driver-model/of-plat.txt @@ -156,6 +156,11 @@ This avoids the code overhead of converting the device tree data to platform data in the driver. The ofdata_to_platdata() method should therefore do nothing in such a driver. +Where a node has multiple compatible strings, a #define is used to make them +equivalent, e.g.: + +#define dtd_rockchip_rk3299_dw_mshc dtd_rockchip_rk3288_dw_mshc + Converting of-platdata to a useful form --------------------------------------- |