diff options
| -rw-r--r-- | arch/arm/mach-orion5x/lsmini-setup.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/mach-orion5x/lsmini-setup.c b/arch/arm/mach-orion5x/lsmini-setup.c index 4311dafd7e26..e0c43b8beb72 100644 --- a/arch/arm/mach-orion5x/lsmini-setup.c +++ b/arch/arm/mach-orion5x/lsmini-setup.c | |||
| @@ -174,6 +174,23 @@ static struct mv_sata_platform_data lsmini_sata_data = { | |||
| 174 | 174 | ||
| 175 | 175 | ||
| 176 | /***************************************************************************** | 176 | /***************************************************************************** |
| 177 | * Linkstation Mini specific power off method: reboot | ||
| 178 | ****************************************************************************/ | ||
| 179 | /* | ||
| 180 | * On the Linkstation Mini, the shutdown process is following: | ||
| 181 | * - Userland monitors key events until the power switch goes to off position | ||
| 182 | * - The board reboots | ||
| 183 | * - U-boot starts and goes into an idle mode waiting for the user | ||
| 184 | * to move the switch to ON position | ||
| 185 | */ | ||
| 186 | |||
| 187 | static void lsmini_power_off(void) | ||
| 188 | { | ||
| 189 | arch_reset(0); | ||
| 190 | } | ||
| 191 | |||
| 192 | |||
| 193 | /***************************************************************************** | ||
| 177 | * General Setup | 194 | * General Setup |
| 178 | ****************************************************************************/ | 195 | ****************************************************************************/ |
| 179 | 196 | ||
| @@ -241,6 +258,9 @@ static void __init lsmini_init(void) | |||
| 241 | /* enable USB power */ | 258 | /* enable USB power */ |
| 242 | gpio_set_value(LSMINI_GPIO_USB_POWER, 1); | 259 | gpio_set_value(LSMINI_GPIO_USB_POWER, 1); |
| 243 | 260 | ||
| 261 | /* register power-off method */ | ||
| 262 | pm_power_off = lsmini_power_off; | ||
| 263 | |||
| 244 | pr_info("%s: finished\n", __func__); | 264 | pr_info("%s: finished\n", __func__); |
| 245 | } | 265 | } |
| 246 | 266 | ||
