diff options
author | Tom Rini | 2016-07-11 18:50:29 -0400 |
---|---|---|
committer | Tom Rini | 2016-07-11 18:50:29 -0400 |
commit | bff97dde8c8cf6fd5f04bb26fca83f61eadc1741 (patch) | |
tree | 544f4a0d7d5668388eaf8a157c16cf6bb8ead134 /include/dm | |
parent | 94fbd3e37d6bdbf5490a185607ca20f862637220 (diff) | |
parent | 96907c0fe50a856f66f60ade68864a2d7949bf15 (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-spi
Diffstat (limited to 'include/dm')
-rw-r--r-- | include/dm/device.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/dm/device.h b/include/dm/device.h index f03bcd3b49e..1bfcf3bcbc0 100644 --- a/include/dm/device.h +++ b/include/dm/device.h @@ -467,6 +467,19 @@ fdt_addr_t dev_get_addr(struct udevice *dev); void *dev_get_addr_ptr(struct udevice *dev); /** + * dev_map_physmem() - Read device address from reg property of the + * device node and map the address into CPU address + * space. + * + * @dev: Pointer to device + * @size: size of the memory to map + * + * @return mapped address, or NULL if the device does not have reg + * property. + */ +void *dev_map_physmem(struct udevice *dev, unsigned long size); + +/** * dev_get_addr_index() - Get the indexed reg property of a device * * @dev: Pointer to a device |