blob: 313c6e8c1b4ae9a5311f33fb871b416cc028a164 [file] [log] [blame]
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __ASM_ARCH_SYSTEM_H
#define __ASM_ARCH_SYSTEM_H
#include <asm/proc-fns.h>
#include "../arch/arm/mach-feroceon-kw2/config/mvSysHwConfig.h"
#define LSP_VERSION "KW2_LSP_3.3.1_p12_PQ"
static inline void arch_idle(void)
{
/*
* This should do all the clock switching
* and wait for interrupt tricks
*/
cpu_do_idle();
}
#define UPON_SDK_VERSION "uPON_2.6.25_RC76"
#ifdef __BIG_ENDIAN
#define MV_ARM_32BIT_LE(X) ((((X)&0xff)<<24) | \
(((X)&0xff00)<<8) | \
(((X)&0xff0000)>>8) | \
(((X)&0xff000000)>>24))
#else
#define MV_ARM_32BIT_LE(X) (X)
#endif
void mvBoardReset(void);
static inline void arch_reset(char mode, const char *cmd)
{
printk("Reseting !! \n");
mvBoardReset();
}
#endif