Skip to content
Snippets Groups Projects
reginfo.c 793 B
Newer Older
  • Learn to ignore specific revisions
  • Wolfgang Denk's avatar
    Wolfgang Denk committed
    /*
     * (C) Copyright 2000
     * Subodh Nijsure, SkyStream Networks, snijsure@skystream.com
     *
    
     * SPDX-License-Identifier:	GPL-2.0+
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
     */
    
    #include <common.h>
    #include <command.h>
    
    #if defined(CONFIG_8xx)
    
    void mpc8xx_reginfo(void);
    
    #elif defined(CONFIG_MPC86xx)
    
    Becky Bruce's avatar
    Becky Bruce committed
    extern void mpc86xx_reginfo(void);
    
    #elif defined(CONFIG_MPC85xx)
    extern void mpc85xx_reginfo(void);
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    #endif
    
    static int do_reginfo(cmd_tbl_t *cmdtp, int flag, int argc,
    		       char * const argv[])
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    {
    
    #if defined(CONFIG_8xx)
    
    	mpc8xx_reginfo();
    
    
    #elif defined(CONFIG_MPC86xx)
    
    Becky Bruce's avatar
    Becky Bruce committed
    	mpc86xx_reginfo();
    
    #elif defined(CONFIG_MPC85xx)
    	mpc85xx_reginfo();
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    	return 0;
    }
    
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
     /**************************************************/
    
    
    #if defined(CONFIG_CMD_REGINFO)
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    	reginfo,	2,	1,	do_reginfo,
    
    Peter Tyser's avatar
    Peter Tyser committed
    	"print register information",
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    );
    #endif