fdt: Add new fdt_set_node_status & fdt_set_status_by_alias helpers
authorShengzhou Liu <Shengzhou.Liu@freescale.com>
Fri, 14 Oct 2011 08:26:05 +0000 (16:26 +0800)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 18 Oct 2011 05:36:55 +0000 (00:36 -0500)
commit2a523f524090d7fc5600ece9f12d7c955db567d7
tree5c7e51b81be51bae4f7ef571861dab675652bb4d
parent4d28db8a1e8b90e1e3ffd95d7f949b849e33fa2f
fdt: Add new fdt_set_node_status & fdt_set_status_by_alias helpers

Add common function fdt_set_node_status() to assist in various locations
that we set a nodes status.  This function utilizes the status values
that are part of the EPAPR spec (on power.org).

fdt_set_status_by_alias() is based on fdt_set_node_status() but uses an
alias string to identify the node to update.

We also add some shortcut functions to help the common cases of setting
"okay" and "disabled":

fdt_status_okay()
fdt_status_disabled()
fdt_status_okay_by_alias()
fdt_status_disabled_by_alias()

Finally, we fixup the corenet_ds ethernet code which previously had
a function by the same name that can be replaced with the new helpers.

Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Gerald Van Baren <vanbaren@cideas.com>
board/freescale/corenet_ds/eth_hydra.c
board/freescale/corenet_ds/eth_p4080.c
common/fdt_support.c
include/fdt_support.h