Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112517
b: refs/heads/master
c: 92a5de8
h: refs/heads/master
i:
  112515: ac873da
v: v3
  • Loading branch information
Alexey Kopytko authored and Nicolas Pitre committed Sep 26, 2008
1 parent be2505e commit b616244
Show file tree
Hide file tree
Showing 2 changed files with 21 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: 7b0a26f2ca0001a13473b874d52b3d557e3d7289
refs/heads/master: 92a5de80e5c53c56d098ea3cb6266138efd892f6
20 changes: 20 additions & 0 deletions trunk/arch/arm/mach-orion5x/lsmini-setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,23 @@ static struct mv_sata_platform_data lsmini_sata_data = {
};


/*****************************************************************************
* Linkstation Mini specific power off method: reboot
****************************************************************************/
/*
* On the Linkstation Mini, the shutdown process is following:
* - Userland monitors key events until the power switch goes to off position
* - The board reboots
* - U-boot starts and goes into an idle mode waiting for the user
* to move the switch to ON position
*/

static void lsmini_power_off(void)
{
arch_reset(0);
}


/*****************************************************************************
* General Setup
****************************************************************************/
Expand Down Expand Up @@ -241,6 +258,9 @@ static void __init lsmini_init(void)
/* enable USB power */
gpio_set_value(LSMINI_GPIO_USB_POWER, 1);

/* register power-off method */
pm_power_off = lsmini_power_off;

pr_info("%s: finished\n", __func__);
}

Expand Down

0 comments on commit b616244

Please sign in to comment.