summaryrefslogtreecommitdiff
path: root/arch/powerpc/boot/ops.h
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2007-03-26 15:52:24 -0500
committerPaul Mackerras <paulus@samba.org>2007-04-13 03:55:15 +1000
commit6e1af384f1c1742ae6d86bbf779d4fa020c509bc (patch)
treee07f1cc421fdc4e51847d26bb9bdccc53341e1cc /arch/powerpc/boot/ops.h
parentdbf8eefa2b814d6922492120bfa46d4bc42ceb20 (diff)
[POWERPC] bootwrapper: Add dt_xlate_reg(), and use it to find serial registers.
dt_xlate_reg() uses the ranges properties of a node's parentage to find the absolute physical address of the node's registers. The ns16550 driver uses this when no virtual-reg property is found. Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/boot/ops.h')
-rw-r--r--arch/powerpc/boot/ops.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/boot/ops.h b/arch/powerpc/boot/ops.h
index 8008d612402e..fbd9030d660e 100644
--- a/arch/powerpc/boot/ops.h
+++ b/arch/powerpc/boot/ops.h
@@ -82,6 +82,8 @@ int ns16550_console_init(void *devp, struct serial_console_data *scdp);
void *simple_alloc_init(char *base, u32 heap_size, u32 granularity,
u32 max_allocs);
extern void flush_cache(void *, unsigned long);
+int dt_xlate_reg(void *node, int res, unsigned long *addr,
+ unsigned long *size);
static inline void *finddevice(const char *name)
{