powerpc: add Freescale hypervisor partition control functions

Add functions to restart and halt the current partition when running under
the Freescale hypervisor.  These functions should be assigned to various
function pointers of the ppc_md structure during the .probe() function for
the board:

	ppc_md.restart = fsl_hv_restart;
	ppc_md.power_off = fsl_hv_halt;
	ppc_md.halt = fsl_hv_halt;

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
Timur Tabi
2011-05-19 08:54:29 -05:00
committed by Kumar Gala
parent 3a93261f70
commit d173ea6b40
2 changed files with 30 additions and 0 deletions

View File

@@ -36,5 +36,8 @@ struct platform_diu_data_ops {
extern struct platform_diu_data_ops diu_ops;
#endif
void fsl_hv_restart(char *cmd);
void fsl_hv_halt(void);
#endif
#endif