sparc,leon: Added support for AMBAPP bus.
authorKonrad Eisele <konrad@gaisler.com>
Mon, 17 Aug 2009 00:13:32 +0000 (00:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Aug 2009 01:32:10 +0000 (18:32 -0700)
commite63829de3d03f92cea2b26119e0aa9a7043b9913
tree0f0bbf2f86ef8a447e9b2a298662003602650e87
parent0fd7ef1fe0e6e70c7851ce65a2eb8a8d3f49147e
sparc,leon: Added support for AMBAPP bus.

The device is a AMBA bus if it is a child of prom node "ambapp" (AMBA
plug and play). Two functions
leon_trans_init() and leon_node_init() (defined in
sparc/kernel/leon_kernel.c) are called in the
prom_build_tree() path if CONFIG_SPARC_LEON is
defined. leon_node_init() will build up the device
tree using AMBA plug and play. Also: a extra check was addes to
prom_common.c:build_one_prop()
in case a rom-node is undefined which can happen for SPARC-LEON
because it creates only a minimum
nodes to emulate sparc behaviour.

Signed-off-by: Konrad Eisele <konrad@gaisler.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/of_device_32.c
arch/sparc/kernel/prom_32.c
arch/sparc/kernel/prom_common.c
This page took 0.027446 seconds and 5 git commands to generate.