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>
Showing
- board/freescale/corenet_ds/eth_hydra.c 4 additions, 22 deletionsboard/freescale/corenet_ds/eth_hydra.c
- board/freescale/corenet_ds/eth_p4080.c 10 additions, 26 deletionsboard/freescale/corenet_ds/eth_p4080.c
- common/fdt_support.c 59 additions, 1 deletioncommon/fdt_support.c
- include/fdt_support.h 28 additions, 0 deletionsinclude/fdt_support.h
Loading
Please register or sign in to comment