of/address: Handle #address-cells > 2 specially
authorThierry Reding <thierry.reding@avionic-design.de>
Thu, 26 Jul 2012 19:55:10 +0000 (21:55 +0200)
committerRob Herring <rob.herring@calxeda.com>
Fri, 7 Sep 2012 16:31:23 +0000 (11:31 -0500)
commite38c0a1fbc5803cbacdaac0557c70ac8ca5152e7
tree8173068856ea116c00c91ff04aac341a6da8b160
parenta4f8bf220e415318c739243aaeb2471cf5e8c911
of/address: Handle #address-cells > 2 specially

When a bus specifies #address-cells > 2, of_bus_default_map() now
assumes that the mapping isn't for a physical address but rather an
identifier that needs to match exactly.

This is required by bindings that use multiple cells to translate a
resource to the parent bus (device index, type, ...).

See here for the discussion:

https://lists.ozlabs.org/pipermail/devicetree-discuss/2012-June/016577.html

Originally-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
drivers/of/address.c