Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100838
b: refs/heads/master
c: dd1086f
h: refs/heads/master
v: v3
  • Loading branch information
Ben Dooks committed Jul 3, 2008
1 parent fc55d3c commit 333ad5a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d10d8a5f79e3e33db1a9f177c54187e2312598f2
refs/heads/master: dd1086f43dc7205b451ae95e37d4813a9c28611d
10 changes: 10 additions & 0 deletions trunk/arch/arm/mach-s3c2412/mach-jive.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,14 @@ static void __init jive_map_io(void)
s3c24xx_init_uarts(jive_uartcfgs, ARRAY_SIZE(jive_uartcfgs));
}

static void jive_power_off(void)
{
printk(KERN_INFO "powering system down...\n");

s3c2410_gpio_setpin(S3C2410_GPC5, 1);
s3c2410_gpio_cfgpin(S3C2410_GPC5, S3C2410_GPIO_OUTPUT);
}

static void __init jive_machine_init(void)
{
/* register system devices for managing low level suspend */
Expand Down Expand Up @@ -661,6 +669,8 @@ static void __init jive_machine_init(void)
s3c_device_i2c.dev.platform_data = &jive_i2c_cfg;
i2c_register_board_info(0, jive_i2c_devs, ARRAY_SIZE(jive_i2c_devs));

pm_power_off = jive_power_off;

platform_add_devices(jive_devices, ARRAY_SIZE(jive_devices));
}

Expand Down

0 comments on commit 333ad5a

Please sign in to comment.