]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Add bootwrapper function to get virtual reg from the device tree.
authorLaurent Pinchart <laurentp@cse-semaphore.com>
Thu, 10 Apr 2008 15:03:04 +0000 (17:03 +0200)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 17 Apr 2008 06:01:37 +0000 (01:01 -0500)
commita8f4f44d9dece3312e85daff562dc3c872ca747c
tree6aab633690a25acaf46d61416cff6a808deaad8d
parentb3918e5f521e5f4299a08e57f507f1c74f6a015c
[POWERPC] Add bootwrapper function to get virtual reg from the device tree.

This patch adds a new generic device tree processing function that retrieves
virtual reg addresses from the device tree to the bootwrapper code. It also
updates the bootwrapper code to use the new function.

dt_get_virtual_reg() retrieves the virtual reg addresses from the
"virtual-reg" property. If the property can't be found, it uses the "reg"
property and walks the tree to translate it to absolute addresses.

Signed-off-by: Laurent Pinchart <laurentp@cse-semaphore.com>
Acked-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/boot/cpm-serial.c
arch/powerpc/boot/devtree.c
arch/powerpc/boot/mpc52xx-psc.c
arch/powerpc/boot/ns16550.c
arch/powerpc/boot/ops.h