21f47fbc5b
This adds support for the family of Systems-on-Chip produced initially by VIA and now its subsidiary WonderMedia that have recently become widespread in lower-end Chinese ARM-based tablets and netbooks. Support is included for both VT8500 and WM8505, selectable by a configuration switch at kernel build time. Included are basic machine initialization files, register and interrupt definitions, support for the on-chip interrupt controller, high-precision OS timer, GPIO lines, necessary macros for early debug, pulse-width-modulated outputs control, as well as platform device configurations for the specific drivers implemented elsewhere. Signed-off-by: Alexey Charkov <alchark@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
18 lines
303 B
C
18 lines
303 B
C
/*
|
|
* arch/arm/mach-vt8500/include/mach/system.h
|
|
*
|
|
*/
|
|
#include <asm/io.h>
|
|
|
|
/* PM Software Reset request register */
|
|
#define VT8500_PMSR_VIRT 0xf8130060
|
|
|
|
static inline void arch_idle(void)
|
|
{
|
|
cpu_do_idle();
|
|
}
|
|
|
|
static inline void arch_reset(char mode, const char *cmd)
|
|
{
|
|
writel(1, VT8500_PMSR_VIRT);
|
|
}
|