mirror of
https://github.com/torvalds/linux.git
synced 2024-12-22 10:56:40 +00:00
83ef3338a2
This patch introduces support for the tcc platform by creating an arch/arm/plat-tcc and arch/arm/mach-tcc8k directories and adding basic include files plus Kconfig and Makefile. Signed-off-by: "Hans J. Koch" <hjk@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
26 lines
458 B
C
26 lines
458 B
C
/*
|
|
* System functions for Telechips TCCxxxx SoCs
|
|
*
|
|
* Copyright (C) Hans J. Koch <hjk@linutronix.de>
|
|
*
|
|
* Licensed under the terms of the GPL v2.
|
|
*
|
|
*/
|
|
|
|
#include <linux/io.h>
|
|
|
|
#include <mach/tcc8k-regs.h>
|
|
|
|
/* System reboot */
|
|
void plat_tcc_reboot(void)
|
|
{
|
|
/* Make sure clocks are on */
|
|
__raw_writel(0xffffffff, CKC_BASE + BCLKCTR0_OFFS);
|
|
|
|
/* Enable watchdog reset */
|
|
__raw_writel(0x49, TIMER_BASE + TWDCFG_OFFS);
|
|
/* Wait for reset */
|
|
while(1)
|
|
;
|
|
}
|