summaryrefslogtreecommitdiffstats
path: root/drivers/of/address.c
Commit message (Collapse)AuthorAgeFilesLines
* of: Demote "Bad cell count for" to debugAndrey Smirnov2018-10-181-2/+2
| | | | | | | | | There are valid use-cases where getting OF_BAD_ADDR via that codepath is expected. In addition to that analogous code in Linux kernel uses pr_debug as well. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* of: demote "no ranges" message to debug levelLucas Stach2018-03-191-1/+1
| | | | | | | | | | There are valid cases where there is no way to translate a OF node to a MMIO address via ranges, so do the same as the Linux kernel and don't print an error message in that case, but make it available as a debug message. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* of: import pci range parser from linuxLucas Stach2014-10-081-0/+68
| | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* drivers: of: import PCI bus specific translatorSebastian Hesselbarth2014-06-251-0/+83
| | | | | | | | | | | DT PCI address translation needs a special handling. This imports the corresponding translator into of/address.c but makes it selectable through Kconfig. Compared to the Linux version, we don't check for struct device_node's type which does not exist on Barebox but directly for device_type property set to "pci". Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* OF: convert of_translate_address to new APISebastian Hesselbarth2013-07-051-0/+6
| | | | | | | | | | This converts existing of_translate_address to recently added API. In contrast to existing behavior, the new function honors ranges properties properly. It now allows reg properties to be set as offset with respect to the correspoding parent node. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* OF: import address related functions from Linux OF APISebastian Hesselbarth2013-07-051-0/+431
This imports drivers/of/address.c from Linux with some minor modifications. of_translate_address is not yet enabled and PCI and ISA related bus translations have not been imported. Also, a corresponding include header is created with prototypes and non-OF function stubs. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>