diff options
author | Tom Rini <trini@konsulko.com> | 2016-01-12 18:12:42 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-01-12 18:12:42 -0500 |
commit | 077678eb0c226e52a1f90edabd3369ab26065b32 (patch) | |
tree | e8bf70144f896a1ea09f694fe1182ba305b25df9 /include/dm/device.h | |
parent | e69514cc7087255d0e9754a9bf04129309d81ed5 (diff) | |
parent | ab971e192adcf0a501c8998542ab116512c0c260 (diff) |
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'include/dm/device.h')
-rw-r--r-- | include/dm/device.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/dm/device.h b/include/dm/device.h index 7fb99356be0..d9fc7fb953f 100644 --- a/include/dm/device.h +++ b/include/dm/device.h @@ -776,4 +776,25 @@ static inline void devm_kfree(struct udevice *dev, void *ptr) #endif /* ! CONFIG_DEVRES */ +/** + * dm_set_translation_offset() - Set translation offset + * @offs: Translation offset + * + * Some platforms need a special address translation. Those + * platforms (e.g. mvebu in SPL) can configure a translation + * offset in the DM by calling this function. It will be + * added to all addresses returned in dev_get_addr(). + */ +void dm_set_translation_offset(fdt_addr_t offs); + +/** + * dm_get_translation_offset() - Get translation offset + * + * This function returns the translation offset that can + * be configured by calling dm_set_translation_offset(). + * + * @return translation offset for the device address (0 as default). + */ +fdt_addr_t dm_get_translation_offset(void); + #endif |