Commit f6da93e9 authored by Ben Dooks's avatar Ben Dooks Committed by Russell King

[ARM PATCH] 2465/1: VR1000 - add power-off hook

Patch from Ben Dooks

Add PM hook to power board down when requested

Signed-off-by: Ben Dooks
Signed-off-by: Russell King
parent 592dd383
......@@ -24,6 +24,7 @@
* 14-Jan-2005 BJD Added clock init
* 15-Jan-2005 BJD Add serial port device definition
* 20-Jan-2005 BJD Use UPF_IOREMAP for ports
* 10-Feb-2005 BJD Added power-off capability
*/
#include <linux/kernel.h>
......@@ -52,8 +53,8 @@
#include <asm/irq.h>
#include <asm/mach-types.h>
//#include <asm/debug-ll.h>
#include <asm/arch/regs-serial.h>
#include <asm/arch/regs-gpio.h>
#include "clock.h"
#include "devs.h"
......@@ -269,6 +270,11 @@ static struct s3c24xx_board vr1000_board __initdata = {
.clocks_count = ARRAY_SIZE(vr1000_clocks),
};
static void vr1000_power_off(void)
{
s3c2410_gpio_cfgpin(S3C2410_GPB9, S3C2410_GPB9_OUTP);
s3c2410_gpio_setpin(S3C2410_GPB9, 1);
}
void __init vr1000_map_io(void)
{
......@@ -285,6 +291,8 @@ void __init vr1000_map_io(void)
s3c24xx_uclk.parent = &s3c24xx_clkout1;
pm_power_off = vr1000_power_off;
s3c24xx_init_io(vr1000_iodesc, ARRAY_SIZE(vr1000_iodesc));
s3c24xx_init_clocks(0);
s3c24xx_init_uarts(vr1000_uartcfgs, ARRAY_SIZE(vr1000_uartcfgs));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment